math / data /lean /OAI /Analysis /BiholderTransport /LocalFlow /LocalMetricNormal.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
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