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/DeTurckIntegralPDENative.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Geometry.RicciFlow.Local.DeTurck.Gauge.DeTurckSpatialRecovery |
| 6 | import PoincareLib.Geometry.RicciFlow.Local.DeTurck.Gauge.DeTurckPullbackForcing |
| 7 | import PoincareLib.Geometry.RicciFlow.Local.DeTurck.Construction.DeTurckEndpointCalculus |
| 8 | |
| 9 | /-! |
| 10 | # The actual integral equation of the native DeTurck response |
| 11 | |
| 12 | Recovered spatial paths construct continuous high coordinates directly. |
| 13 | Bounded native evaluations then identify the actual response at every time. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option maxHeartbeats 1800000 |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | open Set Filter MeasureTheory |
| 23 | open scoped Manifold ContDiff Bundle Topology BigOperators |
| 24 | |
| 25 | namespace PoincareMT.DeTurckIntegralPDENative |
| 26 | |
| 27 | open TensorProbeNative TensorHilbertNative ParsevalTensorNative ChartMeasureNative DeTurckNative |
| 28 | DeTurckJetCoordinatesNative DeTurckCompletedOutputNative |
| 29 | DeTurckStateApproximationNative DeTurckStatePullbackNative |
| 30 | DeTurckSpatialRecoveryNative DeTurckResidualNative |
| 31 | DeTurckParameterForcingNative DeTurckPullbackForcingNative |
| 32 | SpectralHeatNative QuasilinearDeTurckNative |
| 33 | |
| 34 | section NativePathWords |
| 35 | |
| 36 | variable {n : ℕ} {M K iota : Type*} [TopologicalSpace M] |
| 37 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 38 | [TopologicalSpace K] [CompactSpace K] |
| 39 | |
| 40 | def pathDirectional (V : SmoothField (n := n) (M := M)) |
| 41 | (f : M → C(K, ℝ)) (x : M) : C(K, ℝ) := |
| 42 | mfderiv (𝓡 n) 𝓘(ℝ, C(K, ℝ)) f x (V x) |
| 43 | |
| 44 | theorem pathDirectional_contMDiff (V : SmoothField (n := n) (M := M)) |
| 45 | {f : M → C(K, ℝ)} (hf : ContMDiff (𝓡 n) 𝓘(ℝ, C(K, ℝ)) ∞ f) : |
| 46 | ContMDiff (𝓡 n) 𝓘(ℝ, C(K, ℝ)) ∞ (pathDirectional V f) := by |
| 47 | have ht := hf.contMDiff_tangentMap (m := ∞) (by simp) |
| 48 | exact (contMDiff_snd_tangentBundle_modelSpace C(K, ℝ) 𝓘(ℝ, C(K, ℝ))).comp |
| 49 | (ht.comp V.contMDiff) |
| 50 | |
| 51 | theorem pathDirectional_eval (V : SmoothField (n := n) (M := M)) |
| 52 | {f : M → C(K, ℝ)} (hf : ContMDiff (𝓡 n) 𝓘(ℝ, C(K, ℝ)) ∞ f) |
| 53 | (t : K) (x : M) : |
| 54 | pathDirectional V f x t = scalarDirectional V (fun y => f y t) x := by |
| 55 | let ev : C(K, ℝ) →L[ℝ] ℝ := ContinuousMap.evalCLM ℝ t |
| 56 | have hd := ev.hasMFDerivAt.comp x ((hf x).mdifferentiableAt (by simp)).hasMFDerivAt |
| 57 | have hm := hd.mfderiv |
| 58 | change mfderiv (𝓡 n) 𝓘(ℝ, ℝ) (fun y => f y t) x = |
| 59 | ev.comp (mfderiv (𝓡 n) 𝓘(ℝ, C(K, ℝ)) f x) at hm |
| 60 | change _ = mfderiv (𝓡 n) 𝓘(ℝ, ℝ) (fun y => f y t) x (V x) |
| 61 | rw [hm] |
| 62 | rfl |
| 63 | |
| 64 | def pathWord (F : iota → SmoothField (n := n) (M := M)) : |
| 65 | List iota → (M → C(K, ℝ)) → M → C(K, ℝ) |
| 66 | | [], f => f |
| 67 | | i :: w, f => pathDirectional (F i) (pathWord F w f) |
| 68 | |
| 69 | theorem pathWord_contMDiff (F : iota → SmoothField (n := n) (M := M)) |
| 70 | (w : List iota) {f : M → C(K, ℝ)} |
| 71 | (hf : ContMDiff (𝓡 n) 𝓘(ℝ, C(K, ℝ)) ∞ f) : |
| 72 | ContMDiff (𝓡 n) 𝓘(ℝ, C(K, ℝ)) ∞ (pathWord F w f) := by |
| 73 | induction w with |
| 74 | | nil => exact hf |
| 75 | | cons i w ih => exact pathDirectional_contMDiff (F i) ih |
| 76 | |
| 77 | theorem pathWord_eval (F : iota → SmoothField (n := n) (M := M)) |
| 78 | (w : List iota) {f : M → C(K, ℝ)} |
| 79 | (hf : ContMDiff (𝓡 n) 𝓘(ℝ, C(K, ℝ)) ∞ f) (t : K) (x : M) : |
| 80 | pathWord F w f x t = directionalWord F w (fun y => f y t) x := by |
| 81 | induction w generalizing x with |
| 82 | | nil => rfl |
| 83 | | cons i w ih => |
| 84 | rw [pathWord, pathDirectional_eval (F i) (pathWord_contMDiff F w hf)] |
| 85 | change scalarDirectional (F i) (fun y => pathWord F w f y t) x = _ |
| 86 | rw [show (fun y => pathWord F w f y t) = directionalWord F w (fun y => f y t) |
| 87 | from funext ih] |
| 88 | rfl |
| 89 | |
| 90 | variable [CompactSpace M] |
| 91 | |
| 92 | def wordSpatialMap (F : iota → SmoothField (n := n) (M := M)) |
| 93 | (w : List iota) (f : M → C(K, ℝ)) |
| 94 | (hf : ContMDiff (𝓡 n) 𝓘(ℝ, C(K, ℝ)) ∞ f) (t : K) : C(M, ℝ) := |
| 95 | ⟨fun x => pathWord F w f x t, |
| 96 | (ContinuousMap.evalCLM ℝ t).continuous.comp (pathWord_contMDiff F w hf).continuous⟩ |
| 97 | |
| 98 | theorem wordSpatialMap_continuous (F : iota → SmoothField (n := n) (M := M)) |
| 99 | (w : List iota) (f : M → C(K, ℝ)) |
| 100 | (hf : ContMDiff (𝓡 n) 𝓘(ℝ, C(K, ℝ)) ∞ f) : |
| 101 | Continuous (wordSpatialMap F w f hf) := by |
| 102 | apply ContinuousMap.continuous_of_continuous_uncurry |
| 103 | exact continuous_eval.comp |
| 104 | (((pathWord_contMDiff F w hf).continuous.comp continuous_snd).prodMk continuous_fst) |
| 105 | |
| 106 | end NativePathWords |
| 107 | |
| 108 | section ActualCoordinates |
| 109 | |
| 110 | variable {n : ℕ} {M K : Type*} [TopologicalSpace M] [T2Space M] |
| 111 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 112 | [CompactSpace M] [MeasurableSpace M] [BorelSpace M] |
| 113 | [TopologicalSpace K] [CompactSpace K] |
| 114 | {g0 : RiemannianMetric n M} (d : Data g0) |
| 115 | |
| 116 | def probeWordTuple (Q : d.ProbeIndex → M → C(K, ℝ)) |
| 117 | (hQ : ∀ ab, ContMDiff (𝓡 n) 𝓘(ℝ, C(K, ℝ)) ∞ (Q ab)) |
| 118 | (k : ℕ) (t : K) : ProbeTuples d k := |
| 119 | fun ab w => ContinuousMap.toLp 2 d.charts.measure ℝ |
| 120 | (wordSpatialMap d.fields (List.ofFn w.2) (Q ab) (hQ ab) t) |
| 121 | |
| 122 | theorem probeWordTuple_continuous (Q : d.ProbeIndex → M → C(K, ℝ)) |
| 123 | (hQ : ∀ ab, ContMDiff (𝓡 n) 𝓘(ℝ, C(K, ℝ)) ∞ (Q ab)) (k : ℕ) : |
| 124 | Continuous (probeWordTuple d Q hQ k) := by |
| 125 | apply continuous_pi |
| 126 | intro ab |
| 127 | apply continuous_pi |
| 128 | intro w |
| 129 | exact (ContinuousMap.toLp 2 d.charts.measure ℝ).continuous.comp |
| 130 | (wordSpatialMap_continuous d.fields (List.ofFn w.2) (Q ab) (hQ ab)) |
| 131 | |
| 132 | theorem probeWordTuple_eq (Q : d.ProbeIndex → M → C(K, ℝ)) |
| 133 | (hQ : ∀ ab, ContMDiff (𝓡 n) 𝓘(ℝ, C(K, ℝ)) ∞ (Q ab)) |
| 134 | (h : K → SmoothTensor (n := n) (M := M)) |
| 135 | (hprobe : ∀ ab x t, Q ab x t = scalarProbe d.fields (h t) ab x) |
| 136 | (k : ℕ) (t : K) : probeWordTuple d Q hQ k t = smoothProbeTuples d k (h t) := by |
| 137 | funext ab w |
| 138 | apply congrArg (ContinuousMap.toLp 2 d.charts.measure ℝ) |
| 139 | apply ContinuousMap.ext |
| 140 | intro x |
| 141 | change pathWord d.fields (List.ofFn w.2) (Q ab) x t = _ |
| 142 | rw [pathWord_eval d.fields (List.ofFn w.2) (hQ ab)] |
| 143 | congr 1 |
| 144 | exact funext (fun y => hprobe ab y t) |
| 145 | |
| 146 | def evenCoordinatesPath (Q : d.ProbeIndex → M → C(K, ℝ)) |
| 147 | (hQ : ∀ ab, ContMDiff (𝓡 n) 𝓘(ℝ, C(K, ℝ)) ∞ (Q ab)) (r : ℕ) : |
| 148 | C(K, State d.SymmetricIndex) := |
| 149 | ⟨fun t => evenOutput d r (probeWordTuple d Q hQ (2 * r) t), |
| 150 | (evenOutput d r).continuous.comp (probeWordTuple_continuous d Q hQ (2 * r))⟩ |
| 151 | |
| 152 | theorem evenCoordinatesPath_apply (Q : d.ProbeIndex → M → C(K, ℝ)) |
| 153 | (hQ : ∀ ab, ContMDiff (𝓡 n) 𝓘(ℝ, C(K, ℝ)) ∞ (Q ab)) |
| 154 | (h : K → SmoothTensor (n := n) (M := M)) |
| 155 | (hs : ∀ t (x : M) (v w : TangentSpace (𝓡 n) x), h t x v w = h t x w v) |
| 156 | (hprobe : ∀ ab x t, Q ab x t = scalarProbe d.fields (h t) ab x) |
| 157 | (r : ℕ) (t : K) : |
| 158 | evenCoordinatesPath d Q hQ r t = d.smoothTensorCoordinates (2 * r) (h t) (hs t) := by |
| 159 | change evenOutput d r (probeWordTuple d Q hQ (2 * r) t) = _ |
| 160 | rw [probeWordTuple_eq d Q hQ h hprobe, evenOutput_smoothProbeTuples d r (h t) (hs t)] |
| 161 | |
| 162 | end ActualCoordinates |
| 163 | |
| 164 | section StateIdentification |
| 165 | |
| 166 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] [T2Space M] |
| 167 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 168 | [CompactSpace M] [MeasurableSpace M] [BorelSpace M] |
| 169 | {g0 : RiemannianMetric n M} (d : Data g0) |
| 170 | (L : FiniteChartLocalizationData d.charts) |
| 171 | (r p : ℕ) (hpr : p ≤ r) (hp : (n : ℝ) < 2 * (2 * (p : ℝ))) |
| 172 | |
| 173 | theorem value_eq_of_coefficients (v w : d.Value) |
| 174 | (h : ∀ ab, d.valueCoefficient ab v = d.valueCoefficient ab w) : v = w := by |
| 175 | apply Subtype.ext |
| 176 | apply Lp.ext |
| 177 | have heq (ab : d.ProbeIndex) : |
| 178 | (fun x => (v : Lp (Coefficients (Fin d.fieldCount)) 2 d.charts.measure) x ab) =ᵐ[d.charts.measure] |
| 179 | (fun x => (w : Lp (Coefficients (Fin d.fieldCount)) 2 d.charts.measure) x ab) := by |
| 180 | have hv := d.valueCoefficient_coe ab v |
| 181 | rw [h ab] at hv |
| 182 | exact hv.symm.trans (d.valueCoefficient_coe ab w) |
| 183 | filter_upwards [ae_all_iff.mpr heq] with x hx |
| 184 | ext ab |
| 185 | exact hx ab |
| 186 | |
| 187 | /-- The completed zero-word evaluation is the actual native L2 coefficient. -/ |
| 188 | theorem toLp_zeroProbe (z : State d.SymmetricIndex) (ab : d.ProbeIndex) : |
| 189 | ContinuousMap.toLp 2 d.charts.measure ℝ (zeroProbe d L r p hpr hp ab z) = |
| 190 | d.valueCoefficient ab (d.symmetricScaleValue (2 * r) z : d.Value) := by |
| 191 | let A := (ContinuousMap.toLp 2 d.charts.measure ℝ).comp (zeroProbe d L r p hpr hp ab) |
| 192 | let B := (d.valueCoefficient ab).comp |
| 193 | (d.symmetricValue.subtypeL.comp (d.symmetricScaleValue (2 * r))) |
| 194 | obtain ⟨h, hs, hlim⟩ := exists_smooth_symmetric_approximation d L r z |
| 195 | have hid (j : ℕ) : A (d.smoothTensorCoordinates (2 * r) (h j) (hs j)) = |
| 196 | B (d.smoothTensorCoordinates (2 * r) (h j) (hs j)) := by |
| 197 | change ContinuousMap.toLp 2 d.charts.measure ℝ |
| 198 | (zeroProbe d L r p hpr hp ab (d.smoothTensorCoordinates (2 * r) (h j) (hs j))) = |
| 199 | d.valueCoefficient ab (d.symmetricScaleValue (2 * r) |
| 200 | (d.smoothTensorCoordinates (2 * r) (h j) (hs j)) : d.Value) |
| 201 | rw [d.symmetricScaleValue_smoothTensorCoordinates] |
| 202 | apply Lp.ext |
| 203 | filter_upwards [ContinuousMap.coeFn_toLp (p := (2 : ENNReal)) |
| 204 | (μ := d.charts.measure) (𝕜 := ℝ) |
| 205 | (zeroProbe d L r p hpr hp ab (d.smoothTensorCoordinates (2 * r) (h j) (hs j))), |
| 206 | d.valueCoefficient_into_coe ab (h j)] with x hA hB |
| 207 | rw [hA] |
| 208 | change _ = d.valueCoefficient ab (intoTensorL2 d.fields d.charts.measure (h j)) x |
| 209 | rw [hB] |
| 210 | exact probeEvaluation_smoothTensorCoordinates d L r p hpr hp (h j) (hs j) ab x |
| 211 | change A z = B z |
| 212 | exact tendsto_nhds_unique |
| 213 | (by simpa only [Function.comp_def, hid] using (A.continuous.tendsto z).comp hlim) |
| 214 | ((B.continuous.tendsto z).comp hlim) |
| 215 | |
| 216 | theorem state_eq_of_probeEvaluation (z w : State d.SymmetricIndex) |
| 217 | (h : ∀ ab x, probeEvaluation d L r p hpr hp ab x z = |
| 218 | probeEvaluation d L r p hpr hp ab x w) : z = w := by |
| 219 | apply d.symmetricScaleValue_injective (2 * r) |
| 220 | apply Subtype.ext |
| 221 | apply value_eq_of_coefficients d |
| 222 | intro ab |
| 223 | rw [← toLp_zeroProbe d L r p hpr hp z ab, ← toLp_zeroProbe d L r p hpr hp w ab] |
| 224 | congr 1 |
| 225 | exact ContinuousMap.ext (h ab) |
| 226 | |
| 227 | theorem smoothTensorCoordinates_eq_of_probes |
| 228 | (h : SmoothTensor (n := n) (M := M)) |
| 229 | (hs : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), h x v w = h x w v) |
| 230 | (z : State d.SymmetricIndex) |
| 231 | (hprobe : ∀ ab x, scalarProbe d.fields h ab x = probeEvaluation d L r p hpr hp ab x z) : |
| 232 | d.smoothTensorCoordinates (2 * r) h hs = z := by |
| 233 | apply state_eq_of_probeEvaluation d L r p hpr hp |
| 234 | intro ab x |
| 235 | rw [probeEvaluation_smoothTensorCoordinates] |
| 236 | exact hprobe ab x |
| 237 | |
| 238 | /-- Recovered probes identify the directly constructed high path at every time. -/ |
| 239 | theorem evenCoordinatesPath_scaleDecode_two |
| 240 | {K : Type*} [TopologicalSpace K] [CompactSpace K] |
| 241 | (Q : d.ProbeIndex → M → C(K, ℝ)) |
| 242 | (hQ : ∀ ab, ContMDiff (𝓡 n) 𝓘(ℝ, C(K, ℝ)) ∞ (Q ab)) |
| 243 | (h : K → SmoothTensor (n := n) (M := M)) |
| 244 | (hs : ∀ t (x : M) (v w : TangentSpace (𝓡 n) x), h t x v w = h t x w v) |
| 245 | (hprobe : ∀ ab x t, Q ab x t = scalarProbe d.fields (h t) ab x) |
| 246 | (u : K → State d.SymmetricIndex) |
| 247 | (hu : ∀ ab x t, Q ab x t = probeEvaluation d L r p hpr hp ab x (u t)) (t : K) : |
| 248 | scaleDecode d.symmetricParameters 2 (evenCoordinatesPath d Q hQ (r + 1) t) = u t := by |
| 249 | rw [evenCoordinatesPath_apply d Q hQ h hs hprobe] |
| 250 | rw [show 2 * (r + 1) = 2 * r + 2 by omega, |
| 251 | scaleDecode_smoothTensorCoordinates] |
| 252 | apply smoothTensorCoordinates_eq_of_probes d L r p hpr hp |
| 253 | intro ab x |
| 254 | exact (hprobe ab x t).symm.trans (hu ab x t) |
| 255 | |
| 256 | end StateIdentification |
| 257 | |
| 258 | section RecoveredCoordinates |
| 259 | |
| 260 | variable {n : ℕ} {M K : Type*} [TopologicalSpace M] [T2Space M] |
| 261 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 262 | [CompactSpace M] [MeasurableSpace M] [BorelSpace M] |
| 263 | [TopologicalSpace K] [CompactSpace K] |
| 264 | {g0 : RiemannianMetric n M} (d : Data g0) |
| 265 | (L : FiniteChartLocalizationData d.charts) |
| 266 | (r p : ℕ) (hpr : p ≤ r) (hp : (n : ℝ) < 2 * (2 * (p : ℝ))) |
| 267 | (z : C(K, State d.SymmetricIndex)) |
| 268 | (hspatial : ∀ ab : d.ProbeIndex, |
| 269 | ContMDiff (𝓡 n) 𝓘(ℝ, C(K, ℝ)) ∞ (probePath d L r p hpr hp z ab)) |
| 270 | |
| 271 | def recoveredHighPath : C(K, State d.SymmetricIndex) := |
| 272 | evenCoordinatesPath d (probePath d L r p hpr hp z) hspatial (r + 1) |
| 273 | |
| 274 | theorem recoveredHighPath_apply (t : K) : |
| 275 | recoveredHighPath d L r p hpr hp z hspatial t = |
| 276 | d.smoothTensorCoordinates (2 * r + 2) |
| 277 | (recoveredTensor d L r p hpr hp z hspatial t) |
| 278 | (recoveredTensor_symmetric d L r p hpr hp z hspatial t) := by |
| 279 | simpa only [recoveredHighPath, Nat.mul_add, Nat.mul_one] using |
| 280 | evenCoordinatesPath_apply d (probePath d L r p hpr hp z) hspatial |
| 281 | (recoveredTensor d L r p hpr hp z hspatial) |
| 282 | (recoveredTensor_symmetric d L r p hpr hp z hspatial) |
| 283 | (fun ab x t => (scalarProbe_recoveredTensor d L r p hpr hp z hspatial t ab x).symm) |
| 284 | (r + 1) t |
| 285 | |
| 286 | theorem recoveredHighPath_scaleDecode (t : K) : |
| 287 | scaleDecode d.symmetricParameters 2 (recoveredHighPath d L r p hpr hp z hspatial t) = z t := |
| 288 | evenCoordinatesPath_scaleDecode_two d L r p hpr hp |
| 289 | (probePath d L r p hpr hp z) hspatial |
| 290 | (recoveredTensor d L r p hpr hp z hspatial) |
| 291 | (recoveredTensor_symmetric d L r p hpr hp z hspatial) |
| 292 | (fun ab x t => (scalarProbe_recoveredTensor d L r p hpr hp z hspatial t ab x).symm) |
| 293 | z (fun _ _ _ => rfl) t |
| 294 | |
| 295 | theorem recoveredTensor_coordinates (t : K) : |
| 296 | d.smoothTensorCoordinates (2 * r) |
| 297 | (recoveredTensor d L r p hpr hp z hspatial t) |
| 298 | (recoveredTensor_symmetric d L r p hpr hp z hspatial t) = z t := by |
| 299 | apply smoothTensorCoordinates_eq_of_probes d L r p hpr hp |
| 300 | intro ab x |
| 301 | exact scalarProbe_recoveredTensor d L r p hpr hp z hspatial t ab x |
| 302 | |
| 303 | theorem recoveredTensor_traceCoordinates (t : K) : |
| 304 | d.smoothTensorCoordinates (2 * r + 1) |
| 305 | (recoveredTensor d L r p hpr hp z hspatial t) |
| 306 | (recoveredTensor_symmetric d L r p hpr hp z hspatial t) = |
| 307 | scaleDecode d.symmetricParameters 1 (recoveredHighPath d L r p hpr hp z hspatial t) := by |
| 308 | rw [recoveredHighPath_apply] |
| 309 | have hlevel : 2 * r + 2 = (2 * r + 1) + 1 := by omega |
| 310 | rw [hlevel, scaleDecode_smoothTensorCoordinates] |
| 311 | |
| 312 | end RecoveredCoordinates |
| 313 | |
| 314 | section ActualResponse |
| 315 | |
| 316 | variable {iota : Type*} [Countable iota] {T : ℝ} (lambda : iota → NNReal) |
| 317 | (N : SpatialResidual lambda) (hT : 0 ≤ T) (F : ForcingSpace iota T) |
| 318 | (H : C(Icc (0 : ℝ) T, State iota)) |
| 319 | |
| 320 | def responseVelocity : C(Icc (0 : ℝ) T, State iota) := |
| 321 | ⟨fun t => N.toFun (H t) - (H t - responseState lambda F t), |
| 322 | (N.continuous.comp H.continuous).sub |
| 323 | (H.continuous.sub (responsePath hT lambda F).continuous)⟩ |
| 324 | |
| 325 | theorem scaleDecode_one_high_eq_trace |
| 326 | (hH : ∀ t : Icc (0 : ℝ) T, scaleDecode lambda 2 (H t) = responseState lambda F t) |
| 327 | (t : Icc (0 : ℝ) T) : |
| 328 | scaleDecode lambda 1 (H t) = shiftedTracePath hT lambda F t := by |
| 329 | apply scaleDecode_injective lambda 1 |
| 330 | calc |
| 331 | _ = scaleDecode lambda 2 (H t) := by |
| 332 | rw [← ContinuousLinearMap.comp_apply, ← scaleDecode_add] |
| 333 | _ = responseState lambda F t := hH t |
| 334 | _ = _ := (scaleDecode_shiftedTracePath hT lambda F t).symm |
| 335 | |
| 336 | include hT in |
| 337 | theorem norm_scaleDecode_one_high_le (hT1 : T ≤ 1) |
| 338 | (hH : ∀ t : Icc (0 : ℝ) T, scaleDecode lambda 2 (H t) = responseState lambda F t) |
| 339 | (t : Icc (0 : ℝ) T) : ‖scaleDecode lambda 1 (H t)‖ ≤ 2 * ‖F‖ := by |
| 340 | rw [scaleDecode_one_high_eq_trace lambda hT F H hH t] |
| 341 | calc |
| 342 | _ ≤ ‖shiftedTracePath hT lambda F‖ := ContinuousMap.norm_coe_le_norm _ _ |
| 343 | _ ≤ (Real.sqrt T + 1) * ‖F‖ := norm_shiftedTracePath_le hT lambda F |
| 344 | _ ≤ 2 * ‖F‖ := by |
| 345 | apply mul_le_mul_of_nonneg_right _ (norm_nonneg _) |
| 346 | have hs : Real.sqrt T ≤ 1 := by |
| 347 | simpa only [Real.sqrt_one] using Real.sqrt_le_sqrt hT1 |
| 348 | linarith |
| 349 | |
| 350 | theorem fixedPoint_response_integral (hfix : N.forcingResidual hT F = F) |
| 351 | (hH : ∀ t : Icc (0 : ℝ) T, scaleDecode lambda 2 (H t) = responseState lambda F t) |
| 352 | {t : ℝ} (ht : t ∈ Icc (0 : ℝ) T) : |
| 353 | responseState lambda F t = |
| 354 | ∫ s in (0 : ℝ)..t, IccExtend hT (responseVelocity lambda N hT F H) s := by |
| 355 | let V := responseVelocity lambda N hT F H |
| 356 | have hV : Continuous (IccExtend hT V) := V.continuous.comp continuous_projIcc |
| 357 | have hcont : ContinuousOn (responseState lambda F) (Icc (0 : ℝ) t) := |
| 358 | (continuousOn_responseState_of_memLp hT (Lp.memLp F) lambda).mono |
| 359 | (Icc_subset_Icc le_rfl ht.2) |
| 360 | have hder (s : ℝ) (hs : s ∈ Ioo (0 : ℝ) t) : |
| 361 | HasDerivAt (responseState lambda F) (IccExtend hT V s) s := by |
| 362 | have hsT : s ∈ Icc (0 : ℝ) T := ⟨hs.1.le, hs.2.le.trans ht.2⟩ |
| 363 | rw [IccExtend_of_mem hT V hsT] |
| 364 | exact (N.fixedPoint_hasDerivWithinAt hT F hfix H hH hsT).hasDerivAt |
| 365 | (Icc_mem_nhds hs.1 (hs.2.trans_le ht.2)) |
| 366 | have heq := intervalIntegral.integral_eq_sub_of_hasDerivAt_of_le ht.1 hcont hder |
| 367 | (hV.intervalIntegrable 0 t) |
| 368 | simpa only [responseState_zero, sub_zero] using heq.symm |
| 369 | |
| 370 | end ActualResponse |
| 371 | |
| 372 | section NativeSource |
| 373 | |
| 374 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] [T2Space M] |
| 375 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 376 | [CompactSpace M] [SecondCountableTopology M] [MeasurableSpace M] [BorelSpace M] |
| 377 | {g0 : RiemannianMetric n M} (d : Data g0) {r : ℕ} (A : NativeParameterData d r) |
| 378 | |
| 379 | /-- The fixed positive generator cancels from the actual smooth source. -/ |
| 380 | theorem spatialVelocity_smoothTensorCoordinates |
| 381 | (g : RiemannianMetric n M) (D : LeviCivitaData g) (B : LeviCivitaData g0) |
| 382 | (h : SmoothTensor (n := n) (M := M)) |
| 383 | (hs : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), h x v w = h x w v) |
| 384 | (hmetric : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), |
| 385 | g.inner x v w = g0.inner x v w + h x v w) |
| 386 | (hsmall : ‖d.smoothTensorCoordinates (2 * r + 1) h hs‖ ≤ A.radius) : |
| 387 | A.spatialResidual.toFun (d.smoothTensorCoordinates (2 * r + 2) h hs) - |
| 388 | (d.smoothTensorCoordinates (2 * r + 2) h hs - d.smoothTensorCoordinates (2 * r) h hs) = |
| 389 | d.smoothTensorCoordinates (2 * r) (smoothRicciDeTurckTensor D B) |
| 390 | (smoothRicciDeTurckTensor_symm D B) := by |
| 391 | have hraw := rawState_smooth_agreement d A g D B h hs hmetric hsmall |
| 392 | rw [rawState, A.raw_agreement g D B h hs hmetric hsmall] at hraw |
| 393 | rw [A.spatialResidual_agreement g D B h hs hmetric hsmall, hraw] |
| 394 | have hgen : highGenerator d.symmetricParameters |
| 395 | (d.smoothTensorCoordinates (2 * r + 2) h hs) = |
| 396 | d.smoothTensorCoordinates (2 * r + 2) h hs - d.smoothTensorCoordinates (2 * r) h hs := by |
| 397 | change _ - scaleDecode d.symmetricParameters 2 |
| 398 | (d.smoothTensorCoordinates (2 * r + 2) h hs) = _ |
| 399 | rw [scaleDecode_smoothTensorCoordinates] |
| 400 | rfl |
| 401 | rw [hgen] |
| 402 | abel |
| 403 | |
| 404 | end NativeSource |
| 405 | |
| 406 | section RecoveredPDE |
| 407 | |
| 408 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] [T2Space M] |
| 409 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 410 | [CompactSpace M] [SecondCountableTopology M] [MeasurableSpace M] [BorelSpace M] |
| 411 | {g0 : RiemannianMetric n M} (d : Data g0) |
| 412 | (L : FiniteChartLocalizationData d.charts) |
| 413 | (r p : ℕ) (hpr : p ≤ r) (hp : (n : ℝ) < 2 * (2 * (p : ℝ))) |
| 414 | {T : ℝ} (hT : 0 ≤ T) (F : ForcingSpace d.SymmetricIndex T) |
| 415 | (hspatial : ∀ ab : d.ProbeIndex, |
| 416 | ContMDiff (𝓡 n) 𝓘(ℝ, C(Icc (0 : ℝ) T, ℝ)) ∞ |
| 417 | (probePath d L r p hpr hp (responsePath hT d.symmetricParameters F) ab)) |
| 418 | |
| 419 | local notation "u" => responsePath hT d.symmetricParameters F |
| 420 | local notation "h" => recoveredTensor d L r p hpr hp u hspatial |
| 421 | local notation "hs" => recoveredTensor_symmetric d L r p hpr hp u hspatial |
| 422 | local notation "H" => recoveredHighPath d L r p hpr hp u hspatial |
| 423 | |
| 424 | theorem recoveredTensor_traceCoordinates_eq (t : Icc (0 : ℝ) T) : |
| 425 | d.smoothTensorCoordinates (2 * r + 1) (h t) (hs t) = |
| 426 | shiftedTracePath hT d.symmetricParameters F t := by |
| 427 | rw [recoveredTensor_traceCoordinates] |
| 428 | exact scaleDecode_one_high_eq_trace d.symmetricParameters hT F H |
| 429 | (recoveredHighPath_scaleDecode d L r p hpr hp u hspatial) t |
| 430 | |
| 431 | theorem recoveredTensor_traceCoordinates_norm_le (hT1 : T ≤ 1) (t : Icc (0 : ℝ) T) : |
| 432 | ‖d.smoothTensorCoordinates (2 * r + 1) (h t) (hs t)‖ ≤ 2 * ‖F‖ := by |
| 433 | rw [recoveredTensor_traceCoordinates] |
| 434 | exact norm_scaleDecode_one_high_le d.symmetricParameters hT F H hT1 |
| 435 | (recoveredHighPath_scaleDecode d L r p hpr hp u hspatial) t |
| 436 | |
| 437 | variable (A : NativeParameterData d r) |
| 438 | |
| 439 | /-- Source coordinates are recovered without any regularity premise on connection choices. -/ |
| 440 | theorem recovered_responseVelocity_eq (hT1 : T ≤ 1) |
| 441 | (hsmall : 2 * ‖F‖ ≤ A.radius) |
| 442 | (g : ℝ → RiemannianMetric n M) |
| 443 | (hmetric : ∀ (t : Icc (0 : ℝ) T) (x : M) (v w : TangentSpace (𝓡 n) x), |
| 444 | (g t).inner x v w = g0.inner x v w + h t x v w) |
| 445 | (t : Icc (0 : ℝ) T) (D : LeviCivitaData (g t)) (B : LeviCivitaData g0) : |
| 446 | responseVelocity d.symmetricParameters A.spatialResidual hT F H t = |
| 447 | d.smoothTensorCoordinates (2 * r) (smoothRicciDeTurckTensor D B) |
| 448 | (smoothRicciDeTurckTensor_symm D B) := by |
| 449 | change A.spatialResidual.toFun (H t) - (H t - responseState d.symmetricParameters F t) = _ |
| 450 | rw [recoveredHighPath_apply] |
| 451 | have hcoords := recoveredTensor_coordinates d L r p hpr hp u hspatial t |
| 452 | simp only [responsePath_apply] at hcoords |
| 453 | rw [← hcoords] |
| 454 | exact spatialVelocity_smoothTensorCoordinates d A (g t) D B (h t) (hs t) |
| 455 | (hmetric t) |
| 456 | ((recoveredTensor_traceCoordinates_norm_le d L r p hpr hp hT F hspatial hT1 t).trans hsmall) |
| 457 | |
| 458 | /-- The recovered tensor satisfies the actual DeTurck equation at every interval time. -/ |
| 459 | theorem recoveredTensor_hasDerivWithinAt (hT1 : T ≤ 1) |
| 460 | (hfix : A.spatialResidual.forcingResidual hT F = F) (hsmall : 2 * ‖F‖ ≤ A.radius) |
| 461 | (g : ℝ → RiemannianMetric n M) |
| 462 | (hmetric : ∀ (t : Icc (0 : ℝ) T) (x : M) (v w : TangentSpace (𝓡 n) x), |
| 463 | (g t).inner x v w = g0.inner x v w + h t x v w) |
| 464 | {t : ℝ} (ht : t ∈ Icc (0 : ℝ) T) (D : LeviCivitaData (g t)) |
| 465 | (B : LeviCivitaData g0) (x : M) (v w : TangentSpace (𝓡 n) x) : |
| 466 | HasDerivWithinAt (IccExtend hT (fun s => h s x v w)) |
| 467 | (smoothRicciDeTurckTensor D B x v w) (Icc (0 : ℝ) T) t := by |
| 468 | let ev := tensorEvaluation d L r p hpr hp x v w |
| 469 | have hH := recoveredHighPath_scaleDecode d L r p hpr hp u hspatial |
| 470 | have hd := A.spatialResidual.fixedPoint_hasDerivWithinAt hT F hfix H hH ht |
| 471 | have hscalar := ev.hasFDerivAt.comp_hasDerivWithinAt t hd |
| 472 | have hsource := recovered_responseVelocity_eq d L r p hpr hp hT F hspatial A hT1 |
| 473 | hsmall g hmetric ⟨t, ht⟩ D B |
| 474 | change A.spatialResidual.toFun (H ⟨t, ht⟩) - |
| 475 | (H ⟨t, ht⟩ - responseState d.symmetricParameters F t) = _ at hsource |
| 476 | rw [hsource] at hscalar |
| 477 | change HasDerivWithinAt (fun s => ev (responseState d.symmetricParameters F s)) |
| 478 | (tensorEvaluation d L r p hpr hp x v w |
| 479 | (d.smoothTensorCoordinates (2 * r) (smoothRicciDeTurckTensor D B) |
| 480 | (smoothRicciDeTurckTensor_symm D B))) (Icc (0 : ℝ) T) t at hscalar |
| 481 | rw [tensorEvaluation_smoothTensorCoordinates] at hscalar |
| 482 | apply hscalar.congr_of_mem _ ht |
| 483 | intro s hsT |
| 484 | rw [IccExtend_of_mem hT _ hsT, recoveredTensor_apply] |
| 485 | exact (tensorEvaluation_apply d L r p hpr hp (u ⟨s, hsT⟩) x v w).symm |
| 486 | |
| 487 | /-- The integral identity is inherited from the actual fixed-point response. -/ |
| 488 | theorem recoveredTensor_integral_equation (hT1 : T ≤ 1) |
| 489 | (hfix : A.spatialResidual.forcingResidual hT F = F) (hsmall : 2 * ‖F‖ ≤ A.radius) |
| 490 | (g : ℝ → RiemannianMetric n M) |
| 491 | (hmetric : ∀ (t : Icc (0 : ℝ) T) (x : M) (v w : TangentSpace (𝓡 n) x), |
| 492 | (g t).inner x v w = g0.inner x v w + h t x v w) |
| 493 | (D : ∀ t : Icc (0 : ℝ) T, LeviCivitaData (g t)) (B : LeviCivitaData g0) |
| 494 | (t : Icc (0 : ℝ) T) (x : M) (v w : TangentSpace (𝓡 n) x) : |
| 495 | h t x v w = ∫ s in (0 : ℝ)..t, |
| 496 | smoothRicciDeTurckTensor (D (projIcc 0 T hT s)) B x v w := by |
| 497 | let ev := tensorEvaluation d L r p hpr hp x v w |
| 498 | let V := responseVelocity d.symmetricParameters A.spatialResidual hT F H |
| 499 | have hH := recoveredHighPath_scaleDecode d L r p hpr hp u hspatial |
| 500 | have hint := fixedPoint_response_integral d.symmetricParameters A.spatialResidual hT F H |
| 501 | hfix hH t.property |
| 502 | have hV : Continuous (IccExtend hT V) := V.continuous.comp continuous_projIcc |
| 503 | have hscalar := congrArg ev hint |
| 504 | rw [← ev.intervalIntegral_comp_comm (hV.intervalIntegrable 0 t)] at hscalar |
| 505 | calc |
| 506 | h t x v w = ev (responseState d.symmetricParameters F t) := by |
| 507 | rw [recoveredTensor_apply] |
| 508 | exact (tensorEvaluation_apply d L r p hpr hp (u t) x v w).symm |
| 509 | _ = ∫ s in (0 : ℝ)..t, ev (IccExtend hT V s) := hscalar |
| 510 | _ = _ := by |
| 511 | apply intervalIntegral.integral_congr |
| 512 | intro s _ |
| 513 | change ev (V (projIcc 0 T hT s)) = _ |
| 514 | rw [recovered_responseVelocity_eq d L r p hpr hp hT F hspatial A hT1 |
| 515 | hsmall g hmetric (projIcc 0 T hT s) (D (projIcc 0 T hT s)) B] |
| 516 | exact tensorEvaluation_smoothTensorCoordinates d L r p hpr hp |
| 517 | (smoothRicciDeTurckTensor (D (projIcc 0 T hT s)) B) |
| 518 | (smoothRicciDeTurckTensor_symm (D (projIcc 0 T hT s)) B) x v w |
| 519 | |
| 520 | theorem recoveredMetric_hasDerivWithinAt (hT1 : T ≤ 1) |
| 521 | (hfix : A.spatialResidual.forcingResidual hT F = F) (hsmall : 2 * ‖F‖ ≤ A.radius) |
| 522 | (g : ℝ → RiemannianMetric n M) |
| 523 | (hmetric : ∀ (t : Icc (0 : ℝ) T) (x : M) (v w : TangentSpace (𝓡 n) x), |
| 524 | (g t).inner x v w = g0.inner x v w + h t x v w) |
| 525 | {t : ℝ} (ht : t ∈ Icc (0 : ℝ) T) (D : LeviCivitaData (g t)) |
| 526 | (B : LeviCivitaData g0) (x : M) (v w : TangentSpace (𝓡 n) x) : |
| 527 | HasDerivWithinAt (fun s => (g s).inner x v w) |
| 528 | (smoothRicciDeTurckTensor D B x v w) (Icc (0 : ℝ) T) t := by |
| 529 | have hd := (recoveredTensor_hasDerivWithinAt d L r p hpr hp hT F hspatial A hT1 |
| 530 | hfix hsmall g hmetric ht D B x v w).const_add (g0.inner x v w) |
| 531 | apply hd.congr_of_mem _ ht |
| 532 | intro s hsT |
| 533 | rw [IccExtend_of_mem hT _ hsT] |
| 534 | exact hmetric ⟨s, hsT⟩ x v w |
| 535 | |
| 536 | /-- The recovered metric equation has exactly the existing producer's RHS. -/ |
| 537 | theorem recoveredMetric_deTurckEquation (hT1 : T ≤ 1) |
| 538 | (hfix : A.spatialResidual.forcingResidual hT F = F) (hsmall : 2 * ‖F‖ ≤ A.radius) |
| 539 | (g : ℝ → RiemannianMetric n M) |
| 540 | (hmetric : ∀ (t : Icc (0 : ℝ) T) (x : M) (v w : TangentSpace (𝓡 n) x), |
| 541 | (g t).inner x v w = g0.inner x v w + h t x v w) |
| 542 | {t : ℝ} (ht : t ∈ Ico (0 : ℝ) T) (x : M) (v w : TangentSpace (𝓡 n) x) : |
| 543 | HasDerivWithinAt (fun s => (g s).inner x v w) |
| 544 | (MetricFamilyProducerNative.deTurckRHS g0 (g t) x v w) (Ico (0 : ℝ) T) t := by |
| 545 | have hd := recoveredMetric_hasDerivWithinAt d L r p hpr hp hT F hspatial A hT1 |
| 546 | hfix hsmall g hmetric (Ico_subset_Icc_self ht) |
| 547 | (MetricFamilyProducerNative.connection (g t)) |
| 548 | (MetricFamilyProducerNative.connection g0) x v w |
| 549 | rw [smoothRicciDeTurckTensor_apply] at hd |
| 550 | exact hd.mono Ico_subset_Icc_self |
| 551 | |
| 552 | end RecoveredPDE |
| 553 | |
| 554 | end PoincareMT.DeTurckIntegralPDENative |
| 555 | |
| 556 | end |