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 | /- |
| 2 | Provenance and modification notice (recorded 2026-09-29). |
| 3 | Notices for the adapted portions: |
| 4 | Copyright 2026 The DifferentialGeometry contributors |
| 5 | Source: https://github.com/qinz1yang/differential-geometry |
| 6 | DifferentialGeometry/Geometry/Flow/RicciFlow/ShortTime/LowRegularity/GaugeRemoval.lean |
| 7 | Comparison revision: 1b535dd102b94cc42b107cca27059687888f08b3. |
| 8 | Changes: The tangent-section negation helper is specialized to the Euclidean model, renamed, and exposed for local use. |
| 9 | License: Apache-2.0. Source licenses and notices are retained under |
| 10 | PoincareConjecture/provenance/2026-09-29/licenses/. |
| 11 | See PoincareConjecture/MODIFICATIONS.md for the reviewed source mapping. |
| 12 | -/ |
| 13 | |
| 14 | /- Adapted from Mapher `PoincareMT/Proofs/M03/Existence/TimeDependentConjugatingFlowNative.lean` at |
| 15 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 16 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 17 | |
| 18 | import PoincareLib.Geometry.RicciFlow.Local.Gauge.Flow.ConjugatingFlowFamily |
| 19 | import PoincareLib.Geometry.RicciFlow.Local.DeTurck.Construction.FrameDeTurckDerivative |
| 20 | import Mathlib.Geometry.Manifold.VectorBundle.ContMDiffSection |
| 21 | import Mathlib.Geometry.Manifold.ContMDiffMFDeriv |
| 22 | import Mathlib.Geometry.Manifold.VectorBundle.Tangent |
| 23 | import Mathlib.Geometry.Manifold.IntegralCurve.ExistUnique |
| 24 | import Mathlib.Geometry.Manifold.IntegralCurve.Transform |
| 25 | |
| 26 | /-! |
| 27 | # Time-dependent conjugating flow adapter |
| 28 | |
| 29 | The time-dependent ODE producer supplies jointly smooth forward and reverse |
| 30 | maps, their inverse identities, and the time derivative of the forward map. |
| 31 | This file packages those supplied maps as the retained `Diffeomorph` family |
| 32 | and exposes the corrected generator sign `-W`. It does not construct the ODE |
| 33 | solution or introduce a second gauge-certificate interface. |
| 34 | -/ |
| 35 | |
| 36 | set_option autoImplicit false |
| 37 | |
| 38 | open scoped Manifold ContDiff Bundle Topology |
| 39 | |
| 40 | noncomputable section |
| 41 | |
| 42 | universe u |
| 43 | |
| 44 | namespace PoincareMT.TimeDependentConjugatingFlowNative |
| 45 | |
| 46 | variable {n : ℕ} {M : Type u} |
| 47 | [TopologicalSpace M] |
| 48 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 49 | [IsManifold (𝓡 n) ∞ M] |
| 50 | |
| 51 | local notation "I" => 𝓡 n |
| 52 | local notation "E" => EuclideanSpace ℝ (Fin n) |
| 53 | |
| 54 | /- The time-dependent ODE uses the negated tangent-bundle section. The |
| 55 | section negation is a fiberwise linear operation, so this proof only needs |
| 56 | the local trivialization at the base point; it does not assume a global |
| 57 | trivialization of the tangent bundle. -/ |
| 58 | theorem contMDiffWithinAt_neg_tangentBundleSection |
| 59 | {X : ℝ → ∀ x : M, TangentSpace I x} |
| 60 | {u : Set (ℝ × M)} {q₀ : ℝ × M} |
| 61 | (hX : ContMDiffWithinAt (𝓘(ℝ, ℝ).prod (𝓡 n)) ((𝓡 n).prod 𝓘(ℝ, E)) ∞ |
| 62 | (fun q : ℝ × M => |
| 63 | (Bundle.TotalSpace.mk' E q.2 (X q.1 q.2) : TangentBundle I M)) u q₀) : |
| 64 | ContMDiffWithinAt (𝓘(ℝ, ℝ).prod (𝓡 n)) ((𝓡 n).prod 𝓘(ℝ, E)) ∞ |
| 65 | (fun q : ℝ × M => |
| 66 | (Bundle.TotalSpace.mk' E q.2 (-(X q.1 q.2)) : TangentBundle I M)) u q₀ := by |
| 67 | rw [Bundle.contMDiffWithinAt_totalSpace] at hX ⊢ |
| 68 | obtain ⟨hXproj, hXfib⟩ := hX |
| 69 | refine ⟨hXproj, ?_⟩ |
| 70 | let e := trivializationAt E (TangentSpace I) q₀.2 |
| 71 | have hfib := hXfib.neg |
| 72 | have hbase : ContinuousWithinAt (fun q : ℝ × M => q.2) u q₀ := |
| 73 | continuous_snd.continuousWithinAt |
| 74 | have hmem : e.baseSet ∈ 𝓝 (q₀.2) := |
| 75 | e.open_baseSet.mem_nhds (FiberBundle.mem_baseSet_trivializationAt' q₀.2) |
| 76 | have hpre : (fun q : ℝ × M => q.2) ⁻¹' e.baseSet ∈ 𝓝[u] q₀ := hbase hmem |
| 77 | refine hfib.congr_of_eventuallyEq ?_ ?_ |
| 78 | · filter_upwards [hpre] with q hq |
| 79 | simpa using (e.linear ℝ hq).map_neg (X q.1 q.2) |
| 80 | · simpa using |
| 81 | (e.linear ℝ (FiberBundle.mem_baseSet_trivializationAt' q₀.2)).map_neg |
| 82 | (X q₀.1 q₀.2) |
| 83 | |
| 84 | theorem contMDiff_neg_tangentBundleSection |
| 85 | {X : ℝ → ∀ x : M, TangentSpace I x} |
| 86 | (hX : ContMDiff (𝓘(ℝ, ℝ).prod (𝓡 n)) ((𝓡 n).prod 𝓘(ℝ, E)) ∞ |
| 87 | (fun q : ℝ × M => |
| 88 | (Bundle.TotalSpace.mk' E q.2 (X q.1 q.2) : TangentBundle I M))) : |
| 89 | ContMDiff (𝓘(ℝ, ℝ).prod (𝓡 n)) ((𝓡 n).prod 𝓘(ℝ, E)) ∞ |
| 90 | (fun q : ℝ × M => |
| 91 | (Bundle.TotalSpace.mk' E q.2 (-(X q.1 q.2)) : TangentBundle I M)) := by |
| 92 | intro q |
| 93 | exact contMDiffWithinAt_neg_tangentBundleSection |
| 94 | (u := Set.univ) (q₀ := q) (hX q).contMDiffWithinAt |
| 95 | |
| 96 | theorem contMDiffWithinAt_neg_intrinsicDeTurckField |
| 97 | {g : ℝ → RiemannianMetric n M} {background : RiemannianMetric n M} |
| 98 | (D : ∀ t : ℝ, LeviCivitaData (g t)) |
| 99 | (B : LeviCivitaData background) |
| 100 | {u : Set (ℝ × M)} {q₀ : ℝ × M} |
| 101 | (hW : ContMDiffWithinAt (𝓘(ℝ, ℝ).prod (𝓡 n)) ((𝓡 n).prod 𝓘(ℝ, E)) ∞ |
| 102 | (fun q : ℝ × M => |
| 103 | (Bundle.TotalSpace.mk' E q.2 |
| 104 | (DeTurckNative.intrinsicDeTurckField (D q.1) B q.2) : |
| 105 | TangentBundle (𝓡 n) M)) u q₀) : |
| 106 | ContMDiffWithinAt (𝓘(ℝ, ℝ).prod (𝓡 n)) ((𝓡 n).prod 𝓘(ℝ, E)) ∞ |
| 107 | (fun q : ℝ × M => |
| 108 | (Bundle.TotalSpace.mk' E q.2 |
| 109 | (-(DeTurckNative.intrinsicDeTurckField (D q.1) B q.2)) : |
| 110 | TangentBundle (𝓡 n) M)) u q₀ := |
| 111 | contMDiffWithinAt_neg_tangentBundleSection |
| 112 | (n := n) |
| 113 | (X := fun t x => DeTurckNative.intrinsicDeTurckField (D t) B x) hW |
| 114 | |
| 115 | theorem contMDiff_neg_intrinsicDeTurckField |
| 116 | {g : ℝ → RiemannianMetric n M} {background : RiemannianMetric n M} |
| 117 | (D : ∀ t : ℝ, LeviCivitaData (g t)) |
| 118 | (B : LeviCivitaData background) |
| 119 | (hW : ContMDiff (𝓘(ℝ, ℝ).prod (𝓡 n)) ((𝓡 n).prod 𝓘(ℝ, E)) ∞ |
| 120 | (fun q : ℝ × M => |
| 121 | (Bundle.TotalSpace.mk' E q.2 |
| 122 | (DeTurckNative.intrinsicDeTurckField (D q.1) B q.2) : |
| 123 | TangentBundle (𝓡 n) M))) : |
| 124 | ContMDiff (𝓘(ℝ, ℝ).prod (𝓡 n)) ((𝓡 n).prod 𝓘(ℝ, E)) ∞ |
| 125 | (fun q : ℝ × M => |
| 126 | (Bundle.TotalSpace.mk' E q.2 |
| 127 | (-(DeTurckNative.intrinsicDeTurckField (D q.1) B q.2)) : |
| 128 | TangentBundle (𝓡 n) M)) := |
| 129 | contMDiff_neg_tangentBundleSection |
| 130 | (n := n) |
| 131 | (X := fun t x => DeTurckNative.intrinsicDeTurckField (D t) B x) hW |
| 132 | |
| 133 | namespace TimeDependentFlowNative |
| 134 | |
| 135 | structure SmoothTimeDependentVectorField where |
| 136 | toFun : (q : M × ℝ) → TangentSpace I q.1 |
| 137 | smooth : ContMDiff ((𝓡 n).prod 𝓘(ℝ, ℝ)) ((𝓡 n).prod 𝓘(ℝ, E)) ∞ |
| 138 | (fun q : M × ℝ => |
| 139 | (Bundle.TotalSpace.mk' E q.1 (toFun q) : TangentBundle I M)) |
| 140 | suspension : (q : M × ℝ) → |
| 141 | TangentSpace ((𝓡 n).prod 𝓘(ℝ, ℝ)) q |
| 142 | suspension_eq : ∀ q, |
| 143 | suspension q = |
| 144 | ((equivTangentBundleProd I M 𝓘(ℝ, ℝ) ℝ).symm |
| 145 | ((Bundle.TotalSpace.mk' E q.1 (toFun q) : TangentBundle I M), |
| 146 | (Bundle.TotalSpace.mk' ℝ q.2 (1 : ℝ) : |
| 147 | TangentBundle 𝓘(ℝ, ℝ) ℝ))).2 |
| 148 | suspension_smooth : ContMDiff ((𝓡 n).prod 𝓘(ℝ, ℝ)) |
| 149 | (((𝓡 n).prod 𝓘(ℝ, ℝ)).prod 𝓘(ℝ, E × ℝ)) ∞ |
| 150 | (fun q : M × ℝ => |
| 151 | (Bundle.TotalSpace.mk' (E × ℝ) q (suspension q) : |
| 152 | TangentBundle ((𝓡 n).prod 𝓘(ℝ, ℝ)) (M × ℝ))) |
| 153 | |
| 154 | instance : CoeFun (SmoothTimeDependentVectorField (n := n) (M := M)) |
| 155 | (fun _ => (q : M × ℝ) → TangentSpace I q.1) := |
| 156 | ⟨SmoothTimeDependentVectorField.toFun⟩ |
| 157 | |
| 158 | noncomputable def SmoothTimeDependentVectorField.ofSection |
| 159 | (X : (q : M × ℝ) → TangentSpace I q.1) |
| 160 | (hX : ContMDiff ((𝓡 n).prod 𝓘(ℝ, ℝ)) ((𝓡 n).prod 𝓘(ℝ, E)) ∞ |
| 161 | (fun q : M × ℝ => |
| 162 | (Bundle.TotalSpace.mk' E q.1 (X q) : TangentBundle I M))) : |
| 163 | SmoothTimeDependentVectorField (n := n) (M := M) where |
| 164 | toFun := X |
| 165 | smooth := hX |
| 166 | suspension := fun q => |
| 167 | ((equivTangentBundleProd I M 𝓘(ℝ, ℝ) ℝ).symm |
| 168 | ((Bundle.TotalSpace.mk' E q.1 (X q) : TangentBundle I M), |
| 169 | (Bundle.TotalSpace.mk' ℝ q.2 (1 : ℝ) : |
| 170 | TangentBundle 𝓘(ℝ, ℝ) ℝ))).2 |
| 171 | suspension_eq := by intro q; rfl |
| 172 | suspension_smooth := by |
| 173 | have hone : ContMDiff 𝓘(ℝ, ℝ) (𝓘(ℝ, ℝ).prod 𝓘(ℝ, ℝ)) ∞ |
| 174 | (fun s : ℝ => |
| 175 | (Bundle.TotalSpace.mk' ℝ s (1 : ℝ) : TangentBundle 𝓘(ℝ, ℝ) ℝ)) := by |
| 176 | intro s |
| 177 | apply (contMDiffAt_vectorSpace_iff_contDiffAt |
| 178 | (V := fun _ : ℝ => ((1 : ℝ) : TangentSpace 𝓘(ℝ, ℝ) s))).2 |
| 179 | exact contDiffAt_const |
| 180 | have htime : ContMDiff ((𝓡 n).prod 𝓘(ℝ, ℝ)) |
| 181 | (𝓘(ℝ, ℝ).prod 𝓘(ℝ, ℝ)) ∞ |
| 182 | (fun q : M × ℝ => |
| 183 | (Bundle.TotalSpace.mk' ℝ q.2 (1 : ℝ) : |
| 184 | TangentBundle 𝓘(ℝ, ℝ) ℝ)) := by |
| 185 | exact hone.comp contMDiff_snd |
| 186 | have hpair : ContMDiff ((𝓡 n).prod 𝓘(ℝ, ℝ)) |
| 187 | (((𝓡 n).prod 𝓘(ℝ, E)).prod (𝓘(ℝ, ℝ).prod 𝓘(ℝ, ℝ))) ∞ |
| 188 | (fun q : M × ℝ => |
| 189 | ((Bundle.TotalSpace.mk' E q.1 (X q) : TangentBundle I M), |
| 190 | (Bundle.TotalSpace.mk' ℝ q.2 (1 : ℝ) : |
| 191 | TangentBundle 𝓘(ℝ, ℝ) ℝ))) := by |
| 192 | exact hX.prodMk htime |
| 193 | have hsymm : ContMDiff |
| 194 | (((𝓡 n).prod 𝓘(ℝ, E)).prod (𝓘(ℝ, ℝ).prod 𝓘(ℝ, ℝ))) |
| 195 | (((𝓡 n).prod 𝓘(ℝ, ℝ)).prod 𝓘(ℝ, E × ℝ)) ∞ |
| 196 | ((equivTangentBundleProd I M 𝓘(ℝ, ℝ) ℝ).symm) := |
| 197 | contMDiff_equivTangentBundleProd_symm |
| 198 | exact hsymm.comp hpair |
| 199 | |
| 200 | end TimeDependentFlowNative |
| 201 | |
| 202 | namespace TimeDependentFlowNative |
| 203 | |
| 204 | variable [T2Space M] |
| 205 | |
| 206 | /- A suspended integral flow is the native form of a time-dependent flow. The |
| 207 | global-flow witness is kept explicit: its integral curves and joint |
| 208 | smoothness are the analytic obligations, while the laws below are proved |
| 209 | from manifold integral-curve uniqueness. -/ |
| 210 | structure GlobalTimeDependentFlow |
| 211 | (V : SmoothTimeDependentVectorField (n := n) (M := M)) where |
| 212 | Φ : (M × ℝ) → ℝ → (M × ℝ) |
| 213 | apply_zero : ∀ z : M × ℝ, Φ z 0 = z |
| 214 | integral_curve : ∀ z : M × ℝ, |
| 215 | IsMIntegralCurve (Φ z) V.suspension |
| 216 | time_coord : ∀ (z : M × ℝ) (s : ℝ), |
| 217 | (Φ z s).2 = z.2 + s |
| 218 | joint_smooth : ContMDiff |
| 219 | (((𝓡 n).prod 𝓘(ℝ, ℝ)).prod 𝓘(ℝ, ℝ)) |
| 220 | ((𝓡 n).prod 𝓘(ℝ, ℝ)) ∞ |
| 221 | (fun z : (M × ℝ) × ℝ => Φ z.1 z.2) |
| 222 | |
| 223 | namespace GlobalTimeDependentFlow |
| 224 | |
| 225 | variable {V : SmoothTimeDependentVectorField (n := n) (M := M)} |
| 226 | |
| 227 | def spatialFlow (G : GlobalTimeDependentFlow V) (t₀ : ℝ) : M → ℝ → M := |
| 228 | fun p s => (G.Φ (p, t₀) s).1 |
| 229 | |
| 230 | theorem trajectory_add (G : GlobalTimeDependentFlow V) (z : M × ℝ) |
| 231 | (s u : ℝ) : |
| 232 | G.Φ (G.Φ z s) u = G.Φ z (s + u) := by |
| 233 | have hV : ContMDiff ((𝓡 n).prod 𝓘(ℝ, ℝ)) |
| 234 | (((𝓡 n).prod 𝓘(ℝ, ℝ)).prod 𝓘(ℝ, E × ℝ)) 1 |
| 235 | (fun q : M × ℝ => |
| 236 | (Bundle.TotalSpace.mk' (E × ℝ) q (V.suspension q) : |
| 237 | TangentBundle ((𝓡 n).prod 𝓘(ℝ, ℝ)) (M × ℝ))) := |
| 238 | V.suspension_smooth.of_le (by norm_num) |
| 239 | have hcurve : IsMIntegralCurve (G.Φ z) V.suspension := |
| 240 | G.integral_curve z |
| 241 | have hcurve' : IsMIntegralCurve (G.Φ (G.Φ z s)) V.suspension := |
| 242 | G.integral_curve (G.Φ z s) |
| 243 | have hshift : IsMIntegralCurve ((G.Φ z) ∘ (· + s)) V.suspension := |
| 244 | hcurve.comp_add s |
| 245 | have hzero : ((G.Φ z) ∘ (· + s)) 0 = (G.Φ (G.Φ z s)) 0 := by |
| 246 | simp [Function.comp_apply, G.apply_zero] |
| 247 | have heq := isMIntegralCurve_Ioo_eq_of_contMDiff_boundaryless |
| 248 | (t₀ := (0 : ℝ)) hV hshift hcurve' hzero |
| 249 | simpa [Function.comp_apply, add_comm] using (congrFun heq u).symm |
| 250 | |
| 251 | theorem trajectory_eq_spatialFlow_prod_time |
| 252 | (G : GlobalTimeDependentFlow V) (t₀ : ℝ) (p : M) (s : ℝ) : |
| 253 | G.Φ (p, t₀) s = (G.spatialFlow t₀ p s, t₀ + s) := by |
| 254 | apply Prod.ext |
| 255 | · rfl |
| 256 | · exact G.time_coord (p, t₀) s |
| 257 | |
| 258 | theorem spatialFlow_comp |
| 259 | (G : GlobalTimeDependentFlow V) (t₀ : ℝ) (p : M) (s u : ℝ) : |
| 260 | G.spatialFlow (t₀ + s) (G.spatialFlow t₀ p s) u = |
| 261 | G.spatialFlow t₀ p (s + u) := by |
| 262 | have h := G.trajectory_add (p, t₀) s u |
| 263 | rw [G.trajectory_eq_spatialFlow_prod_time t₀ p s] at h |
| 264 | simpa [spatialFlow] using congrArg Prod.fst h |
| 265 | |
| 266 | @[simp] theorem spatialFlow_zero |
| 267 | (G : GlobalTimeDependentFlow V) (t₀ : ℝ) (p : M) : |
| 268 | G.spatialFlow t₀ p 0 = p := by |
| 269 | change (G.Φ (p, t₀) 0).1 = p |
| 270 | rw [G.apply_zero] |
| 271 | |
| 272 | theorem spatialFlow_comp_inverse_left |
| 273 | (G : GlobalTimeDependentFlow V) (t₀ : ℝ) (p : M) (s : ℝ) : |
| 274 | G.spatialFlow (t₀ + s) (G.spatialFlow t₀ p s) (-s) = p := by |
| 275 | rw [G.spatialFlow_comp t₀ p s (-s)] |
| 276 | simp |
| 277 | |
| 278 | theorem spatialFlow_comp_inverse_right |
| 279 | (G : GlobalTimeDependentFlow V) (t₀ : ℝ) (p : M) (s : ℝ) : |
| 280 | G.spatialFlow t₀ (G.spatialFlow (t₀ + s) p (-s)) s = p := by |
| 281 | have h := G.spatialFlow_comp_inverse_left (t₀ + s) p (-s) |
| 282 | simpa [add_assoc, add_comm, add_left_comm] using h |
| 283 | |
| 284 | theorem spatialFlow_bijective |
| 285 | (G : GlobalTimeDependentFlow V) (t₀ s : ℝ) : |
| 286 | Function.Bijective (fun p : M => G.spatialFlow t₀ p s) := by |
| 287 | constructor |
| 288 | · intro p q hpq |
| 289 | calc |
| 290 | p = G.spatialFlow (t₀ + s) |
| 291 | (G.spatialFlow t₀ p s) (-s) := |
| 292 | (G.spatialFlow_comp_inverse_left t₀ p s).symm |
| 293 | _ = G.spatialFlow (t₀ + s) |
| 294 | (G.spatialFlow t₀ q s) (-s) := |
| 295 | congrArg (fun r : M => G.spatialFlow (t₀ + s) r (-s)) hpq |
| 296 | _ = q := G.spatialFlow_comp_inverse_left t₀ q s |
| 297 | · intro q |
| 298 | refine ⟨G.spatialFlow (t₀ + s) q (-s), ?_⟩ |
| 299 | exact G.spatialFlow_comp_inverse_right t₀ q s |
| 300 | |
| 301 | theorem contMDiff_spatialFlow_fixed |
| 302 | (G : GlobalTimeDependentFlow V) (t₀ s : ℝ) : |
| 303 | ContMDiff (𝓡 n) (𝓡 n) ∞ (fun p : M => G.spatialFlow t₀ p s) := by |
| 304 | let A : M → (M × ℝ) × ℝ := fun p => ((p, t₀), s) |
| 305 | have hA : ContMDiff (𝓡 n) |
| 306 | (((𝓡 n).prod 𝓘(ℝ, ℝ)).prod 𝓘(ℝ, ℝ)) ∞ A := by |
| 307 | exact (contMDiff_id.prodMk contMDiff_const).prodMk contMDiff_const |
| 308 | have hcomp := G.joint_smooth.comp hA |
| 309 | simpa [A, spatialFlow] using hcomp.fst |
| 310 | |
| 311 | theorem spatialFlow_hasMFDerivAt |
| 312 | (G : GlobalTimeDependentFlow V) (x : M) (t : ℝ) : |
| 313 | HasMFDerivAt 𝓘(ℝ, ℝ) (𝓡 n) |
| 314 | (fun s : ℝ => G.spatialFlow 0 x s) t |
| 315 | ((1 : ℝ →L[ℝ] ℝ).smulRight |
| 316 | (V (G.spatialFlow 0 x t, t))) := by |
| 317 | have hcurve := G.integral_curve (x, 0) |
| 318 | have hproj := (hasMFDerivAt_fst (G.Φ (x, 0) t)).comp t (hcurve t) |
| 319 | change HasMFDerivAt 𝓘(ℝ, ℝ) (𝓡 n) |
| 320 | (Prod.fst ∘ (G.Φ (x, 0))) t _ |
| 321 | have hD : (ContinuousLinearMap.smulRight (1 : ℝ →L[ℝ] ℝ) |
| 322 | (V.toFun (G.spatialFlow 0 x t, t))) = |
| 323 | (ContinuousLinearMap.fst ℝ (TangentSpace (𝓡 n) (G.Φ (x, 0) t).1) |
| 324 | (TangentSpace 𝓘(ℝ, ℝ) (G.Φ (x, 0) t).2)) ∘SL |
| 325 | (ContinuousLinearMap.smulRight (1 : ℝ →L[ℝ] ℝ) |
| 326 | (V.suspension (G.Φ (x, 0) t))) := by |
| 327 | apply ContinuousLinearMap.ext |
| 328 | intro r |
| 329 | change (r : ℝ) • V.toFun (G.spatialFlow 0 x t, t) = |
| 330 | (ContinuousLinearMap.fst ℝ _ _) |
| 331 | (r • V.suspension (G.Φ (x, 0) t)) |
| 332 | rw [V.suspension_eq] |
| 333 | rw [equivTangentBundleProd_symm_apply_snd] |
| 334 | change r • V.toFun (G.spatialFlow 0 x t, t) = |
| 335 | (r • (V.toFun (G.Φ (x, 0) t), (1 : ℝ))).1 |
| 336 | rw [Prod.smul_fst] |
| 337 | change r • V.toFun ((G.Φ (x, 0) t).1, t) = |
| 338 | r • V.toFun ((G.Φ (x, 0) t).1, (G.Φ (x, 0) t).2) |
| 339 | rw [show (G.Φ (x, 0) t).2 = t by simpa using G.time_coord (x, 0) t] |
| 340 | rw [hD] |
| 341 | exact hproj |
| 342 | |
| 343 | def forwardMap (G : GlobalTimeDependentFlow V) : ℝ → M → M := |
| 344 | fun t x => G.spatialFlow 0 x t |
| 345 | |
| 346 | def reverseMap (G : GlobalTimeDependentFlow V) : ℝ → M → M := |
| 347 | fun t x => G.spatialFlow t x (-t) |
| 348 | |
| 349 | theorem contMDiff_forwardMap (G : GlobalTimeDependentFlow V) : |
| 350 | ContMDiff (𝓘(ℝ, ℝ).prod (𝓡 n)) (𝓡 n) ∞ |
| 351 | (fun p : ℝ × M => G.forwardMap p.1 p.2) := by |
| 352 | let A : ℝ × M → (M × ℝ) × ℝ := fun p => ((p.2, 0), p.1) |
| 353 | have hA : ContMDiff (𝓘(ℝ, ℝ).prod (𝓡 n)) |
| 354 | (((𝓡 n).prod 𝓘(ℝ, ℝ)).prod 𝓘(ℝ, ℝ)) ∞ A := by |
| 355 | exact (contMDiff_snd.prodMk contMDiff_const).prodMk contMDiff_fst |
| 356 | have hcomp := G.joint_smooth.comp hA |
| 357 | simpa [A, forwardMap, spatialFlow] using hcomp.fst |
| 358 | |
| 359 | theorem contMDiff_reverseMap (G : GlobalTimeDependentFlow V) : |
| 360 | ContMDiff (𝓘(ℝ, ℝ).prod (𝓡 n)) (𝓡 n) ∞ |
| 361 | (fun p : ℝ × M => G.reverseMap p.1 p.2) := by |
| 362 | let hneg : ContMDiff (𝓘(ℝ, ℝ)) (𝓘(ℝ, ℝ)) ∞ |
| 363 | (fun t : ℝ => -t) := contDiff_neg.contMDiff |
| 364 | let A : ℝ × M → (M × ℝ) × ℝ := fun p => ((p.2, p.1), -p.1) |
| 365 | have hA : ContMDiff (𝓘(ℝ, ℝ).prod (𝓡 n)) |
| 366 | (((𝓡 n).prod 𝓘(ℝ, ℝ)).prod 𝓘(ℝ, ℝ)) ∞ A := by |
| 367 | exact (contMDiff_snd.prodMk contMDiff_fst).prodMk |
| 368 | (hneg.comp contMDiff_fst) |
| 369 | have hcomp := G.joint_smooth.comp hA |
| 370 | simpa [A, reverseMap, spatialFlow] using hcomp.fst |
| 371 | |
| 372 | theorem reverseMap_forwardMap (G : GlobalTimeDependentFlow V) (t : ℝ) (x : M) : |
| 373 | G.reverseMap t (G.forwardMap t x) = x := by |
| 374 | change G.spatialFlow t (G.spatialFlow 0 x t) (-t) = x |
| 375 | simpa using G.spatialFlow_comp_inverse_left 0 x t |
| 376 | |
| 377 | theorem forwardMap_reverseMap (G : GlobalTimeDependentFlow V) (t : ℝ) (x : M) : |
| 378 | G.forwardMap t (G.reverseMap t x) = x := by |
| 379 | change G.spatialFlow 0 (G.spatialFlow t x (-t)) t = x |
| 380 | simpa using G.spatialFlow_comp_inverse_right 0 x t |
| 381 | |
| 382 | noncomputable def diffeomorphFamily |
| 383 | (G : GlobalTimeDependentFlow V) : ℝ → Diffeomorph (𝓡 n) (𝓡 n) M M ∞ := |
| 384 | PoincareMT.ConjugatingFlowNative.diffeomorphFamily |
| 385 | G.contMDiff_forwardMap G.contMDiff_reverseMap |
| 386 | (fun t x => G.reverseMap_forwardMap t x) |
| 387 | (fun t x => G.forwardMap_reverseMap t x) |
| 388 | |
| 389 | @[simp] theorem diffeomorphFamily_apply |
| 390 | (G : GlobalTimeDependentFlow V) (t : ℝ) (x : M) : |
| 391 | G.diffeomorphFamily t x = G.forwardMap t x := rfl |
| 392 | |
| 393 | @[simp] theorem diffeomorphFamily_symm_apply |
| 394 | (G : GlobalTimeDependentFlow V) (t : ℝ) (x : M) : |
| 395 | (G.diffeomorphFamily t).symm x = G.reverseMap t x := rfl |
| 396 | |
| 397 | theorem diffeomorphFamily_zero |
| 398 | (G : GlobalTimeDependentFlow V) : |
| 399 | G.diffeomorphFamily 0 = Diffeomorph.refl (𝓡 n) M ∞ := by |
| 400 | apply Diffeomorph.ext |
| 401 | intro x |
| 402 | change G.spatialFlow 0 x 0 = x |
| 403 | simp |
| 404 | |
| 405 | theorem diffeomorphFamily_hasMFDerivAt |
| 406 | (G : GlobalTimeDependentFlow V) (t : ℝ) (x : M) : |
| 407 | HasMFDerivAt 𝓘(ℝ, ℝ) (𝓡 n) |
| 408 | (fun s : ℝ => G.diffeomorphFamily s x) t |
| 409 | ((1 : ℝ →L[ℝ] ℝ).smulRight |
| 410 | (V (G.diffeomorphFamily t x, t))) := by |
| 411 | change HasMFDerivAt 𝓘(ℝ, ℝ) (𝓡 n) |
| 412 | (fun s : ℝ => G.forwardMap s x) t _ |
| 413 | change HasMFDerivAt 𝓘(ℝ, ℝ) (𝓡 n) |
| 414 | (fun s : ℝ => G.spatialFlow 0 x s) t _ |
| 415 | exact G.spatialFlow_hasMFDerivAt x t |
| 416 | |
| 417 | noncomputable def spatialDiffeomorph |
| 418 | (G : GlobalTimeDependentFlow V) (t₀ s : ℝ) : |
| 419 | Diffeomorph (𝓡 n) (𝓡 n) M M ∞ := |
| 420 | { toEquiv := |
| 421 | { toFun := fun p : M => G.spatialFlow t₀ p s |
| 422 | invFun := fun p : M => G.spatialFlow (t₀ + s) p (-s) |
| 423 | left_inv := fun p => G.spatialFlow_comp_inverse_left t₀ p s |
| 424 | right_inv := fun p => G.spatialFlow_comp_inverse_right t₀ p s } |
| 425 | contMDiff_toFun := G.contMDiff_spatialFlow_fixed t₀ s |
| 426 | contMDiff_invFun := by |
| 427 | simpa using G.contMDiff_spatialFlow_fixed (t₀ + s) (-s) } |
| 428 | |
| 429 | @[simp] theorem spatialDiffeomorph_apply |
| 430 | (G : GlobalTimeDependentFlow V) (t₀ s : ℝ) (p : M) : |
| 431 | G.spatialDiffeomorph t₀ s p = G.spatialFlow t₀ p s := rfl |
| 432 | |
| 433 | @[simp] theorem spatialDiffeomorph_symm_apply |
| 434 | (G : GlobalTimeDependentFlow V) (t₀ s : ℝ) (p : M) : |
| 435 | (G.spatialDiffeomorph t₀ s).symm p = |
| 436 | G.spatialFlow (t₀ + s) p (-s) := rfl |
| 437 | |
| 438 | end GlobalTimeDependentFlow |
| 439 | |
| 440 | end TimeDependentFlowNative |
| 441 | |
| 442 | variable {Φ Ψ : ℝ → M → M} |
| 443 | |
| 444 | /-- A supplied smooth forward/reverse flow with inverse identities, retained as |
| 445 | the time-dependent conjugating diffeomorphism family. -/ |
| 446 | noncomputable def family |
| 447 | (hΦ : ContMDiff (𝓘(ℝ, ℝ).prod I) I ∞ |
| 448 | (fun p : ℝ × M => Φ p.1 p.2)) |
| 449 | (hΨ : ContMDiff (𝓘(ℝ, ℝ).prod I) I ∞ |
| 450 | (fun p : ℝ × M => Ψ p.1 p.2)) |
| 451 | (hΨΦ : ∀ (t : ℝ) (x : M), Ψ t (Φ t x) = x) |
| 452 | (hΦΨ : ∀ (t : ℝ) (x : M), Φ t (Ψ t x) = x) : |
| 453 | ℝ → Diffeomorph I I M M ∞ := |
| 454 | PoincareMT.ConjugatingFlowNative.diffeomorphFamily hΦ hΨ hΨΦ hΦΨ |
| 455 | |
| 456 | @[simp] theorem family_apply |
| 457 | (hΦ : ContMDiff (𝓘(ℝ, ℝ).prod I) I ∞ |
| 458 | (fun p : ℝ × M => Φ p.1 p.2)) |
| 459 | (hΨ : ContMDiff (𝓘(ℝ, ℝ).prod I) I ∞ |
| 460 | (fun p : ℝ × M => Ψ p.1 p.2)) |
| 461 | (hΨΦ : ∀ (t : ℝ) (x : M), Ψ t (Φ t x) = x) |
| 462 | (hΦΨ : ∀ (t : ℝ) (x : M), Φ t (Ψ t x) = x) |
| 463 | (t : ℝ) (x : M) : |
| 464 | family hΦ hΨ hΨΦ hΦΨ t x = Φ t x := rfl |
| 465 | |
| 466 | @[simp] theorem family_symm_apply |
| 467 | (hΦ : ContMDiff (𝓘(ℝ, ℝ).prod I) I ∞ |
| 468 | (fun p : ℝ × M => Φ p.1 p.2)) |
| 469 | (hΨ : ContMDiff (𝓘(ℝ, ℝ).prod I) I ∞ |
| 470 | (fun p : ℝ × M => Ψ p.1 p.2)) |
| 471 | (hΨΦ : ∀ (t : ℝ) (x : M), Ψ t (Φ t x) = x) |
| 472 | (hΦΨ : ∀ (t : ℝ) (x : M), Φ t (Ψ t x) = x) |
| 473 | (t : ℝ) (x : M) : |
| 474 | (family hΦ hΨ hΨΦ hΦΨ t).symm x = Ψ t x := rfl |
| 475 | |
| 476 | theorem family_zero |
| 477 | (hΦ : ContMDiff (𝓘(ℝ, ℝ).prod I) I ∞ |
| 478 | (fun p : ℝ × M => Φ p.1 p.2)) |
| 479 | (hΨ : ContMDiff (𝓘(ℝ, ℝ).prod I) I ∞ |
| 480 | (fun p : ℝ × M => Ψ p.1 p.2)) |
| 481 | (hΨΦ : ∀ (t : ℝ) (x : M), Ψ t (Φ t x) = x) |
| 482 | (hΦΨ : ∀ (t : ℝ) (x : M), Φ t (Ψ t x) = x) |
| 483 | (h0 : ∀ x, Φ 0 x = x) : |
| 484 | family hΦ hΨ hΨΦ hΦΨ 0 = Diffeomorph.refl I M ∞ := by |
| 485 | exact PoincareMT.ConjugatingFlowNative.diffeomorphFamily_zero |
| 486 | hΦ hΨ hΨΦ hΦΨ h0 |
| 487 | |
| 488 | /-- The forward map in the retained family has the corrected negative-DeTurck |
| 489 | generator. The ODE producer supplies this manifold derivative as `hgen`. -/ |
| 490 | theorem family_hasMFDerivAt_negW |
| 491 | (W : (t : ℝ) → (x : M) → TangentSpace I x) |
| 492 | (hΦ : ContMDiff (𝓘(ℝ, ℝ).prod I) I ∞ |
| 493 | (fun p : ℝ × M => Φ p.1 p.2)) |
| 494 | (hΨ : ContMDiff (𝓘(ℝ, ℝ).prod I) I ∞ |
| 495 | (fun p : ℝ × M => Ψ p.1 p.2)) |
| 496 | (hΨΦ : ∀ (t : ℝ) (x : M), Ψ t (Φ t x) = x) |
| 497 | (hΦΨ : ∀ (t : ℝ) (x : M), Φ t (Ψ t x) = x) |
| 498 | (hgen : ∀ (t : ℝ) (x : M), |
| 499 | HasMFDerivAt 𝓘(ℝ, ℝ) I (fun s : ℝ => Φ s x) t |
| 500 | ((1 : ℝ →L[ℝ] ℝ).smulRight (- W t (Φ t x)))) |
| 501 | (t : ℝ) (x : M) : |
| 502 | HasMFDerivAt 𝓘(ℝ, ℝ) I |
| 503 | (fun s : ℝ => family hΦ hΨ hΨΦ hΦΨ s x) t |
| 504 | ((1 : ℝ →L[ℝ] ℝ).smulRight (- W t (family hΦ hΨ hΨΦ hΦΨ t x))) := by |
| 505 | change HasMFDerivAt 𝓘(ℝ, ℝ) I (fun s : ℝ => Φ s x) t |
| 506 | ((1 : ℝ →L[ℝ] ℝ).smulRight (- W t (Φ t x))) |
| 507 | exact hgen t x |
| 508 | |
| 509 | theorem family_hasMFDerivWithinAt_negW |
| 510 | (W : (t : ℝ) → (x : M) → TangentSpace I x) |
| 511 | (hΦ : ContMDiff (𝓘(ℝ, ℝ).prod I) I ∞ |
| 512 | (fun p : ℝ × M => Φ p.1 p.2)) |
| 513 | (hΨ : ContMDiff (𝓘(ℝ, ℝ).prod I) I ∞ |
| 514 | (fun p : ℝ × M => Ψ p.1 p.2)) |
| 515 | (hΨΦ : ∀ (t : ℝ) (x : M), Ψ t (Φ t x) = x) |
| 516 | (hΦΨ : ∀ (t : ℝ) (x : M), Φ t (Ψ t x) = x) |
| 517 | {J : Set ℝ} {t : ℝ} {x : M} |
| 518 | (hgen : HasMFDerivWithinAt 𝓘(ℝ, ℝ) I |
| 519 | (fun s : ℝ => Φ s x) J t |
| 520 | ((1 : ℝ →L[ℝ] ℝ).smulRight (- W t (Φ t x)))) : |
| 521 | HasMFDerivWithinAt 𝓘(ℝ, ℝ) I |
| 522 | (fun s : ℝ => family hΦ hΨ hΨΦ hΦΨ s x) J t |
| 523 | ((1 : ℝ →L[ℝ] ℝ).smulRight |
| 524 | (- W t (family hΦ hΨ hΨΦ hΦΨ t x))) := by |
| 525 | change HasMFDerivWithinAt 𝓘(ℝ, ℝ) I (fun s : ℝ => Φ s x) J t |
| 526 | ((1 : ℝ →L[ℝ] ℝ).smulRight (- W t (Φ t x))) |
| 527 | exact hgen |
| 528 | |
| 529 | end PoincareMT.TimeDependentConjugatingFlowNative |
| 530 | |
| 531 | end |