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/DeTurckCompletedOutputNative.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Geometry.RicciFlow.Local.DeTurck.Jets.DeTurckJetCoordinates |
| 6 | import PoincareLib.Analysis.Parabolic.Quasilinear.Tensor.SymmetricTensorHilbert |
| 7 | import PoincareLib.Analysis.Parabolic.Quasilinear.Frames.ParsevalTensorL2 |
| 8 | import PoincareLib.Analysis.Parabolic.Quasilinear.Operators.LpFiniteCoordinates |
| 9 | |
| 10 | /-! |
| 11 | # The fixed even-order output of the native DeTurck residual |
| 12 | |
| 13 | Ordered native derivatives expand every power of one plus the fixed tensor |
| 14 | generator. The resulting finite coefficient map sends arbitrary L2 tuples |
| 15 | to spectral coordinates, and agrees with the actual smooth tensor output. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option maxHeartbeats 1600000 |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | noncomputable section |
| 23 | |
| 24 | open MeasureTheory Set Filter |
| 25 | open scoped Manifold ContDiff Bundle BigOperators |
| 26 | |
| 27 | namespace PoincareMT.DeTurckCompletedOutputNative |
| 28 | |
| 29 | open TensorProbeNative ParsevalTensorNative ChartMeasureNative |
| 30 | TensorHilbertNative DeTurckJetCoordinatesNative LpFiniteCoordinatesNative |
| 31 | |
| 32 | variable {n : ℕ} {M iota : Type*} [TopologicalSpace M] [T2Space M] |
| 33 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 34 | [CompactSpace M] [Fintype iota] |
| 35 | |
| 36 | def multiplyTerms (c : M → ℝ) (hc : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ c) |
| 37 | (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) : |
| 38 | List (DirectionalTerm (n := n) (M := M) (iota := iota)) := |
| 39 | terms.map (fun t => ⟨fun x => c x * t.coefficient x, |
| 40 | by exact (hc.mul t.smooth).congr (fun x => rfl), t.word⟩) |
| 41 | |
| 42 | theorem directionalTerms_multiply |
| 43 | (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 (multiplyTerms c hc terms) f x = c x * directionalTerms F terms f x := by |
| 48 | induction terms with |
| 49 | | nil => simp only [multiplyTerms, List.map_nil, directionalTerms_nil, mul_zero] |
| 50 | | cons t terms ih => |
| 51 | simp only [multiplyTerms, List.map_cons, directionalTerms_cons] at ih ⊢ |
| 52 | rw [ih] |
| 53 | ring |
| 54 | |
| 55 | theorem multiplyTerms_order |
| 56 | (c : M → ℝ) (hc : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ c) |
| 57 | (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) |
| 58 | {k : ℕ} (h : ∀ t ∈ terms, t.word.length ≤ k) : |
| 59 | ∀ t ∈ multiplyTerms c hc terms, t.word.length ≤ k := by |
| 60 | intro t ht |
| 61 | obtain ⟨q, hq, rfl⟩ := List.mem_map.mp ht |
| 62 | exact h q hq |
| 63 | |
| 64 | def sumTerms {α : Type*} [Fintype α] |
| 65 | (terms : α → List (DirectionalTerm (n := n) (M := M) (iota := iota))) : |
| 66 | List (DirectionalTerm (n := n) (M := M) (iota := iota)) := by |
| 67 | classical |
| 68 | exact Finset.univ.toList.flatMap terms |
| 69 | |
| 70 | private theorem directionalTerms_flatMap {α : Type*} |
| 71 | (F : iota → SmoothField (n := n) (M := M)) (s : List α) |
| 72 | (terms : α → List (DirectionalTerm (n := n) (M := M) (iota := iota))) |
| 73 | (f : M → ℝ) (x : M) : |
| 74 | directionalTerms F (s.flatMap terms) f x = |
| 75 | (s.map (fun a => directionalTerms F (terms a) f x)).sum := by |
| 76 | induction s with |
| 77 | | nil => rfl |
| 78 | | cons a s ih => |
| 79 | simp only [List.flatMap_cons, directionalTerms_append, List.map_cons, List.sum_cons, ih] |
| 80 | |
| 81 | theorem directionalTerms_sum |
| 82 | {α : Type*} [Fintype α] (F : iota → SmoothField (n := n) (M := M)) |
| 83 | (terms : α → List (DirectionalTerm (n := n) (M := M) (iota := iota))) |
| 84 | (f : M → ℝ) (x : M) : |
| 85 | directionalTerms F (sumTerms terms) f x = ∑ a, directionalTerms F (terms a) f x := by |
| 86 | classical |
| 87 | rw [sumTerms, directionalTerms_flatMap, Finset.sum_map_toList] |
| 88 | |
| 89 | theorem sumTerms_order {α : Type*} [Fintype α] |
| 90 | (terms : α → List (DirectionalTerm (n := n) (M := M) (iota := iota))) |
| 91 | {k : ℕ} (h : ∀ a t, t ∈ terms a → t.word.length ≤ k) : |
| 92 | ∀ t ∈ sumTerms terms, t.word.length ≤ k := by |
| 93 | classical |
| 94 | intro t ht |
| 95 | obtain ⟨a, _, ha⟩ := List.mem_flatMap.mp ht |
| 96 | exact h a t ha |
| 97 | |
| 98 | /-- Both applications of a field differentiate all previously formed coefficients. -/ |
| 99 | def laplacianTerms (F : iota → SmoothField (n := n) (M := M)) |
| 100 | (charts : FiniteChartData (n := n) (M := M)) |
| 101 | (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) : |
| 102 | List (DirectionalTerm (n := n) (M := M) (iota := iota)) := |
| 103 | sumTerms (fun i : iota => |
| 104 | multiplyTerms (fun _ : M => (-1 : ℝ)) contMDiff_const |
| 105 | (differentiateDirectionalTerms F i (differentiateDirectionalTerms F i terms)) ++ |
| 106 | multiplyTerms (fun x => -charts.fieldDivergence (F i) x) |
| 107 | (charts.fieldDivergence_contMDiff (F i)).neg |
| 108 | (differentiateDirectionalTerms F i terms)) |
| 109 | |
| 110 | theorem directionalTerms_laplacian |
| 111 | (F : iota → SmoothField (n := n) (M := M)) |
| 112 | (charts : FiniteChartData (n := n) (M := M)) |
| 113 | (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) |
| 114 | {f : M → ℝ} (hf : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ f) (x : M) : |
| 115 | directionalTerms F (laplacianTerms F charts terms) f x = |
| 116 | scalarLaplacian F charts (directionalTerms F terms f) x := by |
| 117 | classical |
| 118 | rw [laplacianTerms, directionalTerms_sum] |
| 119 | unfold scalarLaplacian |
| 120 | apply Finset.sum_congr rfl |
| 121 | intro i _ |
| 122 | have hfirst : directionalTerms F (differentiateDirectionalTerms F i terms) f = |
| 123 | scalarDirectional (F i) (directionalTerms F terms f) := |
| 124 | funext (directionalTerms_differentiate F i terms hf) |
| 125 | have hsecond := directionalTerms_differentiate F i |
| 126 | (differentiateDirectionalTerms F i terms) hf x |
| 127 | rw [hfirst] at hsecond |
| 128 | rw [directionalTerms_append, directionalTerms_multiply, |
| 129 | directionalTerms_multiply, hsecond, hfirst] |
| 130 | simp only [FiniteChartData.fieldAdjoint] |
| 131 | ring |
| 132 | |
| 133 | theorem laplacianTerms_order |
| 134 | (F : iota → SmoothField (n := n) (M := M)) |
| 135 | (charts : FiniteChartData (n := n) (M := M)) |
| 136 | (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) |
| 137 | {k : ℕ} (h : ∀ t ∈ terms, t.word.length ≤ k) : |
| 138 | ∀ t ∈ laplacianTerms F charts terms, t.word.length ≤ k + 2 := by |
| 139 | apply sumTerms_order |
| 140 | intro i t ht |
| 141 | have hfirst := differentiateDirectionalTerms_order F i terms h |
| 142 | have hsecond := differentiateDirectionalTerms_order F i |
| 143 | (differentiateDirectionalTerms F i terms) hfirst |
| 144 | rcases List.mem_append.mp ht with ht | ht |
| 145 | · have hbound := multiplyTerms_order (fun _ : M => (-1 : ℝ)) contMDiff_const |
| 146 | (differentiateDirectionalTerms F i (differentiateDirectionalTerms F i terms)) |
| 147 | hsecond t ht |
| 148 | omega |
| 149 | · have hbound := multiplyTerms_order (fun x => -charts.fieldDivergence (F i) x) |
| 150 | (charts.fieldDivergence_contMDiff (F i)).neg |
| 151 | (differentiateDirectionalTerms F i terms) hfirst t ht |
| 152 | omega |
| 153 | |
| 154 | variable {g0 : RiemannianMetric n M} (d : TensorHilbertNative.Data g0) |
| 155 | [MeasurableSpace M] [BorelSpace M] |
| 156 | |
| 157 | /-- Fixed coefficients for the actual power `(1 + generator)^r`. -/ |
| 158 | def shiftedPowerTerms : ℕ → d.ProbeIndex → d.ProbeIndex → |
| 159 | List (DirectionalTerm (n := n) (M := M) (iota := Fin d.fieldCount)) |
| 160 | | 0, a, b => if a = b then [⟨fun _ => 1, contMDiff_const, []⟩] else [] |
| 161 | | r + 1, a, b => shiftedPowerTerms r a b ++ sumTerms (fun c : d.ProbeIndex => |
| 162 | multiplyTerms (fun x => projectionKernel g0 d.fields x a c) |
| 163 | (projectionKernel_contMDiff d.fields g0 a c) |
| 164 | (laplacianTerms d.fields d.charts (shiftedPowerTerms r c b))) |
| 165 | |
| 166 | theorem shiftedPowerTerms_order (r : ℕ) (a b : d.ProbeIndex) : |
| 167 | ∀ t ∈ shiftedPowerTerms d r a b, t.word.length ≤ 2 * r := by |
| 168 | induction r generalizing a b with |
| 169 | | zero => |
| 170 | intro t ht |
| 171 | by_cases hab : a = b |
| 172 | · simp only [shiftedPowerTerms, if_pos hab, List.mem_cons, |
| 173 | List.not_mem_nil, or_false] at ht |
| 174 | subst t |
| 175 | exact Nat.zero_le _ |
| 176 | · simp only [shiftedPowerTerms, if_neg hab, List.not_mem_nil] at ht |
| 177 | | succ r ih => |
| 178 | intro t ht |
| 179 | rcases List.mem_append.mp ht with ht | ht |
| 180 | · have hbound := ih a b t ht |
| 181 | omega |
| 182 | · have hbound : t.word.length ≤ 2 * r + 2 := by |
| 183 | apply sumTerms_order _ (fun c => |
| 184 | multiplyTerms_order _ _ _ |
| 185 | (laplacianTerms_order d.fields d.charts _ (ih c b))) t ht |
| 186 | omega |
| 187 | |
| 188 | theorem scalarProbe_shiftedSmoothTensor |
| 189 | (h : SmoothTensor (n := n) (M := M)) (a : d.ProbeIndex) (x : M) : |
| 190 | scalarProbe d.fields (d.shiftedSmoothTensor h) a x = |
| 191 | scalarProbe d.fields h a x + ∑ c : d.ProbeIndex, |
| 192 | projectionKernel g0 d.fields x a c * |
| 193 | scalarLaplacian d.fields d.charts (scalarProbe d.fields h c) x := by |
| 194 | classical |
| 195 | change scalarProbe d.fields h a x + |
| 196 | probes d.fields (smoothTensorLaplacian d.fields d.charts g0 h) x a = _ |
| 197 | rw [probes_smoothTensorLaplacian, nativeProjection_eq_kernel] |
| 198 | congr 1 |
| 199 | apply Finset.sum_congr rfl |
| 200 | intro c _ |
| 201 | exact mul_comm _ _ |
| 202 | |
| 203 | /-- The recurrence identifies the complete smooth output, including projection derivatives. -/ |
| 204 | theorem scalarProbe_shiftedSmoothPower (r : ℕ) |
| 205 | (h : SmoothTensor (n := n) (M := M)) (a : d.ProbeIndex) (x : M) : |
| 206 | scalarProbe d.fields (d.shiftedSmoothPower r h) a x = |
| 207 | ∑ b : d.ProbeIndex, |
| 208 | directionalTerms d.fields (shiftedPowerTerms d r a b) (scalarProbe d.fields h b) x := by |
| 209 | classical |
| 210 | induction r generalizing a x with |
| 211 | | zero => |
| 212 | have hz (b : d.ProbeIndex) : |
| 213 | directionalTerms d.fields (shiftedPowerTerms d 0 a b) (scalarProbe d.fields h b) x = |
| 214 | if a = b then scalarProbe d.fields h b x else 0 := by |
| 215 | by_cases hab : a = b <;> |
| 216 | simp [shiftedPowerTerms, hab, directionalTerms, directionalWord] |
| 217 | simp only [TensorHilbertNative.Data.shiftedSmoothPower] |
| 218 | simp_rw [hz] |
| 219 | simp |
| 220 | | succ r ih => |
| 221 | rw [TensorHilbertNative.Data.shiftedSmoothPower, scalarProbe_shiftedSmoothTensor, ih] |
| 222 | simp only [shiftedPowerTerms, directionalTerms_append, directionalTerms_sum, |
| 223 | directionalTerms_multiply, |
| 224 | directionalTerms_laplacian d.fields d.charts _ (scalarProbe_contMDiff d.fields h _)] |
| 225 | rw [Finset.sum_add_distrib] |
| 226 | congr 1 |
| 227 | rw [Finset.sum_comm] |
| 228 | apply Finset.sum_congr rfl |
| 229 | intro c _ |
| 230 | rw [← Finset.mul_sum] |
| 231 | congr 1 |
| 232 | have heq : scalarProbe d.fields (d.shiftedSmoothPower r h) c = |
| 233 | fun y => ∑ b : d.ProbeIndex, |
| 234 | directionalTerms d.fields (shiftedPowerTerms d r c b) (scalarProbe d.fields h b) y := |
| 235 | funext (ih c) |
| 236 | rw [heq] |
| 237 | exact scalarLaplacian_finsetSum d.fields d.charts Finset.univ isOpen_univ _ |
| 238 | (fun b _ => (directionalTerms_contMDiff d.fields _ |
| 239 | (scalarProbe_contMDiff d.fields h b)).contMDiffOn) (mem_univ x) |
| 240 | |
| 241 | abbrev ProbeTuples (k : ℕ) := |
| 242 | d.ProbeIndex → WordIndex (Fin d.fieldCount) k → Lp ℝ 2 d.charts.measure |
| 243 | |
| 244 | /-- The scalar output for one probe is a finite sum of existing bounded coefficient maps. -/ |
| 245 | def powerProbeL2 (r : ℕ) (a : d.ProbeIndex) : |
| 246 | ProbeTuples d (2 * r) →L[ℝ] Lp ℝ 2 d.charts.measure := |
| 247 | ∑ b : d.ProbeIndex, |
| 248 | (termsL2 d.charts.measure (shiftedPowerTerms d r a b) |
| 249 | (shiftedPowerTerms_order d r a b)).comp (ContinuousLinearMap.proj b) |
| 250 | |
| 251 | theorem powerProbeL2_ae_eq (r : ℕ) (a : d.ProbeIndex) |
| 252 | (Q : ProbeTuples d (2 * r)) (h : SmoothTensor (n := n) (M := M)) |
| 253 | (hQ : ∀ b w (hw : w.length ≤ 2 * r), |
| 254 | Q b (wordIndex w hw) =ᵐ[d.charts.measure] |
| 255 | directionalWord d.fields w (scalarProbe d.fields h b)) : |
| 256 | powerProbeL2 d r a Q =ᵐ[d.charts.measure] |
| 257 | scalarProbe d.fields (d.shiftedSmoothPower r h) a := by |
| 258 | let q (b : d.ProbeIndex) : Lp ℝ 2 d.charts.measure := |
| 259 | termsL2 d.charts.measure (shiftedPowerTerms d r a b) |
| 260 | (shiftedPowerTerms_order d r a b) (Q b) |
| 261 | have hq (b : d.ProbeIndex) : q b =ᵐ[d.charts.measure] |
| 262 | directionalTerms d.fields (shiftedPowerTerms d r a b) (scalarProbe d.fields h b) := |
| 263 | termsL2_ae_eq d.fields d.charts.measure (shiftedPowerTerms d r a b) |
| 264 | (shiftedPowerTerms_order d r a b) (Q b) (scalarProbe d.fields h b) (hQ b) |
| 265 | filter_upwards [Lp.coeFn_fun_finsetSum Finset.univ q, ae_all_iff.mpr hq] |
| 266 | with x hsum hterms |
| 267 | simp only [powerProbeL2, ContinuousLinearMap.sum_apply, |
| 268 | ContinuousLinearMap.comp_apply, ContinuousLinearMap.proj_apply] |
| 269 | change (∑ b : d.ProbeIndex, q b) x = _ |
| 270 | rw [hsum] |
| 271 | simp only [hterms] |
| 272 | exact (scalarProbe_shiftedSmoothPower d r h a x).symm |
| 273 | |
| 274 | /-- The actual ambient tensor L2 output uses the fixed finite-coordinate insertion. -/ |
| 275 | def powerTensorL2 (r : ℕ) : |
| 276 | ProbeTuples d (2 * r) →L[ℝ] Lp (Coefficients (Fin d.fieldCount)) 2 d.charts.measure := |
| 277 | ∑ a : d.ProbeIndex, (insertionLp d.charts.measure a).comp (powerProbeL2 d r a) |
| 278 | |
| 279 | theorem powerTensorL2_eq (r : ℕ) (Q : ProbeTuples d (2 * r)) |
| 280 | (h : SmoothTensor (n := n) (M := M)) |
| 281 | (hQ : ∀ b w (hw : w.length ≤ 2 * r), |
| 282 | Q b (wordIndex w hw) =ᵐ[d.charts.measure] |
| 283 | directionalWord d.fields w (scalarProbe d.fields h b)) : |
| 284 | powerTensorL2 d r Q = tensorToLp d.fields d.charts.measure (d.shiftedSmoothPower r h) := by |
| 285 | let q (a : d.ProbeIndex) := powerProbeL2 d r a Q |
| 286 | apply Lp.ext |
| 287 | filter_upwards [Lp.coeFn_fun_finsetSum Finset.univ |
| 288 | (fun a : d.ProbeIndex => insertionLp d.charts.measure a (q a)), |
| 289 | ae_all_iff.mpr (fun a : d.ProbeIndex => insertionLp_coe d.charts.measure a (q a)), |
| 290 | ae_all_iff.mpr (fun a : d.ProbeIndex => powerProbeL2_ae_eq d r a Q h hQ), |
| 291 | tensorToLp_coe d.fields d.charts.measure (d.shiftedSmoothPower r h)] |
| 292 | with x hsum hinsert hprobe htensor |
| 293 | simp only [powerTensorL2, ContinuousLinearMap.sum_apply, ContinuousLinearMap.comp_apply] |
| 294 | change (∑ a : d.ProbeIndex, insertionLp d.charts.measure a (q a)) x = _ |
| 295 | rw [hsum, htensor] |
| 296 | calc |
| 297 | _ = ∑ a : d.ProbeIndex, scalarProbe d.fields (d.shiftedSmoothPower r h) a x • |
| 298 | EuclideanSpace.basisFun d.ProbeIndex ℝ a := by |
| 299 | apply Finset.sum_congr rfl |
| 300 | intro a _ |
| 301 | rw [hinsert a] |
| 302 | change powerProbeL2 d r a Q x • _ = _ |
| 303 | rw [hprobe a] |
| 304 | _ = _ := sum_coordinates (probes d.fields (d.shiftedSmoothPower r h) x) |
| 305 | |
| 306 | def projectedValue : |
| 307 | Lp (Coefficients (Fin d.fieldCount)) 2 d.charts.measure →L[ℝ] d.Value := |
| 308 | (tensorL2 d.fields d.charts.measure).orthogonalProjectionOnto |
| 309 | |
| 310 | @[simp] theorem projectedValue_eq_self (v : d.Value) : |
| 311 | projectedValue d (v : Lp (Coefficients (Fin d.fieldCount)) 2 d.charts.measure) = v := |
| 312 | (tensorL2 d.fields d.charts.measure).orthogonalProjectionOnto_mem_subspace_eq_self v |
| 313 | |
| 314 | /-- Only an identified tensor output needs to agree with the coefficient projection. -/ |
| 315 | theorem projectedValue_eq_of_projection |
| 316 | (f : Lp (Coefficients (Fin d.fieldCount)) 2 d.charts.measure) (v : d.Value) |
| 317 | (hf : projectionL2 g0 d.fields d.parseval d.charts.measure f = |
| 318 | (v : Lp (Coefficients (Fin d.fieldCount)) 2 d.charts.measure)) : |
| 319 | projectedValue d f = v := by |
| 320 | apply Subtype.ext |
| 321 | change (tensorL2 d.fields d.charts.measure).starProjection f = (v : Lp _ 2 _) |
| 322 | apply (tensorL2 d.fields d.charts.measure).eq_starProjection_of_mem_of_inner_eq_zero |
| 323 | v.property |
| 324 | intro w hw |
| 325 | rw [inner_sub_left, ← hf, projectionL2_selfadjoint, |
| 326 | projectionL2_eq_self_of_mem_tensorL2 g0 d.fields d.parseval d.charts.measure hw, |
| 327 | sub_self] |
| 328 | |
| 329 | /-- This map is defined on every raw tuple; compatibility is needed only for its core identity. -/ |
| 330 | def evenOutput (r : ℕ) : |
| 331 | ProbeTuples d (2 * r) →L[ℝ] SpectralHeatNative.State d.SymmetricIndex := |
| 332 | d.symmetricBasis.repr.toContinuousLinearEquiv.toContinuousLinearMap.comp |
| 333 | ((d.valueSymmetrize.codRestrict d.symmetricValue d.valueSymmetrize_mem).comp |
| 334 | ((projectedValue d).comp (powerTensorL2 d r))) |
| 335 | |
| 336 | theorem evenOutput_eq (r : ℕ) (Q : ProbeTuples d (2 * r)) |
| 337 | (h : SmoothTensor (n := n) (M := M)) |
| 338 | (hsymm : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), h x v w = h x w v) |
| 339 | (hQ : ∀ b w (hw : w.length ≤ 2 * r), |
| 340 | Q b (wordIndex w hw) =ᵐ[d.charts.measure] |
| 341 | directionalWord d.fields w (scalarProbe d.fields h b)) : |
| 342 | evenOutput d r Q = d.smoothTensorCoordinates (2 * r) h hsymm := by |
| 343 | have hvalue : projectedValue d (powerTensorL2 d r Q) = |
| 344 | intoTensorL2 d.fields d.charts.measure (d.shiftedSmoothPower r h) := by |
| 345 | rw [powerTensorL2_eq d r Q h hQ] |
| 346 | exact projectedValue_eq_self d |
| 347 | (intoTensorL2 d.fields d.charts.measure (d.shiftedSmoothPower r h)) |
| 348 | have hsym : (d.valueSymmetrize.codRestrict d.symmetricValue d.valueSymmetrize_mem) |
| 349 | (projectedValue d (powerTensorL2 d r Q)) = |
| 350 | d.intoSymmetricValue (d.shiftedSmoothPower r h) (d.shiftedSmoothPower_symm r h hsymm) := by |
| 351 | apply Subtype.ext |
| 352 | change d.valueSymmetrize (projectedValue d (powerTensorL2 d r Q)) = _ |
| 353 | rw [hvalue] |
| 354 | exact d.valueSymmetrize_eq_self_of_mem |
| 355 | (d.intoSymmetricValue (d.shiftedSmoothPower r h) |
| 356 | (d.shiftedSmoothPower_symm r h hsymm)).property |
| 357 | change d.symmetricBasis.repr |
| 358 | ((d.valueSymmetrize.codRestrict d.symmetricValue d.valueSymmetrize_mem) |
| 359 | (projectedValue d (powerTensorL2 d r Q))) = _ |
| 360 | rw [hsym] |
| 361 | exact (d.scaleEncode_even_smoothTensor r h hsymm).symm |
| 362 | |
| 363 | theorem evenOutput_norm_le (r : ℕ) (Q : ProbeTuples d (2 * r)) : |
| 364 | ‖evenOutput d r Q‖ ≤ ‖evenOutput d r‖ * ‖Q‖ := |
| 365 | (evenOutput d r).le_opNorm Q |
| 366 | |
| 367 | def smoothProbeTuples (k : ℕ) (h : SmoothTensor (n := n) (M := M)) : ProbeTuples d k := |
| 368 | fun b w => ContinuousMap.toLp 2 d.charts.measure ℝ |
| 369 | ⟨directionalWord d.fields (List.ofFn w.2) (scalarProbe d.fields h b), |
| 370 | (directionalWord_contMDiff d.fields (List.ofFn w.2) |
| 371 | (scalarProbe_contMDiff d.fields h b)).continuous⟩ |
| 372 | |
| 373 | theorem smoothProbeTuples_ae_eq (k : ℕ) (h : SmoothTensor (n := n) (M := M)) |
| 374 | (b : d.ProbeIndex) (w : List (Fin d.fieldCount)) (hw : w.length ≤ k) : |
| 375 | smoothProbeTuples d k h b (wordIndex w hw) =ᵐ[d.charts.measure] |
| 376 | directionalWord d.fields w (scalarProbe d.fields h b) := by |
| 377 | simpa only [smoothProbeTuples, wordIndex_word, ContinuousMap.coe_mk] using |
| 378 | ContinuousMap.coeFn_toLp (p := (2 : ENNReal)) (μ := d.charts.measure) (𝕜 := ℝ) |
| 379 | (⟨directionalWord d.fields w (scalarProbe d.fields h b), |
| 380 | (directionalWord_contMDiff d.fields w (scalarProbe_contMDiff d.fields h b)).continuous⟩ : |
| 381 | C(M, ℝ)) |
| 382 | |
| 383 | theorem evenOutput_smoothProbeTuples (r : ℕ) (h : SmoothTensor (n := n) (M := M)) |
| 384 | (hsymm : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), h x v w = h x w v) : |
| 385 | evenOutput d r (smoothProbeTuples d (2 * r) h) = |
| 386 | d.smoothTensorCoordinates (2 * r) h hsymm := |
| 387 | evenOutput_eq d r _ h hsymm (smoothProbeTuples_ae_eq d (2 * r) h) |
| 388 | |
| 389 | end PoincareMT.DeTurckCompletedOutputNative |
| 390 | |
| 391 | end |