File size: 11,287 Bytes
4a56cd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
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