Download data/lean/OAI/Analysis/BiholderTransport/Calculus/LocalCostSmooth.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.05 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/BiholderTransport/Calculus/LocalCostSmooth.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/BiholderTransport/Calculus/LocalCostSmooth.lean
-
curl -L -o LocalCostSmooth.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/BiholderTransport/Calculus/LocalCostSmooth.lean
5.05 kB
| import Mathlib | |
| import OAI.Analysis.BiholderTransport.Coordinates.JointNormalChart | |
| 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 | |
| open Set Filter Manifold Bundle ContinuousLinearMap | |
| open scoped Topology ContDiff Manifold Bundle | |
| open Set Filter Manifold Bundle | |
| open scoped Topology ContDiff Manifold Bundle | |
| open Set Filter Manifold Bundle | |
| open scoped Topology ContDiff Manifold Bundle | |
| open Set Filter Bundle | |
| open scoped Topology Bundle | |
| open scoped Topology | |
| open Function Manifold Set | |
| open Manifold Bundle | |
| open scoped Manifold Bundle | |
| open Set | |
| 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)] | |
| [IsContMDiffRiemannianBundle π(β,E) β E (fun x : M => TangentSpace π(β,E) x)] | |
| [IsRiemannianManifold π(β,E) M] | |
| lemma exists_local_cost_smooth (a : M) : | |
| β Ξ΄ : β, 0<Ξ΄ β§ ContMDiffOn (π(β,E).prod π(β,E)) π(β,β) β | |
| (fun z : MΓM => dist z.1 z.2^2/2) (Metric.ball a Ξ΄ ΓΛ’ Metric.ball a Ξ΄) := by | |
| obtain β¨Ξ΄,_,Ο,hΞ΄,_,_,_,Ξ¦,e,_,_,_,he,_,_,hei,hsrc,_,htarget,hdistβ© := | |
| exists_uniform_metric_normal_coordinates (E := E) a | |
| let c := extChartAt π(β,E) a | |
| let g := riemannianCoordinateMetric (E := E) a | |
| let V : MΓM β E := fun z => (e.symm (c z.1,c z.2)).2 | |
| let f : MΓM β β := fun z => (Ο^2/2)*g (c z.1) (V z) (V z) | |
| have heq : β z β Metric.ball a Ξ΄ ΓΛ’ Metric.ball a Ξ΄, dist z.1 z.2^2/2 = f z := by | |
| rintro β¨b,yβ© β¨hb,hyβ© | |
| have ht := htarget b hb y hy | |
| have hs := e.map_target ht | |
| have hi := e.right_inv ht | |
| have hfst : (e.symm (c b,c y)).1=c b := by | |
| have hh := congrArg Prod.fst hi | |
| rw [he] at hh | |
| exact hh | |
| have hpair : e.symm (c b,c y)=(c b,V (b,y)) := Prod.ext hfst rfl | |
| rw [hpair] at hs hi | |
| have hval : (Ξ¦ (Ο,(c b,V (b,y)))).1=c y := by | |
| have hh := congrArg Prod.snd hi | |
| rw [he] at hh | |
| exact hh | |
| have hd := hdist b hb y hy (V (b,y)) hs hval | |
| have hnonneg : 0 β€ g (c b) (V (b,y)) (V (b,y)) := by | |
| by_cases hv : V (b,y)=0 | |
| Β· simp [hv] | |
| Β· exact (riemannianCoordinateMetric_positive (c.map_source (hsrc hb)) hv).le | |
| change dist b y^2/2 = (Ο^2/2)*g (c b) (V (b,y)) (V (b,y)) | |
| rw [hd,mul_pow,Real.sq_sqrt hnonneg] | |
| ring | |
| refine β¨Ξ΄,hΞ΄,?_β© | |
| rintro z hz | |
| have hcβ : ContMDiffAt (π(β,E).prod π(β,E)) π(β,E) β (fun z : MΓM => c z.1) z := | |
| (contMDiffAt_extChartAt' (I := π(β,E)) (by simpa only [extChartAt_source] using hsrc hz.1)).comp z contMDiffAt_fst | |
| have hcβ : ContMDiffAt (π(β,E).prod π(β,E)) π(β,E) β (fun z : MΓM => c z.2) z := | |
| (contMDiffAt_extChartAt' (I := π(β,E)) (by simpa only [extChartAt_source] using hsrc hz.2)).comp z contMDiffAt_snd | |
| have heSnd : ContDiffAt β β (fun w : EΓE => (e.symm w).2) (c z.1,c z.2) := | |
| (hei.contDiffAt (e.open_target.mem_nhds (htarget z.1 hz.1 z.2 hz.2))).snd | |
| have heSndM : ContMDiffAt π(β,EΓE) π(β,E) β | |
| (fun w : EΓE => (e.symm w).2) (c z.1,c z.2) := heSnd.contMDiffAt | |
| have hV : ContMDiffAt (π(β,E).prod π(β,E)) π(β,E) β V z := | |
| heSndM.comp (f := fun z : MΓM => (c z.1,c z.2)) z (hcβ.prodMk_space hcβ) | |
| have hg : ContMDiffAt (π(β,E).prod π(β,E)) π(β,E βL[β] E βL[β] β) β | |
| (fun z : MΓM => g (c z.1)) z := | |
| ((contDiffOn_riemannianCoordinateMetric a).contDiffAt | |
| ((isOpen_extChartAt_target a).mem_nhds (c.map_source (hsrc hz.1)))).contMDiffAt.comp z hcβ | |
| have hf : ContMDiffAt (π(β,E).prod π(β,E)) π(β,β) β f z := | |
| contMDiffAt_const.mul ((hg.clm_apply hV).clm_apply hV) | |
| exact ((hf.congr_of_eventuallyEq (Filter.eventuallyEq_of_mem | |
| ((Metric.isOpen_ball.prod Metric.isOpen_ball).mem_nhds hz) heq)).contMDiffWithinAt) | |
| end WeakMTWTransport | |
| end | |
| end OAI | |