Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

| 1 | /- Adapted from Mapher `PoincareMT/Proofs/M03/Existence/DeTurckJetCoordinatesNative.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Geometry.RicciFlow.Local.DeTurck.Jets.DeTurckCompatibleJet |
| 6 | import Mathlib.MeasureTheory.Function.Holder |
| 7 | import Mathlib.MeasureTheory.Function.LpSpace.ContinuousFunctions |
| 8 | |
| 9 | /-! |
| 10 | # Native coordinates for the finite DeTurck derivative tuples |
| 11 | |
| 12 | The chart fields are smooth linear combinations of the fixed native fields. |
| 13 | Iterating this identity gives an actual finite differential expression, |
| 14 | including every derivative of its fixed coefficients. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option maxHeartbeats 1200000 |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | open scoped Manifold ContDiff Bundle |
| 24 | |
| 25 | namespace PoincareMT.DeTurckJetCoordinatesNative |
| 26 | |
| 27 | open TensorProbeNative DeTurckCompatibleJetNative DeTurckNative |
| 28 | DeTurckInverseCompositionNative |
| 29 | |
| 30 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 32 | {iota jota : Type*} [Fintype iota] |
| 33 | |
| 34 | def scaleTerms (c : M → ℝ) (hc : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ c) |
| 35 | (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) : |
| 36 | List (DirectionalTerm (n := n) (M := M) (iota := iota)) := |
| 37 | terms.map (fun t => { |
| 38 | coefficient := fun x => c x * t.coefficient x |
| 39 | smooth := by |
| 40 | exact hc.mul (g := t.coefficient) t.smooth |
| 41 | word := t.word }) |
| 42 | |
| 43 | theorem directionalTerms_scale (F : iota → SmoothField (n := n) (M := M)) |
| 44 | (c : M → ℝ) (hc : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ c) |
| 45 | (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) |
| 46 | (f : M → ℝ) (x : M) : |
| 47 | directionalTerms F (scaleTerms c hc terms) f x = c x * directionalTerms F terms f x := by |
| 48 | induction terms with |
| 49 | | nil => simp [scaleTerms] |
| 50 | | cons t terms ih => |
| 51 | change (c x * t.coefficient x) * directionalWord F t.word f x + |
| 52 | directionalTerms F (scaleTerms c hc terms) f x = |
| 53 | c x * (t.coefficient x * directionalWord F t.word f x + directionalTerms F terms f x) |
| 54 | rw [ih] |
| 55 | ring |
| 56 | |
| 57 | theorem directionalTerms_flatMap {α : Type*} |
| 58 | (F : iota → SmoothField (n := n) (M := M)) (l : List α) |
| 59 | (terms : α → List (DirectionalTerm (n := n) (M := M) (iota := iota))) |
| 60 | (f : M → ℝ) (x : M) : |
| 61 | directionalTerms F (l.flatMap terms) f x = |
| 62 | (l.map (fun a => directionalTerms F (terms a) f x)).sum := by |
| 63 | induction l with |
| 64 | | nil => rfl |
| 65 | | cons a l ih => |
| 66 | rw [List.flatMap_cons, directionalTerms_append, ih] |
| 67 | rfl |
| 68 | |
| 69 | variable (F : iota → SmoothField (n := n) (M := M)) |
| 70 | (coefficient : jota → iota → M → ℝ) |
| 71 | (hcoefficient : ∀ a i, ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ (coefficient a i)) |
| 72 | |
| 73 | def expandedDerivative (a : jota) |
| 74 | (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) : |
| 75 | List (DirectionalTerm (n := n) (M := M) (iota := iota)) := |
| 76 | Finset.univ.toList.flatMap (fun i => scaleTerms (coefficient a i) (hcoefficient a i) |
| 77 | (differentiateDirectionalTerms F i terms)) |
| 78 | |
| 79 | theorem expandedDerivative_order (a : jota) |
| 80 | (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) |
| 81 | {k : ℕ} (h : ∀ t ∈ terms, t.word.length ≤ k) : |
| 82 | ∀ t ∈ expandedDerivative F coefficient hcoefficient a terms, t.word.length ≤ k + 1 := by |
| 83 | intro t ht |
| 84 | obtain ⟨i, _, ht⟩ := List.mem_flatMap.mp ht |
| 85 | dsimp only [scaleTerms] at ht |
| 86 | obtain ⟨s, hs, rfl⟩ := List.mem_map.mp ht |
| 87 | exact differentiateDirectionalTerms_order F i terms h s hs |
| 88 | |
| 89 | theorem expandedDerivative_eq |
| 90 | (V : jota → SmoothField (n := n) (M := M)) |
| 91 | (hV : ∀ a x, V a x = ∑ i, coefficient a i x • F i x) |
| 92 | (a : jota) (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) |
| 93 | {f : M → ℝ} (hf : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ f) (x : M) : |
| 94 | directionalTerms F (expandedDerivative F coefficient hcoefficient a terms) f x = |
| 95 | scalarDirectional (V a) (directionalTerms F terms f) x := by |
| 96 | simp only [expandedDerivative, directionalTerms_flatMap, directionalTerms_scale, |
| 97 | directionalTerms_differentiate F _ _ hf, Finset.sum_map_toList] |
| 98 | change (∑ i, coefficient a i x * scalarDirectional (F i) (directionalTerms F terms f) x) = |
| 99 | mfderiv (𝓡 n) 𝓘(ℝ, ℝ) (directionalTerms F terms f) x (V a x) |
| 100 | rw [hV a x, map_sum] |
| 101 | simp only [map_smul, scalarDirectional] |
| 102 | rfl |
| 103 | |
| 104 | def wordTerms : List jota → List (DirectionalTerm (n := n) (M := M) (iota := iota)) |
| 105 | | [] => [⟨fun _ => 1, contMDiff_const, []⟩] |
| 106 | | a :: w => expandedDerivative F coefficient hcoefficient a |
| 107 | (wordTerms w) |
| 108 | |
| 109 | theorem wordTerms_order (w : List jota) : |
| 110 | ∀ t ∈ wordTerms F coefficient hcoefficient w, t.word.length ≤ w.length := by |
| 111 | induction w with |
| 112 | | nil => |
| 113 | intro t ht |
| 114 | have ht' : t = ⟨fun _ => 1, contMDiff_const, []⟩ := List.mem_singleton.mp ht |
| 115 | subst t |
| 116 | exact le_rfl |
| 117 | | cons a w ih => exact expandedDerivative_order F coefficient hcoefficient a _ ih |
| 118 | |
| 119 | theorem wordTerms_eq |
| 120 | (V : jota → SmoothField (n := n) (M := M)) |
| 121 | (hV : ∀ a x, V a x = ∑ i, coefficient a i x • F i x) |
| 122 | (w : List jota) {f : M → ℝ} (hf : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ f) (x : M) : |
| 123 | directionalTerms F (wordTerms F coefficient hcoefficient w) f x = |
| 124 | directionalWord V w f x := by |
| 125 | induction w generalizing x with |
| 126 | | nil => simp [wordTerms] |
| 127 | | cons a w ih => |
| 128 | rw [wordTerms, expandedDerivative_eq F coefficient hcoefficient V hV _ _ hf] |
| 129 | exact congrArg (fun g : M → ℝ => scalarDirectional (V a) g x) (funext ih) |
| 130 | |
| 131 | section Compatible |
| 132 | |
| 133 | variable [T2Space M] [CompactSpace M] {p : M} {K : Set M} (C : Cutoffs (n := n) p K) |
| 134 | |
| 135 | def combinedFields : Fin n ⊕ iota → SmoothField (n := n) (M := M) := |
| 136 | Sum.elim C.field F |
| 137 | |
| 138 | def combinedCoefficient (g0 : RiemannianMetric n M) : (Fin n ⊕ iota) → iota → M → ℝ := by |
| 139 | classical |
| 140 | exact Sum.elim (C.fieldCoefficient g0 F) (fun a i _ => if a = i then 1 else 0) |
| 141 | |
| 142 | theorem combinedCoefficient_contMDiff (g0 : RiemannianMetric n M) |
| 143 | (a : Fin n ⊕ iota) (i : iota) : |
| 144 | ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ (combinedCoefficient F C g0 a i) := by |
| 145 | cases a with |
| 146 | | inl a => exact C.fieldCoefficient_contMDiff g0 F a i |
| 147 | | inr a => exact contMDiff_const |
| 148 | |
| 149 | theorem combinedFields_eq_sum (g0 : RiemannianMetric n M) |
| 150 | (hF : ∀ (x : M) (v : TangentSpace (𝓡 n) x), |
| 151 | (∑ i, g0.inner x (F i x) v • F i x) = v) (a : Fin n ⊕ iota) (x : M) : |
| 152 | combinedFields F C a x = ∑ i, combinedCoefficient F C g0 a i x • F i x := by |
| 153 | classical |
| 154 | cases a with |
| 155 | | inl a => exact C.field_eq_sum g0 F hF a x |
| 156 | | inr a => simp [combinedFields, combinedCoefficient] |
| 157 | |
| 158 | def combinedWordTerms (g0 : RiemannianMetric n M) (w : List (Fin n ⊕ iota)) : |
| 159 | List (DirectionalTerm (n := n) (M := M) (iota := iota)) := |
| 160 | wordTerms F (combinedCoefficient F C g0) (combinedCoefficient_contMDiff F C g0) w |
| 161 | |
| 162 | theorem combinedWordTerms_order (g0 : RiemannianMetric n M) |
| 163 | (w : List (Fin n ⊕ iota)) : |
| 164 | ∀ t ∈ combinedWordTerms F C g0 w, t.word.length ≤ w.length := |
| 165 | wordTerms_order F (combinedCoefficient F C g0) (combinedCoefficient_contMDiff F C g0) w |
| 166 | |
| 167 | theorem combinedWordTerms_eq (g0 : RiemannianMetric n M) |
| 168 | (hF : ∀ (x : M) (v : TangentSpace (𝓡 n) x), |
| 169 | (∑ i, g0.inner x (F i x) v • F i x) = v) |
| 170 | (w : List (Fin n ⊕ iota)) {f : M → ℝ} |
| 171 | (hf : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ f) (x : M) : |
| 172 | directionalTerms F (combinedWordTerms F C g0 w) f x = |
| 173 | directionalWord (combinedFields F C) w f x := |
| 174 | wordTerms_eq F (combinedCoefficient F C g0) (combinedCoefficient_contMDiff F C g0) |
| 175 | (combinedFields F C) (combinedFields_eq_sum F C g0 hF) w hf x |
| 176 | |
| 177 | theorem matrix_word_eq_native (g0 g : RiemannianMetric n M) |
| 178 | (hF : ∀ (x : M) (v : TangentSpace (𝓡 n) x), |
| 179 | (∑ i, g0.inner x (F i x) v • F i x) = v) |
| 180 | (w : List (Fin n ⊕ iota)) (i j : Fin n) (x : M) : |
| 181 | directionalWord (combinedFields F C) w (fun y => C.matrix g y i j) x = |
| 182 | directionalTerms F (combinedWordTerms F C g0 w) (fun y => C.matrix g y i j) x := |
| 183 | (combinedWordTerms_eq F C g0 hF w (C.matrix_entry_contMDiff g i j) x).symm |
| 184 | |
| 185 | end Compatible |
| 186 | |
| 187 | section ChartOutput |
| 188 | |
| 189 | variable [T2Space M] [CompactSpace M] {p : M} {K : Set M} (C : Cutoffs (n := n) p K) |
| 190 | |
| 191 | /-- Fixed, globally smooth chart coordinates for a native field on the localization set. -/ |
| 192 | def dualCoefficient (g0 : RiemannianMetric n M) (V : SmoothField (n := n) (M := M)) |
| 193 | (i : Fin n) (x : M) : ℝ := |
| 194 | ∑ k, (C.matrix g0 x)⁻¹ i k * g0.inner x (C.field k x) (V x) |
| 195 | |
| 196 | theorem dualCoefficient_contMDiff (g0 : RiemannianMetric n M) |
| 197 | (V : SmoothField (n := n) (M := M)) (i : Fin n) : |
| 198 | ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ (dualCoefficient C g0 V i) := by |
| 199 | apply contMDiff_finsetSum |
| 200 | intro k _ |
| 201 | exact (inverse_entry_contMDiff (C.matrix g0) (C.matrix_contMDiff g0) |
| 202 | (fun x => ((C.matrix g0 x).isUnit_iff_isUnit_det.mp |
| 203 | (C.matrix_posDef g0 x).isUnit).ne_zero) i k).mul |
| 204 | (contMDiff_pairing (metricTensor g0) (C.field k) V) |
| 205 | |
| 206 | theorem dualCoefficient_eq_repr (g0 : RiemannianMetric n M) |
| 207 | (V : SmoothField (n := n) (M := M)) {x : M} (hx : x ∈ K) (i : Fin n) : |
| 208 | dualCoefficient C g0 V i x = |
| 209 | (chartFrameBasis p x (C.eta_support (C.mem_eta_support hx))).repr (V x) i := by |
| 210 | let b := chartFrameBasis p x (C.eta_support (C.mem_eta_support hx)) |
| 211 | have hfield (k : Fin n) : C.field k x = b k := by |
| 212 | rw [(C.field_eventuallyEq (C.zeta_one x (C.mem_eta_support hx)) k).eq_of_nhds] |
| 213 | exact chartFrame_eq_basis p x _ k |
| 214 | have hmatrix (k j : Fin n) : C.matrix g0 x k j = g0.inner x (b k) (b j) := by |
| 215 | rw [(C.matrix_eventuallyEq g0 (C.eta_one x hx)).eq_of_nhds] |
| 216 | change g0.inner x (chartFrame p k x) (chartFrame p j x) = _ |
| 217 | rw [chartFrame_eq_basis p x _ k, chartFrame_eq_basis p x _ j] |
| 218 | have hpair : (fun k => g0.inner x (C.field k x) (V x)) = |
| 219 | (C.matrix g0 x).mulVec (fun j => b.repr (V x) j) := by |
| 220 | funext k |
| 221 | change g0.inner x (C.field k x) (V x) = ∑ j, C.matrix g0 x k j * b.repr (V x) j |
| 222 | calc |
| 223 | _ = g0.inner x (b k) (∑ j, b.repr (V x) j • b j) := by |
| 224 | rw [b.sum_repr, hfield] |
| 225 | _ = _ := by |
| 226 | simp only [map_sum, map_smul, smul_eq_mul, hmatrix] |
| 227 | apply Finset.sum_congr rfl |
| 228 | intro j _ |
| 229 | exact mul_comm _ _ |
| 230 | have hinv := (C.matrix g0 x).nonsing_inv_mul |
| 231 | ((C.matrix g0 x).isUnit_iff_isUnit_det.mp (C.matrix_posDef g0 x).isUnit) |
| 232 | change ((C.matrix g0 x)⁻¹.mulVec (fun k => g0.inner x (C.field k x) (V x))) i = _ |
| 233 | rw [hpair, Matrix.mulVec_mulVec, hinv, Matrix.one_mulVec] |
| 234 | |
| 235 | theorem sum_dualCoefficient_field (g0 : RiemannianMetric n M) |
| 236 | (V : SmoothField (n := n) (M := M)) {x : M} (hx : x ∈ K) : |
| 237 | (∑ i, dualCoefficient C g0 V i x • C.field i x) = V x := by |
| 238 | let b := chartFrameBasis p x (C.eta_support (C.mem_eta_support hx)) |
| 239 | calc |
| 240 | _ = ∑ i, b.repr (V x) i • b i := by |
| 241 | apply Finset.sum_congr rfl |
| 242 | intro i _ |
| 243 | rw [dualCoefficient_eq_repr C g0 V hx i, |
| 244 | (C.field_eventuallyEq (C.zeta_one x (C.mem_eta_support hx)) i).eq_of_nhds, |
| 245 | chartFrame_eq_basis p x _ i] |
| 246 | _ = _ := b.sum_repr (V x) |
| 247 | |
| 248 | def outputCoefficient (g0 : RiemannianMetric n M) (chi : M → ℝ) |
| 249 | (V W : SmoothField (n := n) (M := M)) (i j : Fin n) (x : M) : ℝ := |
| 250 | chi x * dualCoefficient C g0 V i x * dualCoefficient C g0 W j x |
| 251 | |
| 252 | theorem outputCoefficient_contMDiff (g0 : RiemannianMetric n M) {chi : M → ℝ} |
| 253 | (hchi : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ chi) |
| 254 | (V W : SmoothField (n := n) (M := M)) (i j : Fin n) : |
| 255 | ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ (outputCoefficient C g0 chi V W i j) := |
| 256 | (hchi.mul (dualCoefficient_contMDiff C g0 V i)).mul |
| 257 | (dualCoefficient_contMDiff C g0 W j) |
| 258 | |
| 259 | /-- A supported chart contribution reconstructs the actual native bilinear evaluation. -/ |
| 260 | theorem weighted_bilinear_eq (g0 : RiemannianMetric n M) (chi : M → ℝ) |
| 261 | (hchi : Function.support chi ⊆ K) (V W : SmoothField (n := n) (M := M)) |
| 262 | (B : (x : M) → TangentSpace (𝓡 n) x →L[ℝ] TangentSpace (𝓡 n) x →L[ℝ] ℝ) |
| 263 | (x : M) : |
| 264 | chi x * B x (V x) (W x) = |
| 265 | ∑ i, ∑ j, outputCoefficient C g0 chi V W i j x * |
| 266 | B x (C.field i x) (C.field j x) := by |
| 267 | by_cases hx : x ∈ K |
| 268 | · conv_lhs => |
| 269 | arg 2 |
| 270 | rw [← sum_dualCoefficient_field C g0 V hx, ← sum_dualCoefficient_field C g0 W hx] |
| 271 | simp only [map_sum, map_smul, ContinuousLinearMap.sum_apply, |
| 272 | ContinuousLinearMap.smul_apply, smul_eq_mul, Finset.mul_sum, outputCoefficient] |
| 273 | rw [Finset.sum_comm] |
| 274 | apply Finset.sum_congr rfl |
| 275 | intro i _ |
| 276 | apply Finset.sum_congr rfl |
| 277 | intro j _ |
| 278 | ring |
| 279 | · have hz : chi x = 0 := by |
| 280 | by_contra h |
| 281 | exact hx (hchi h) |
| 282 | simp only [hz, outputCoefficient, zero_mul, Finset.sum_const_zero] |
| 283 | |
| 284 | theorem weighted_source_eq (g0 : RiemannianMetric n M) (chi : M → ℝ) |
| 285 | (hchi : Function.support chi ⊆ K) (V W : SmoothField (n := n) (M := M)) |
| 286 | (B : (x : M) → TangentSpace (𝓡 n) x →L[ℝ] TangentSpace (𝓡 n) x →L[ℝ] ℝ) |
| 287 | (S : M → Matrix (Fin n) (Fin n) ℝ) |
| 288 | (hS : ∀ x ∈ K, ∀ i j, S x i j = B x (C.field i x) (C.field j x)) (x : M) : |
| 289 | chi x * B x (V x) (W x) = |
| 290 | ∑ i, ∑ j, outputCoefficient C g0 chi V W i j x * S x i j := by |
| 291 | rw [weighted_bilinear_eq C g0 chi hchi V W B x] |
| 292 | by_cases hx : x ∈ K |
| 293 | · simp only [hS x hx] |
| 294 | · have hz : chi x = 0 := by |
| 295 | by_contra h |
| 296 | exact hx (hchi h) |
| 297 | simp only [outputCoefficient, hz, zero_mul, Finset.sum_const_zero] |
| 298 | |
| 299 | /-- The finite compatible chart source reconstructs the actual intrinsic DeTurck tensor. -/ |
| 300 | theorem weighted_ricciDeTurck_eq (g0 g : RiemannianMetric n M) |
| 301 | (D : LeviCivitaData g) (B : LeviCivitaData g0) (chi : M → ℝ) |
| 302 | (hchi : Function.support chi ⊆ K) (V W : SmoothField (n := n) (M := M)) (x : M) : |
| 303 | chi x * smoothRicciDeTurckTensor D B x (V x) (W x) = |
| 304 | ∑ i, ∑ j, outputCoefficient C g0 chi V W i j x * |
| 305 | ricciDeTurckSource (C.jet g0 x) (C.jet g x) i j := by |
| 306 | apply weighted_source_eq C g0 chi hchi V W (smoothRicciDeTurckTensor D B) |
| 307 | intro y hy i j |
| 308 | rw [C.jet_eq_on g0 hy, C.jet_eq_on g hy, |
| 309 | (C.field_eventuallyEq (C.zeta_one y (C.mem_eta_support hy)) i).eq_of_nhds, |
| 310 | (C.field_eventuallyEq (C.zeta_one y (C.mem_eta_support hy)) j).eq_of_nhds, |
| 311 | smoothRicciDeTurckTensor_apply] |
| 312 | exact ricciDeTurckSource_frameMetricJet_eq_intrinsic D B p |
| 313 | (C.eta_support (C.mem_eta_support hy)) i j |
| 314 | |
| 315 | /-- A finite chart partition gives a global source identity on the native tensor types. -/ |
| 316 | theorem ricciDeTurck_eq_sum_chartSources {A : Type*} [Fintype A] |
| 317 | (centers : A → M) (sets : A → Set M) (cutoffs : ∀ a, Cutoffs (n := n) (centers a) (sets a)) |
| 318 | (chi : A → M → ℝ) (hchi : ∀ a, Function.support (chi a) ⊆ sets a) |
| 319 | (hsum : ∀ x, ∑ a, chi a x = 1) (g0 g : RiemannianMetric n M) |
| 320 | (D : LeviCivitaData g) (B : LeviCivitaData g0) |
| 321 | (V W : SmoothField (n := n) (M := M)) (x : M) : |
| 322 | smoothRicciDeTurckTensor D B x (V x) (W x) = |
| 323 | ∑ a, ∑ i, ∑ j, outputCoefficient (cutoffs a) g0 (chi a) V W i j x * |
| 324 | ricciDeTurckSource ((cutoffs a).jet g0 x) ((cutoffs a).jet g x) i j := by |
| 325 | calc |
| 326 | _ = ∑ a, chi a x * smoothRicciDeTurckTensor D B x (V x) (W x) := by |
| 327 | rw [← Finset.sum_mul, hsum, one_mul] |
| 328 | _ = _ := Finset.sum_congr rfl (fun a _ => |
| 329 | weighted_ricciDeTurck_eq (cutoffs a) g0 g D B (chi a) (hchi a) V W x) |
| 330 | |
| 331 | end ChartOutput |
| 332 | |
| 333 | section FiniteCover |
| 334 | |
| 335 | variable [T2Space M] [CompactSpace M] |
| 336 | |
| 337 | structure CompatibleChartCover where |
| 338 | centers : Finset M |
| 339 | partition : SmoothPartitionOfUnity centers (𝓡 n) M Set.univ |
| 340 | cutoffs : ∀ a : centers, Cutoffs (n := n) a.val (tsupport (partition a)) |
| 341 | |
| 342 | /-- All chart-local forcing inputs are supplied by one finite compatible cover. -/ |
| 343 | theorem exists_compatibleChartCover : Nonempty (CompatibleChartCover (n := n) (M := M)) := by |
| 344 | classical |
| 345 | let U : M → Set M := fun p => (chartAt (EuclideanSpace ℝ (Fin n)) p).source |
| 346 | have hcover : Set.univ ⊆ ⋃ p : M, U p := by |
| 347 | intro x _ |
| 348 | exact Set.mem_iUnion.mpr ⟨x, mem_chart_source _ x⟩ |
| 349 | obtain ⟨s, hs⟩ := isCompact_univ.elim_finite_subcover U |
| 350 | (fun p => (chartAt (EuclideanSpace ℝ (Fin n)) p).open_source) hcover |
| 351 | have hscover : Set.univ ⊆ ⋃ a : s, U a.val := by |
| 352 | intro x hx |
| 353 | have hxs := hs hx |
| 354 | simp only [Set.mem_iUnion] at hxs |
| 355 | obtain ⟨p, hp, hxp⟩ := hxs |
| 356 | exact Set.mem_iUnion.mpr ⟨⟨p, hp⟩, hxp⟩ |
| 357 | obtain ⟨rho, hrho⟩ := SmoothPartitionOfUnity.exists_isSubordinate (𝓡 n) |
| 358 | isClosed_univ (fun a : s => U a.val) |
| 359 | (fun a => (chartAt (EuclideanSpace ℝ (Fin n)) a.val).open_source) hscover |
| 360 | exact ⟨{ |
| 361 | centers := s |
| 362 | partition := rho |
| 363 | cutoffs := fun a => Classical.choice |
| 364 | (exists_cutoffs a.val (isClosed_tsupport (rho a)).isCompact (hrho a)) }⟩ |
| 365 | |
| 366 | namespace CompatibleChartCover |
| 367 | |
| 368 | variable (A : CompatibleChartCover (n := n) (M := M)) |
| 369 | |
| 370 | theorem weight_sum (x : M) : (∑ a : A.centers, A.partition a x) = 1 := by |
| 371 | simpa only [finsum_eq_sum_of_fintype] using A.partition.sum_eq_one (Set.mem_univ x) |
| 372 | |
| 373 | theorem source_eq (g0 g : RiemannianMetric n M) (D : LeviCivitaData g) |
| 374 | (B : LeviCivitaData g0) (V W : SmoothField (n := n) (M := M)) (x : M) : |
| 375 | smoothRicciDeTurckTensor D B x (V x) (W x) = |
| 376 | ∑ a : A.centers, ∑ i, ∑ j, |
| 377 | outputCoefficient (A.cutoffs a) g0 (A.partition a) V W i j x * |
| 378 | ricciDeTurckSource ((A.cutoffs a).jet g0 x) ((A.cutoffs a).jet g x) i j := |
| 379 | ricciDeTurck_eq_sum_chartSources (fun a : A.centers => a.val) |
| 380 | (fun a => tsupport (A.partition a)) A.cutoffs (fun a => A.partition a) |
| 381 | (fun a => subset_tsupport (A.partition a)) A.weight_sum g0 g D B V W x |
| 382 | |
| 383 | end CompatibleChartCover |
| 384 | |
| 385 | end FiniteCover |
| 386 | |
| 387 | section CompletedTuples |
| 388 | |
| 389 | open MeasureTheory Filter |
| 390 | |
| 391 | variable [T2Space M] [CompactSpace M] [MeasurableSpace M] [BorelSpace M] |
| 392 | (μ : Measure M) [IsFiniteMeasure μ] |
| 393 | |
| 394 | abbrev WordIndex (iota : Type*) (k : ℕ) := Σ l : Fin (k + 1), Fin l.val → iota |
| 395 | |
| 396 | def wordIndex (w : List iota) {k : ℕ} (hw : w.length ≤ k) : WordIndex iota k := |
| 397 | ⟨⟨w.length, by omega⟩, w.get⟩ |
| 398 | |
| 399 | theorem wordIndex_word (w : List iota) {k : ℕ} (hw : w.length ≤ k) : |
| 400 | List.ofFn (wordIndex w hw).2 = w := by |
| 401 | exact List.ofFn_get w |
| 402 | |
| 403 | def coefficientL2 (c : M → ℝ) (hc : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ c) : |
| 404 | Lp ℝ 2 μ →L[ℝ] Lp ℝ 2 μ := |
| 405 | (ContinuousLinearMap.mul ℝ ℝ).holderL μ (⊤ : ENNReal) 2 2 |
| 406 | (ContinuousMap.toLp (⊤ : ENNReal) μ ℝ ⟨c, hc.continuous⟩) |
| 407 | |
| 408 | theorem coefficientL2_coe (c : M → ℝ) (hc : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ c) |
| 409 | (q : Lp ℝ 2 μ) : coefficientL2 μ c hc q =ᵐ[μ] fun x => c x * q x := by |
| 410 | filter_upwards [(ContinuousLinearMap.mul ℝ ℝ).coeFn_holder (r := (2 : ENNReal)) |
| 411 | (ContinuousMap.toLp (⊤ : ENNReal) μ ℝ ⟨c, hc.continuous⟩) q, |
| 412 | ContinuousMap.coeFn_toLp (p := (⊤ : ENNReal)) (μ := μ) (𝕜 := ℝ) |
| 413 | (⟨c, hc.continuous⟩ : C(M, ℝ))] with x hx hc' |
| 414 | change coefficientL2 μ c hc q x = |
| 415 | (ContinuousMap.toLp (⊤ : ENNReal) μ ℝ ⟨c, hc.continuous⟩) x * q x at hx |
| 416 | rw [hc'] at hx |
| 417 | exact hx |
| 418 | |
| 419 | def termsL2 {k : ℕ} : |
| 420 | (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) → |
| 421 | (∀ t ∈ terms, t.word.length ≤ k) → |
| 422 | (WordIndex iota k → Lp ℝ 2 μ) →L[ℝ] Lp ℝ 2 μ |
| 423 | | [], _ => 0 |
| 424 | | t :: terms, h => |
| 425 | (coefficientL2 μ t.coefficient t.smooth).comp |
| 426 | (ContinuousLinearMap.proj (wordIndex t.word (h t List.mem_cons_self))) + |
| 427 | termsL2 terms (fun s hs => h s (List.mem_cons_of_mem t hs)) |
| 428 | |
| 429 | /-- The completed tuple map agrees with every actual compatible derivative tuple. -/ |
| 430 | theorem termsL2_ae_eq {k : ℕ} |
| 431 | (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) |
| 432 | (h : ∀ t ∈ terms, t.word.length ≤ k) |
| 433 | (Q : WordIndex iota k → Lp ℝ 2 μ) (f : M → ℝ) |
| 434 | (hQ : ∀ w (hw : w.length ≤ k), |
| 435 | Q (wordIndex w hw) =ᵐ[μ] directionalWord F w f) : |
| 436 | termsL2 μ terms h Q =ᵐ[μ] directionalTerms F terms f := by |
| 437 | induction terms with |
| 438 | | nil => |
| 439 | change (0 : Lp ℝ 2 μ) =ᵐ[μ] (0 : M → ℝ) |
| 440 | exact Lp.coeFn_zero ℝ 2 μ |
| 441 | | cons t terms ih => |
| 442 | let q := Q (wordIndex t.word (h t List.mem_cons_self)) |
| 443 | let rest := termsL2 μ terms (fun s hs => h s (List.mem_cons_of_mem t hs)) Q |
| 444 | have hrest : rest =ᵐ[μ] directionalTerms F terms f := ih _ |
| 445 | filter_upwards [coefficientL2_coe μ t.coefficient t.smooth q, |
| 446 | hQ t.word (h t List.mem_cons_self), hrest, |
| 447 | Lp.coeFn_add (coefficientL2 μ t.coefficient t.smooth q) rest] |
| 448 | with x hx hqx hrx hadd |
| 449 | change (coefficientL2 μ t.coefficient t.smooth q + rest) x = _ |
| 450 | rw [hadd, Pi.add_apply, hx, hqx, hrx] |
| 451 | rfl |
| 452 | |
| 453 | variable {p : M} {K : Set M} (C : Cutoffs (n := n) p K) |
| 454 | |
| 455 | def combinedWordL2 (g0 : RiemannianMetric n M) (w : List (Fin n ⊕ iota)) : |
| 456 | (WordIndex iota w.length → Lp ℝ 2 μ) →L[ℝ] Lp ℝ 2 μ := |
| 457 | termsL2 μ (combinedWordTerms F C g0 w) (combinedWordTerms_order F C g0 w) |
| 458 | |
| 459 | theorem combinedWordL2_ae_eq (g0 : RiemannianMetric n M) |
| 460 | (hF : ∀ (x : M) (v : TangentSpace (𝓡 n) x), |
| 461 | (∑ i, g0.inner x (F i x) v • F i x) = v) |
| 462 | (w : List (Fin n ⊕ iota)) (Q : WordIndex iota w.length → Lp ℝ 2 μ) |
| 463 | (f : M → ℝ) (hf : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ f) |
| 464 | (hQ : ∀ v (hv : v.length ≤ w.length), |
| 465 | Q (wordIndex v hv) =ᵐ[μ] directionalWord F v f) : |
| 466 | combinedWordL2 F μ C g0 w Q =ᵐ[μ] directionalWord (combinedFields F C) w f := by |
| 467 | have h := termsL2_ae_eq F μ (combinedWordTerms F C g0 w) |
| 468 | (combinedWordTerms_order F C g0 w) Q f hQ |
| 469 | exact h.mono (fun x hx => hx.trans (combinedWordTerms_eq F C g0 hF w hf x)) |
| 470 | |
| 471 | def termsContinuous {k : ℕ} : |
| 472 | (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) → |
| 473 | (∀ t ∈ terms, t.word.length ≤ k) → |
| 474 | (WordIndex iota k → C(M, ℝ)) →L[ℝ] C(M, ℝ) |
| 475 | | [], _ => 0 |
| 476 | | t :: terms, h => |
| 477 | (ContinuousLinearMap.mul ℝ C(M, ℝ) ⟨t.coefficient, t.smooth.continuous⟩).comp |
| 478 | (ContinuousLinearMap.proj (wordIndex t.word (h t List.mem_cons_self))) + |
| 479 | termsContinuous terms (fun s hs => h s (List.mem_cons_of_mem t hs)) |
| 480 | |
| 481 | theorem termsContinuous_eq {k : ℕ} |
| 482 | (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) |
| 483 | (h : ∀ t ∈ terms, t.word.length ≤ k) |
| 484 | (Q : WordIndex iota k → C(M, ℝ)) (f : M → ℝ) |
| 485 | (hQ : ∀ w (hw : w.length ≤ k) x, |
| 486 | Q (wordIndex w hw) x = directionalWord F w f x) (x : M) : |
| 487 | termsContinuous terms h Q x = directionalTerms F terms f x := by |
| 488 | induction terms with |
| 489 | | nil => rfl |
| 490 | | cons t terms ih => |
| 491 | change t.coefficient x * Q (wordIndex t.word (h t List.mem_cons_self)) x + |
| 492 | termsContinuous terms (fun s hs => h s (List.mem_cons_of_mem t hs)) Q x = |
| 493 | t.coefficient x * directionalWord F t.word f x + directionalTerms F terms f x |
| 494 | rw [hQ, ih] |
| 495 | |
| 496 | variable {A : Type*} [Fintype A] |
| 497 | |
| 498 | /-- Fixed packing into the finite high fibre used by the DeTurck source. -/ |
| 499 | def packL2 : (A → Lp ℝ 2 μ) →L[ℝ] Lp (A → ℝ) 2 μ := by |
| 500 | classical |
| 501 | exact ∑ a : A, ((ContinuousLinearMap.single ℝ (fun _ : A => ℝ) a).compLpL 2 μ).comp |
| 502 | (ContinuousLinearMap.proj a) |
| 503 | |
| 504 | theorem packL2_coe (Q : A → Lp ℝ 2 μ) : |
| 505 | packL2 μ Q =ᵐ[μ] fun x a => Q a x := by |
| 506 | classical |
| 507 | filter_upwards [Lp.coeFn_fun_finsetSum Finset.univ |
| 508 | (fun a : A => (ContinuousLinearMap.single ℝ (fun _ : A => ℝ) a).compLpL 2 μ (Q a)), |
| 509 | ae_all_iff.mpr (fun a : A => |
| 510 | (ContinuousLinearMap.single ℝ (fun _ : A => ℝ) a).coeFn_compLpL (Q a))] |
| 511 | with x hsum hsingle |
| 512 | simp only [packL2, ContinuousLinearMap.sum_apply, ContinuousLinearMap.comp_apply, |
| 513 | ContinuousLinearMap.proj_apply] |
| 514 | rw [hsum] |
| 515 | ext a |
| 516 | simp [hsingle, ContinuousLinearMap.single_apply] |
| 517 | |
| 518 | theorem packL2_ae_eq (Q : A → Lp ℝ 2 μ) (f : A → M → ℝ) |
| 519 | (hQ : ∀ a, Q a =ᵐ[μ] f a) : |
| 520 | packL2 μ Q =ᵐ[μ] fun x a => f a x := by |
| 521 | filter_upwards [packL2_coe μ Q, ae_all_iff.mpr hQ] with x hx h |
| 522 | exact hx.trans (funext h) |
| 523 | |
| 524 | /-- The continuous low fibre uses the same finite coordinate insertion. -/ |
| 525 | def packContinuous : (A → C(M, ℝ)) →L[ℝ] C(M, A → ℝ) := by |
| 526 | classical |
| 527 | exact ∑ a : A, |
| 528 | ((ContinuousLinearMap.single ℝ (fun _ : A => ℝ) a).compLeftContinuous ℝ M).comp |
| 529 | (ContinuousLinearMap.proj a) |
| 530 | |
| 531 | theorem packContinuous_apply (Q : A → C(M, ℝ)) (x : M) (a : A) : |
| 532 | packContinuous Q x a = Q a x := by |
| 533 | classical |
| 534 | simp [packContinuous, ContinuousLinearMap.single_apply] |
| 535 | |
| 536 | end CompletedTuples |
| 537 | |
| 538 | end PoincareMT.DeTurckJetCoordinatesNative |
| 539 | |
| 540 | end |