Download data/lean/OAI/Analysis/BiholderTransport/LocalFlow/LocalMetricNormal.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 11.3 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/BiholderTransport/LocalFlow/LocalMetricNormal.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/BiholderTransport/LocalFlow/LocalMetricNormal.lean
-
curl -L -o LocalMetricNormal.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/BiholderTransport/LocalFlow/LocalMetricNormal.lean
11.3 kB
| import Mathlib | |
| import OAI.Analysis.BiholderTransport.Coordinates.CoordinateMetricNorm | |
| import OAI.Analysis.BiholderTransport.Volume.RiemannianCalibration | |
| namespace OAI | |
| noncomputable section | |
| open Set MeasureTheory Manifold Bundle | |
| open scoped ContDiff Manifold ENNReal NNReal Topology | |
| open Set Filter | |
| open scoped Topology NNReal | |
| open Set Filter | |
| open scoped Topology | |
| open Set Manifold MeasureTheory Bundle | |
| open scoped ENNReal ContDiff Topology | |
| open Set | |
| open scoped Topology | |
| open Set Filter Manifold Bundle ContinuousLinearMap | |
| open scoped Topology ContDiff Manifold Bundle | |
| open Set Filter ContinuousLinearMap InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Set Filter ContinuousLinearMap | |
| open scoped Topology ContDiff | |
| open Set Filter ContinuousLinearMap | |
| open scoped Topology ContDiff | |
| open Set Filter ContinuousLinearMap | |
| open scoped Topology ContDiff | |
| open scoped NNReal | |
| open Set Filter ContinuousLinearMap | |
| open scoped Topology ContDiff | |
| open Set Filter ContinuousLinearMap | |
| open scoped Topology | |
| open MeasureTheory | |
| open scoped ContDiff ENNReal | |
| open Set Filter Manifold Bundle ContinuousLinearMap MeasureTheory | |
| open scoped Topology ContDiff Manifold Bundle ENNReal | |
| open Set Filter Manifold MeasureTheory Bundle | |
| open scoped ENNReal ContDiff Topology Manifold | |
| namespace WeakMTWTransport | |
| variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace β E] | |
| [FiniteDimensional β E] | |
| {M : Type*} [MetricSpace M] [ChartedSpace E M] [IsManifold π(β,E) β M] | |
| [RiemannianBundle (fun x : M => TangentSpace π(β,E) x)] | |
| [IsRiemannianManifold π(β,E) M] | |
| omit [IsRiemannianManifold π(β,E) M] in | |
| lemma coordinate_flow_path_length | |
| {g : E β E βL[β] E βL[β] β} {S : Set E} (hS : IsOpen S) | |
| (hg : ContDiffOn β β g S) (hpos : β x β S, β v : E, v β 0 β 0 < g x v v) | |
| (hsym : β x β S, β u v, g x u v = g x v u) | |
| {c : M} (hSto : S β (extChartAt π(β,E) c).target) | |
| (hmetric : β z β S, β u v : E, g z u v = | |
| inner β ((trivializationAt E (fun x : M => TangentSpace π(β,E) x) c).symmL β | |
| ((extChartAt π(β,E) c).symm z) u) | |
| ((trivializationAt E (fun x : M => TangentSpace π(β,E) x) c).symmL β | |
| ((extChartAt π(β,E) c).symm z) v)) | |
| {Ξ· V : β β E} {r : β} (hΞ· : ContDiffOn β β Ξ· (Ioo (-r) r)) | |
| (himg : MapsTo Ξ· (Ioo (-r) r) S) | |
| (hode : β t β Ioo (-r) r, HasDerivAt Ξ· (V t) t β§ | |
| HasDerivAt V (-coordinateChristoffel g (Ξ· t) (V t) (V t)) t) | |
| {Ο : β} (hΟ : 0 β€ Ο) (hΟr : Ο < r) : | |
| pathELength π(β,E) ((extChartAt π(β,E) c).symm β Ξ·) 0 Ο = | |
| ENNReal.ofReal (Ο * Real.sqrt (g (Ξ· 0) (V 0) (V 0))) := by | |
| have hr : 0 < r := hΟ.trans_lt hΟr | |
| have h0 : (0:β) β Ioo (-r) r := β¨by linarith,hrβ© | |
| have hsub : Icc 0 Ο β Ioo (-r) r := fun t ht => β¨by linarith [ht.1],ht.2.trans_lt hΟrβ© | |
| rw [inverse_coordinate_path_length ((hΞ·.mono hsub).of_le (by simp)) | |
| (fun t ht => hSto (himg (hsub ht))) g (fun t ht => hmetric _ (himg (hsub ht)))] | |
| have hi : β y β S, (g y).IsInvertible := fun y hy => metricDual_isInvertible (g y) (hpos y hy) | |
| have hc : β t β Icc 0 Ο, g (Ξ· t) (deriv Ξ· t) (deriv Ξ· t) = g (Ξ· 0) (V 0) (V 0) := by | |
| intro t ht | |
| rw [(hode t (hsub ht)).1.deriv] | |
| exact coordinate_geodesic_speed_constant | |
| (fun s hs => (hg.contDiffAt (hS.mem_nhds (himg hs))).differentiableAt (by simp)) | |
| (fun s hs => hi _ (himg hs)) (fun s hs => hsym _ (himg hs)) hode (hsub ht) h0 | |
| calc | |
| _ = β«β» t in Icc (0:β) Ο, ENNReal.ofReal (Real.sqrt (g (Ξ· 0) (V 0) (V 0))) := by | |
| apply setLIntegral_congr_fun measurableSet_Icc | |
| intro t ht | |
| dsimp only | |
| rw [hc t ht] | |
| _ = _ := by rw [setLIntegral_const,Real.volume_Icc,sub_zero,ENNReal.ofReal_mul hΟ,mul_comm] | |
| lemma riemannian_normal_chart_dist_lower | |
| {g : E β E βL[β] E βL[β] β} {S : Set E} (hS : IsOpen S) | |
| (hg : ContDiffOn β β g S) (hpos : β x β S, β v : E, v β 0 β 0 < g x v v) | |
| (hsym : β x β S, β u v, g x u v = g x v u) | |
| {c : M} | |
| (hmetric : β z β S, β u v : E, g z u v = | |
| inner β ((trivializationAt E (fun x : M => TangentSpace π(β,E) x) c).symmL β | |
| ((extChartAt π(β,E) c).symm z) u) | |
| ((trivializationAt E (fun x : M => TangentSpace π(β,E) x) c).symmL β | |
| ((extChartAt π(β,E) c).symm z) v)) | |
| {Ξ¨ W : β Γ E β E} {r : β} | |
| (hΞ¨ : ContDiffOn β β Ξ¨ (Ioo (-r) r ΓΛ’ Metric.ball 0 r)) | |
| (hW : ContDiffOn β β W (Ioo (-r) r ΓΛ’ Metric.ball 0 r)) | |
| (himg : β t β Ioo (-r) r, β v β Metric.ball 0 r, Ξ¨ (t,v) β S) | |
| (hode : β t β Ioo (-r) r, β v β Metric.ball 0 r, | |
| HasDerivAt (fun q => Ξ¨ (q,v)) (W (t,v)) t β§ | |
| HasDerivAt (fun q => W (q,v)) | |
| (-coordinateChristoffel g (Ξ¨ (t,v)) (W (t,v)) (W (t,v))) t) | |
| {x : E} (h0 : 0 β Ioo (-r) r) | |
| (hΞ¨0 : β v β Metric.ball 0 r, Ξ¨ (0,v) = x) | |
| (hW0 : β v β Metric.ball 0 r, W (0,v) = v) | |
| {Ο : β} (hΟ : Ο β Ioo (-r) r) (hΟnonneg : 0 β€ Ο) | |
| (e : OpenPartialHomeomorph E E) (hef : (e : E β E) = fun v => Ξ¨ (Ο,v)) | |
| (hes : 0 β e.source) (hesub : e.source β Metric.ball 0 r) | |
| (hed : ContDiffOn β β e e.source) (hei : ContDiffOn β β e.symm e.target) | |
| {a y : M} (he0 : e 0 = extChartAt π(β,E) c a) | |
| {Ξ΄ : β} (hball : Metric.ball a Ξ΄ β | |
| (extChartAt π(β,E) c).source β© (extChartAt π(β,E) c) β»ΒΉ' e.target) | |
| (hdist : dist a y < Ξ΄) : | |
| Ο * Real.sqrt (g x (e.symm (extChartAt π(β,E) c y)) | |
| (e.symm (extChartAt π(β,E) c y))) β€ dist a y := by | |
| apply riemannian_local_dist_lower_bound (I := π(β,E)) hball hdist | |
| intro Ξ³ hΞ³ hΞ³0 hΞ³1 hΞ³img | |
| let Ξ· : β β E := (extChartAt π(β,E) c) β Ξ³ | |
| have hΞ· : ContDiffOn β 1 Ξ· (Icc 0 1) := | |
| contMDiffOn_iff_contDiffOn.mp | |
| ((contMDiffOn_extChartAt (I := π(β,E)) (n := 1) (x := c)).comp hΞ³ (fun t ht => by | |
| change Ξ³ t β (chartAt E c).source | |
| simpa only [extChartAt_source] using (hΞ³img ht).1)) | |
| have hΞ·img : MapsTo Ξ· (Icc 0 1) e.target := fun t ht => (hΞ³img ht).2 | |
| have hΞ·S : β t β Icc 0 1, Ξ· t β S := by | |
| intro t ht | |
| have hh := himg Ο hΟ (e.symm (Ξ· t)) (hesub (e.map_target (hΞ·img ht))) | |
| have hval := congrFun hef (e.symm (Ξ· t)) | |
| rw [βhval,e.right_inv (hΞ·img ht)] at hh | |
| exact hh | |
| have hb := coordinate_normal_chart_radial_bound hS hg hpos hsym hΨ hW himg hode | |
| h0 hΞ¨0 hW0 hΟ hΟnonneg e hef hes hesub hed hei (by norm_num : (0:β) β€ 1) | |
| hΞ· hΞ·img (by simp only [Ξ·,Function.comp_apply,hΞ³0,he0]) | |
| have hlen := coordinate_path_length hΞ³ (fun t ht => (hΞ³img ht).1) g (by | |
| intro t ht u v | |
| have hh := hmetric (Ξ· t) (hΞ·S t ht) u v | |
| have hinner := congrArg (fun z : M => | |
| inner β ((trivializationAt E (fun x : M => TangentSpace π(β,E) x) c).symmL β z u) | |
| ((trivializationAt E (fun x : M => TangentSpace π(β,E) x) c).symmL β z v)) | |
| ((extChartAt π(β,E) c).left_inv (hΞ³img ht).1) | |
| exact hh.trans hinner) | |
| rw [hlen] | |
| simpa only [Ξ·,Function.comp_apply,hΞ³1] using hb | |
| lemma riemannian_coordinate_normal_chart_dist | |
| {g : E β E βL[β] E βL[β] β} {S : Set E} (hS : IsOpen S) | |
| (hg : ContDiffOn β β g S) (hpos : β x β S, β v : E, v β 0 β 0 < g x v v) | |
| (hsym : β x β S, β u v, g x u v = g x v u) | |
| {c : M} (hSto : S β (extChartAt π(β,E) c).target) | |
| (hmetric : β z β S, β u v : E, g z u v = | |
| inner β ((trivializationAt E (fun x : M => TangentSpace π(β,E) x) c).symmL β | |
| ((extChartAt π(β,E) c).symm z) u) | |
| ((trivializationAt E (fun x : M => TangentSpace π(β,E) x) c).symmL β | |
| ((extChartAt π(β,E) c).symm z) v)) | |
| {Ξ¨ W : β Γ E β E} {r : β} | |
| (hΞ¨ : ContDiffOn β β Ξ¨ (Ioo (-r) r ΓΛ’ Metric.ball 0 r)) | |
| (hW : ContDiffOn β β W (Ioo (-r) r ΓΛ’ Metric.ball 0 r)) | |
| (himg : β t β Ioo (-r) r, β v β Metric.ball 0 r, Ξ¨ (t,v) β S) | |
| (hode : β t β Ioo (-r) r, β v β Metric.ball 0 r, | |
| HasDerivAt (fun q => Ξ¨ (q,v)) (W (t,v)) t β§ | |
| HasDerivAt (fun q => W (q,v)) | |
| (-coordinateChristoffel g (Ξ¨ (t,v)) (W (t,v)) (W (t,v))) t) | |
| {a y : M} (h0 : 0 β Ioo (-r) r) | |
| (hΞ¨0 : β v β Metric.ball 0 r, Ξ¨ (0,v) = extChartAt π(β,E) c a) | |
| (hW0 : β v β Metric.ball 0 r, W (0,v) = v) | |
| {Ο : β} (hΟ : Ο β Ioo (-r) r) (hΟnonneg : 0 β€ Ο) | |
| (e : OpenPartialHomeomorph E E) (hef : (e : E β E) = fun v => Ξ¨ (Ο,v)) | |
| (he0 : e 0 = extChartAt π(β,E) c a) | |
| (hes : 0 β e.source) (hesub : e.source β Metric.ball 0 r) | |
| (hed : ContDiffOn β β e e.source) (hei : ContDiffOn β β e.symm e.target) | |
| {Ξ΄ : β} (hball : Metric.ball a Ξ΄ β | |
| (extChartAt π(β,E) c).source β© (extChartAt π(β,E) c) β»ΒΉ' e.target) | |
| (hdist : dist a y < Ξ΄) : | |
| dist a y = Ο * Real.sqrt (g (extChartAt π(β,E) c a) | |
| (e.symm (extChartAt π(β,E) c y)) (e.symm (extChartAt π(β,E) c y))) := by | |
| apply le_antisymm _ (riemannian_normal_chart_dist_lower hS hg hpos hsym hmetric | |
| hΞ¨ hW himg hode h0 hΞ¨0 hW0 hΟ hΟnonneg e hef hes hesub hed hei he0 hball hdist) | |
| have hΞ΄ : 0 < Ξ΄ := dist_nonneg.trans_lt hdist | |
| have ha := hball (Metric.mem_ball_self hΞ΄) | |
| have hy := hball (show y β Metric.ball a Ξ΄ by simpa only [Metric.mem_ball,dist_comm] using hdist) | |
| let v := e.symm (extChartAt π(β,E) c y) | |
| have hv : v β Metric.ball 0 r := hesub (e.map_target hy.2) | |
| let Ξ· : β β E := fun t => Ξ¨ (t,v) | |
| have hΞ· : ContDiffOn β β Ξ· (Ioo (-r) r) := | |
| hΞ¨.comp (contDiffOn_id.prodMk contDiffOn_const) (fun t ht => β¨ht,hvβ©) | |
| have hsub : Icc 0 Ο β Ioo (-r) r := fun t ht => β¨h0.1.trans_le ht.1,ht.2.trans_lt hΟ.2β© | |
| have hΞ³ : ContMDiffOn π(β,β) π(β,E) 1 | |
| ((extChartAt π(β,E) c).symm β Ξ·) (Icc 0 Ο) := | |
| (contMDiffOn_extChartAt_symm (n := 1) c).comp | |
| (contMDiffOn_iff_contDiffOn.mpr ((hΞ·.mono hsub).of_le (by simp))) | |
| (fun t ht => hSto (himg t (hsub ht) v hv)) | |
| have hΞ³0 : ((extChartAt π(β,E) c).symm β Ξ·) 0 = a := by | |
| simp only [Function.comp_apply,Ξ·,hΞ¨0 v hv,(extChartAt π(β,E) c).left_inv ha.1] | |
| have hΞ³Ο : ((extChartAt π(β,E) c).symm β Ξ·) Ο = y := by | |
| have heq := congrFun hef v | |
| simp only [Function.comp_apply,Ξ·,βheq,v,e.right_inv hy.2, | |
| (extChartAt π(β,E) c).left_inv hy.1] | |
| have hh := riemannianEDist_le_pathELength (I := π(β,E)) hΞ³ hΞ³0 hΞ³Ο hΟnonneg | |
| rw [βIsRiemannianManifold.out,edist_dist] at hh | |
| have hlen := coordinate_flow_path_length hS hg hpos hsym hSto hmetric hΞ· | |
| (fun t ht => himg t ht v hv) (fun t ht => hode t ht v hv) hΟnonneg hΟ.2 | |
| rw [hlen] at hh | |
| have hc : 0 β€ Ο * Real.sqrt (g (extChartAt π(β,E) c a) v v) := mul_nonneg hΟnonneg (Real.sqrt_nonneg _) | |
| have hh' : ENNReal.ofReal (dist a y) β€ | |
| ENNReal.ofReal (Ο * Real.sqrt (g (extChartAt π(β,E) c a) v v)) := by | |
| simpa only [η,hΨ0 v hv,hW0 v hv] using hh | |
| exact (ENNReal.ofReal_le_ofReal_iff hc).mp hh' | |
| variable [IsContMDiffRiemannianBundle π(β,E) β E | |
| (fun x : M => TangentSpace π(β,E) x)] | |
| end WeakMTWTransport | |
| end | |
| end OAI | |