Download data/lean/OAI/Analysis/BiholderTransport/Calculus/SmoothDistance.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.1 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/BiholderTransport/Calculus/SmoothDistance.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/BiholderTransport/Calculus/SmoothDistance.lean
-
curl -L -o SmoothDistance.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/BiholderTransport/Calculus/SmoothDistance.lean
6.1 kB
| import Mathlib | |
| import OAI.Analysis.BiholderTransport.Coordinates.Coordinates | |
| 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] | |
| local instance smoothDistanceNormedSpace : NormedSpace β E := | |
| InnerProductSpace.toNormedSpace | |
| local instance smoothDistanceNormedAddCommGroupEndomorphism : | |
| NormedAddCommGroup (E βL[β] E) := ContinuousLinearMap.toNormedAddCommGroup | |
| local instance smoothDistanceNormedSpaceEndomorphism : | |
| NormedSpace β (E βL[β] E) := ContinuousLinearMap.toNormedSpace | |
| local instance smoothDistanceNormedAddCommGroupDual : | |
| NormedAddCommGroup (E βL[β] β) := ContinuousLinearMap.toNormedAddCommGroup | |
| local instance smoothDistanceNormedSpaceDual : | |
| NormedSpace β (E βL[β] β) := ContinuousLinearMap.toNormedSpace | |
| local instance smoothDistanceNormedAddCommGroupBilinear : | |
| NormedAddCommGroup (E βL[β] E βL[β] β) := ContinuousLinearMap.toNormedAddCommGroup | |
| local instance smoothDistanceNormedSpaceBilinear : | |
| NormedSpace β (E βL[β] E βL[β] β) := ContinuousLinearMap.toNormedSpace | |
| lemma derivative_pullback_metric | |
| {g h : E β E βL[β] E βL[β] β} {Ο : E β E} {x : E} | |
| (hg : DifferentiableAt β g x) (hh : DifferentiableAt β h (Ο x)) | |
| (hΟ : DifferentiableAt β Ο x) (hDΟ : DifferentiableAt β (fderiv β Ο) x) | |
| (hmetric : βαΆ y in π x, β u v, g y u v = h (Ο y) (fderiv β Ο y u) (fderiv β Ο y v)) | |
| (w u v : E) : | |
| fderiv β g x w u v = | |
| fderiv β h (Ο x) (fderiv β Ο x w) (fderiv β Ο x u) (fderiv β Ο x v) + | |
| h (Ο x) (fderiv β (fderiv β Ο) x w u) (fderiv β Ο x v) + | |
| h (Ο x) (fderiv β Ο x u) (fderiv β (fderiv β Ο) x w v) := by | |
| have hleft := (hg.hasFDerivAt.clm_apply (hasFDerivAt_const u x)).clm_apply | |
| (hasFDerivAt_const v x) | |
| have hright := ((hh.hasFDerivAt.comp x hΟ.hasFDerivAt).clm_apply | |
| (hDΟ.hasFDerivAt.clm_apply (hasFDerivAt_const u x))).clm_apply | |
| (hDΟ.hasFDerivAt.clm_apply (hasFDerivAt_const v x)) | |
| have heq : (fun y => g y u v) =αΆ [π x] | |
| (fun y => h (Ο y) (fderiv β Ο y u) (fderiv β Ο y v)) := by | |
| filter_upwards [hmetric] with y hy; exact hy u v | |
| have he := congrArg (fun L : E βL[β] β => L w) | |
| ((hleft.congr_of_eventuallyEq heq.symm).unique hright) | |
| simpa [add_assoc,add_comm,add_left_comm] using he | |
| lemma christoffel_pushforward_pairing | |
| {g h : E β E βL[β] E βL[β] β} {Ο : E β E} {x : E} | |
| (hg : DifferentiableAt β g x) (hh : DifferentiableAt β h (Ο x)) | |
| (hΟ : ContDiffAt β β Ο x) | |
| (hmetric : βαΆ y in π x, β u v, g y u v = h (Ο y) (fderiv β Ο y u) (fderiv β Ο y v)) | |
| (hgi : (g x).IsInvertible) (hhi : (h (Ο x)).IsInvertible) | |
| (hhs : β u v, h (Ο x) u v = h (Ο x) v u) (u v w : E) : | |
| h (Ο x) (fderiv β Ο x (coordinateChristoffel g x u v)) (fderiv β Ο x w) = | |
| h (Ο x) (fderiv β (fderiv β Ο) x u v + | |
| coordinateChristoffel h (Ο x) (fderiv β Ο x u) (fderiv β Ο x v)) | |
| (fderiv β Ο x w) := by | |
| have hpd := hΟ.differentiableAt (by simp) | |
| have hD := (hΟ.fderiv_right (m := β) (by simp)).differentiableAt (by simp) | |
| have hp := derivative_pullback_metric hg hh hpd hD hmetric | |
| have hm := hmetric.self_of_nhds | |
| have hb : β u v, fderiv β (fderiv β Ο) x u v = fderiv β (fderiv β Ο) x v u := by | |
| intro u v | |
| exact (hΟ.isSymmSndFDerivAt (by simp)).eq u v | |
| have h1 := coordinateChristoffel_metric g x u v w hgi | |
| have h2 := coordinateChristoffel_metric h (Ο x) (fderiv β Ο x u) | |
| (fderiv β Ο x v) (fderiv β Ο x w) hhi | |
| rw [hm,hp u v w,hp v u w,hp w u v] at h1 | |
| rw [hb v u,hb w u,hb w v] at h1 | |
| rw [hhs (fderiv β Ο x v) _,hhs (fderiv β Ο x u) _] at h1 | |
| simp only [map_add,add_apply] | |
| linarith | |
| lemma christoffel_pushforward | |
| {g h : E β E βL[β] E βL[β] β} {Ο : E β E} {x : E} | |
| (hg : DifferentiableAt β g x) (hh : DifferentiableAt β h (Ο x)) | |
| (hΟ : ContDiffAt β β Ο x) (hΟs : Function.Surjective (fderiv β Ο x)) | |
| (hmetric : βαΆ y in π x, β u v, g y u v = h (Ο y) (fderiv β Ο y u) (fderiv β Ο y v)) | |
| (hgi : (g x).IsInvertible) (hhi : (h (Ο x)).IsInvertible) | |
| (hhs : β u v, h (Ο x) u v = h (Ο x) v u) (u v : E) : | |
| fderiv β Ο x (coordinateChristoffel g x u v) = | |
| fderiv β (fderiv β Ο) x u v + | |
| coordinateChristoffel h (Ο x) (fderiv β Ο x u) (fderiv β Ο x v) := by | |
| have heq : h (Ο x) (fderiv β Ο x (coordinateChristoffel g x u v)) = | |
| h (Ο x) (fderiv β (fderiv β Ο) x u v + | |
| coordinateChristoffel h (Ο x) (fderiv β Ο x u) (fderiv β Ο x v)) := by | |
| ext w | |
| obtain β¨z,rflβ© := hΟs w | |
| exact christoffel_pushforward_pairing hg hh hΟ hmetric hgi hhi hhs u v z | |
| rcases hhi with β¨A,hAβ© | |
| apply A.injective | |
| change A.toContinuousLinearMap _ = A.toContinuousLinearMap _ | |
| rw [hA] | |
| exact heq | |
| end WeakMTWTransport | |
| end | |
| end OAI | |