Buckets:
| import Mathlib | |
| import OAI.Analysis.BiholderTransport.LinearAlgebra.PositiveSingular | |
| import OAI.Analysis.BiholderTransport.LinearAlgebra.JoinOperator | |
| import OAI.Analysis.BiholderTransport.Duality.DualFactor | |
| namespace OAI | |
| section | |
| section | |
| noncomputable section | |
| open Set Filter Manifold Bundle ContinuousLinearMap | |
| open scoped Topology ContDiff | |
| namespace WeakMTWTransport | |
| section JoinSpectrum | |
| variable {n : β} {M : Type*} [MetricSpace M] [CompactSpace M] | |
| [ChartedSpace (Model n) M] [IsManifold π(β,Model n) β M] | |
| [RiemannianBundle (fun x : M => TangentSpace π(β,Model n) x)] | |
| [IsContMDiffRiemannianBundle π(β,Model n) β (Model n) | |
| (fun x : M => TangentSpace π(β,Model n) x)] | |
| [IsRiemannianManifold π(β,Model n) M] | |
| local instance (x : M) : FiniteDimensional β (TangentSpace π(β,Model n) x) := | |
| inferInstanceAs (FiniteDimensional β (Model n)) | |
| def endpointExpDifferential (x : M) (p : TangentSpace π(β,Model n) x) : | |
| TangentSpace π(β,Model n) x βL[β] TangentSpace π(β,Model n) (riemannianExp x p) := | |
| mfderiv π(β,TangentSpace π(β,Model n) x) π(β,Model n) (riemannianExp x) p | |
| lemma uniform_join_exp_norm_comparison : | |
| β c C : β, 0 < c β§ 0 < C β§ β x : M, β p : TangentSpace π(β,Model n) x, | |
| p β minimizingVectors x β β t β Icc (1/4:β) (3/4), β v, | |
| βsplitJoinHessianOperator x t p vβ β€ C * βmfderiv π(β,TangentSpace π(β,Model n) x) | |
| π(β,Model n) (riemannianExp x) p vβ β§ | |
| βmfderiv π(β,TangentSpace π(β,Model n) x) π(β,Model n) (riemannianExp x) p vβ β€ | |
| c * βsplitJoinHessianOperator x t p vβ := by | |
| obtain β¨l,u,hl,hu,Hβ© := uniform_join_endpoint_factorization (n := n) (M := M) | |
| refine β¨1/l,4*u,div_pos (by norm_num) hl,mul_pos (by norm_num) hu,?_β© | |
| intro x p hp t ht v | |
| obtain β¨L,hL,hLn,hfacβ© := H x p hp t ht | |
| have hs : 0 < 1-t := by linarith [ht.2] | |
| have hn := dual_factor_norm_comparison (splitJoinHessianOperator x t p) L | |
| (mfderiv π(β,TangentSpace π(β,Model n) x) π(β,Model n) (riemannianExp x) p) | |
| hs hl hu hL.2 hLn (fun a k => by rw [hfac]; field_simp [hs.ne']; rfl) v | |
| change l * βmfderiv π(β,TangentSpace π(β,Model n) x) π(β,Model n) | |
| (riemannianExp x) p vβ β€ (1-t)*βsplitJoinHessianOperator x t p vβ β§ | |
| (1-t)*βsplitJoinHessianOperator x t p vβ β€ u*βmfderiv π(β,TangentSpace π(β,Model n) x) | |
| π(β,Model n) (riemannianExp x) p vβ at hn | |
| constructor | |
| Β· have hm := mul_le_mul_of_nonneg_right (show (1/4:β) β€ 1-t by linarith [ht.2]) | |
| (norm_nonneg (splitJoinHessianOperator x t p v)) | |
| have hh := hm.trans hn.2 | |
| linarith only [hh] | |
| Β· rw [one_div,mul_comm,βdiv_eq_mul_inv,le_div_iffβ hl] | |
| have hm := mul_le_mul_of_nonneg_right (show 1-t β€ 1 by linarith [ht.1]) | |
| (norm_nonneg (splitJoinHessianOperator x t p v)) | |
| have hh := hn.1.trans hm | |
| nlinarith only [hh] | |
| lemma uniform_join_exp_ordered_comparison : | |
| β c C : β, 0 < c β§ 0 < C β§ β x : M, β p : TangentSpace π(β,Model n) x, | |
| β hp : p β minimizingVectors x, β t : β, β ht : t β Icc (1/4:β) (3/4), | |
| β i : Fin (Module.finrank β (TangentSpace π(β,Model n) x)), | |
| (splitJoinHessianOperator_positive hp (by linarith [ht.1]) | |
| (by linarith [ht.2])).isSymmetric.eigenvalues rfl i β€ C * | |
| (endpointExpDifferential x p).toLinearMap.singularValues i β§ | |
| (endpointExpDifferential x p).toLinearMap.singularValues i β€ c * | |
| (splitJoinHessianOperator_positive hp (by linarith [ht.1]) | |
| (by linarith [ht.2])).isSymmetric.eigenvalues rfl i := by | |
| obtain β¨c,C,hc,hC,Hβ© := uniform_join_exp_norm_comparison (n := n) (M := M) | |
| refine β¨c,C,hc,hC,?_β© | |
| intro x p hp t ht i | |
| let Q := splitJoinHessianOperator x t p | |
| let E := endpointExpDifferential x p | |
| have hQ := splitJoinHessianOperator_positive hp | |
| (show 0 < t by linarith [ht.1]) (show t < 1 by linarith [ht.2]) | |
| have h1 := ordered_singularValues_pullback (A := Q.toLinearMap) (B := E.toLinearMap) | |
| (LinearMap.id) hC.le (by norm_num : (0:β) β€ 1) | |
| (fun v => by change βvβ β€ 1 * βvβ; simp) (fun v => (H x p hp t ht v).1) rfl rfl i | |
| have h2 := ordered_singularValues_pullback (A := E.toLinearMap) (B := Q.toLinearMap) | |
| (LinearMap.id) hc.le (by norm_num : (0:β) β€ 1) | |
| (fun v => by change βvβ β€ 1 * βvβ; simp) (fun v => (H x p hp t ht v).2) rfl rfl i | |
| rw [positive_singularValues_eq_eigenvalues hQ rfl i] at h1 h2 | |
| simpa only [mul_one] using And.intro h1 h2 | |
| end JoinSpectrum | |
| end WeakMTWTransport | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open Set Filter Manifold Bundle ContinuousLinearMap | |
| open scoped Topology ContDiff | |
| namespace WeakMTWTransport | |
| section UniformCongruence | |
| variable {n : β} {M : Type*} [MetricSpace M] [CompactSpace M] | |
| [ChartedSpace (Model n) M] [IsManifold π(β,Model n) β M] | |
| [RiemannianBundle (fun x : M => TangentSpace π(β,Model n) x)] | |
| [IsContMDiffRiemannianBundle π(β,Model n) β (Model n) | |
| (fun x : M => TangentSpace π(β,Model n) x)] | |
| [IsRiemannianManifold π(β,Model n) M] | |
| local instance (x : M) : FiniteDimensional β (TangentSpace π(β,Model n) x) := | |
| inferInstanceAs (FiniteDimensional β (Model n)) | |
| lemma uniform_split_join_hessian_congruence : | |
| β c C : β, 0 < c β§ 0 < C β§ β x : M, β p : TangentSpace π(β,Model n) x, | |
| p β minimizingVectors x β β h β Icc (1/4:β) (3/4), | |
| β P : TangentSpace π(β,Model n) x βL[β] | |
| TangentSpace π(β,Model n) (sprayFlow h (β¨x,pβ© : TangentBundle π(β,Model n) M)).1, | |
| Function.Bijective P β§ (β v, c*βvβ β€ βP vβ β§ βP vβ β€ C*βvβ) β§ β a, | |
| fderiv β (fderiv β (diagonalSplitAction x h)) (p,p) (0,a) (0,a)= | |
| middleHessian (β¨x,pβ© : TangentBundle π(β,Model n) M) h 1 (P a) (P a) := by | |
| obtain β¨c,C,hc,hC,Hβ© := uniform_prefix_log_derivative_bounds (n := n) (M := M) | |
| refine β¨c,C,hc,hC,?_β© | |
| intro x p hp h ht | |
| have hh : 0 < h := by linarith [ht.1] | |
| have hh1 : h < 1 := by linarith [ht.2] | |
| let z : TangentBundle π(β,Model n) M := β¨x,pβ© | |
| have hleft := contracted_minimizer_mem_injectivityDomain hp hh hh1 | |
| obtain β¨q,hqp,hq,hqinj,hqrβ© := exists_join_normal_coordinates hh.ne' hleft | |
| have hf := middleCenteredAction_contDiffAt (z := z) hp hh hh1 | |
| have hf' : ContDiffAt β 2 (middleCenteredAction z h) (q p) := by rwa [hqp] | |
| have hz : fderiv β (middleCenteredAction z h) (q p)=0 := by | |
| rw [hqp] | |
| exact (middleCenteredAction_minimum (z := z) hp hh hh1).fderiv_eq_zero | |
| have hF : ContDiffAt β 2 (diagonalSplitAction x h) (p,p) := | |
| (diagonalSplitAction_contDiffAt hleft (proper_suffix_in_injectivityDomain | |
| (z := z) hp hh hh1 le_rfl)).of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2) | |
| have he := middle_action_in_join_coordinates hp hh hh1 hqr | |
| have heD := he.fderiv (π := β) | |
| have heDD := heD.fderiv_eq (π := β) | |
| change fderiv β (fderiv β (middleCenteredAction z h β q)) p = | |
| fderiv β (fderiv β (fun a => diagonalSplitAction x h (p,a)-cost x (riemannianExp x p))) p at heDD | |
| have hsub : fderiv β (fun a => diagonalSplitAction x h (p,a)-cost x (riemannianExp x p))= | |
| fderiv β (fun a => diagonalSplitAction x h (p,a)) := by | |
| funext a; exact fderiv_sub_const _ | |
| rw [hsub] at heDD | |
| have hqs : Function.Surjective (fderiv β q p) := | |
| (LinearMap.injective_iff_surjective_of_finrank_eq_finrank | |
| (f := (fderiv β q p).toLinearMap) rfl).mp hqinj | |
| refine β¨fderiv β q p,β¨hqinj,hqsβ©, | |
| H x p hp h ht _ q (hq.differentiableAt (by simp)) hqp hqr,?_β© | |
| intro a | |
| have H := second_fderiv_comp_at_critical hf' (hq.of_le | |
| (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)) hz a a | |
| rw [heDD,hqp,second_derivative_target_slice hF] at H | |
| exact H.trans (middleCenteredAction_hessian (z := z) hp hh hh1 _) | |
| end UniformCongruence | |
| end WeakMTWTransport | |
| end | |
| end | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 8.06 kB
- Xet hash:
- 4cae5fef7b430d193f78919200f3541df23003f650fbe8e3e9a4f416192d7673
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.