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 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Continuation.ContinuationLocalODE |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Regularity.EulerPathCharts |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Regularity.ChartEulerEquation |
| 4 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Variation.Extension.GlobalCurveExtension |
| 5 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Path.ReferenceEnergy |
| 6 | |
| 7 | /-! Adapted from Mapher `PoincareMT/Proofs/M08/ContinuationCurve.lean` at |
| 8 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. -/ |
| 9 | |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open Set Filter Topology |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.LGeometry |
| 22 | |
| 23 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 25 | |
| 26 | local instance continuationCurveDualGroup : NormedAddCommGroup (EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 27 | ContinuousLinearMap.toNormedAddCommGroup |
| 28 | local instance continuationCurveDualSpace : NormedSpace ℝ (EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 29 | ContinuousLinearMap.toNormedSpace |
| 30 | local instance continuationCurveBilinGroup : |
| 31 | NormedAddCommGroup (EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 32 | ContinuousLinearMap.toNormedAddCommGroup |
| 33 | local instance continuationCurveBilinSpace : |
| 34 | NormedSpace ℝ (EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 35 | ContinuousLinearMap.toNormedSpace |
| 36 | |
| 37 | def continuationCurvePhase {J : Set ℝ} (F : RicciFlow n M J) (T : ℝ) (x : M) |
| 38 | (α : ℝ → M) (s : ℝ) : EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n) := |
| 39 | let q := (extChartAt (𝓡 n) x) ∘ α |
| 40 | (q s, chartMetricOperator F T x (s, q s) (deriv q s)) |
| 41 | |
| 42 | theorem continuationCurvePhase_rhs {J : Set ℝ} (F : RicciFlow n M J) |
| 43 | (T : ℝ) (x : M) (α : ℝ → M) {s : ℝ} |
| 44 | (hx : α s ∈ (chartAt (EuclideanSpace ℝ (Fin n)) x).source) : |
| 45 | closedChartEulerPhase F T x univ s (continuationCurvePhase F T x α s) = |
| 46 | (deriv ((extChartAt (𝓡 n) x) ∘ α) s, |
| 47 | chartForceVector |
| 48 | (spatialFDeriv (chartActionMetric F T x) (s, extChartAt (𝓡 n) x (α s))) |
| 49 | (spatialFDeriv (chartActionPotential F T x) (s, extChartAt (𝓡 n) x (α s))) |
| 50 | (deriv ((extChartAt (𝓡 n) x) ∘ α) s)) := by |
| 51 | let q := (extChartAt (𝓡 n) x) ∘ α |
| 52 | have htarget : q s ∈ (extChartAt (𝓡 n) x).target := |
| 53 | (extChartAt (𝓡 n) x).map_source (by simpa only [extChartAt_source] using hx) |
| 54 | change closedChartEulerPhase F T x univ s |
| 55 | (q s, chartMetricOperator F T x (s, q s) (deriv q s)) = _ |
| 56 | dsimp only [closedChartEulerPhase] |
| 57 | rw [inverse_operator_apply _ (chartMetricOperator_isUnit_of_target F T x htarget)] |
| 58 | rw [spatialWithinFDeriv_eq_spatialFDeriv (isOpen_extChartAt_target (I := 𝓡 n) x) |
| 59 | _ univ_mem htarget, |
| 60 | spatialWithinFDeriv_eq_spatialFDeriv (isOpen_extChartAt_target (I := 𝓡 n) x) |
| 61 | _ univ_mem htarget] |
| 62 | rfl |
| 63 | |
| 64 | structure IsContinuationCurve {J : Set ℝ} (F : RicciFlow n M J) (T : ℝ) |
| 65 | (α : ℝ → M) (U : Set ℝ) : Prop where |
| 66 | smooth : ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 n) ∞ α U |
| 67 | phase : ∀ s ∈ U, ∀ x : M, |
| 68 | α s ∈ (chartAt (EuclideanSpace ℝ (Fin n)) x).source → |
| 69 | HasDerivAt (continuationCurvePhase F T x α) |
| 70 | (closedChartEulerPhase F T x univ s (continuationCurvePhase F T x α s)) s |
| 71 | |
| 72 | theorem IsContinuationCurve.mono {J : Set ℝ} {F : RicciFlow n M J} {T : ℝ} |
| 73 | {α : ℝ → M} {U V : Set ℝ} (hα : IsContinuationCurve F T α U) (hVU : V ⊆ U) : |
| 74 | IsContinuationCurve F T α V := |
| 75 | ⟨hα.smooth.mono hVU, fun s hs ↦ hα.phase s (hVU hs)⟩ |
| 76 | |
| 77 | theorem IsContinuationCurve.union {J : Set ℝ} {F : RicciFlow n M J} {T : ℝ} |
| 78 | {α : ℝ → M} {U V : Set ℝ} (hU : IsOpen U) (hV : IsOpen V) |
| 79 | (hαU : IsContinuationCurve F T α U) (hαV : IsContinuationCurve F T α V) : |
| 80 | IsContinuationCurve F T α (U ∪ V) := by |
| 81 | refine ⟨?_, ?_⟩ |
| 82 | · intro s hs |
| 83 | rcases hs with hs | hs |
| 84 | · exact ((hαU.smooth s hs).contMDiffAt (hU.mem_nhds hs)).contMDiffWithinAt |
| 85 | · exact ((hαV.smooth s hs).contMDiffAt (hV.mem_nhds hs)).contMDiffWithinAt |
| 86 | · intro s hs |
| 87 | rcases hs with hs | hs |
| 88 | · exact hαU.phase s hs |
| 89 | · exact hαV.phase s hs |
| 90 | |
| 91 | theorem continuationCurvePhase_eventuallyEq {J : Set ℝ} (F : RicciFlow n M J) |
| 92 | (T : ℝ) (x : M) {α β : ℝ → M} {s : ℝ} (h : α =ᶠ[𝓝 s] β) : |
| 93 | continuationCurvePhase F T x α =ᶠ[𝓝 s] continuationCurvePhase F T x β := by |
| 94 | have hq : (extChartAt (𝓡 n) x ∘ α) =ᶠ[𝓝 s] (extChartAt (𝓡 n) x ∘ β) := |
| 95 | h.fun_comp (extChartAt (𝓡 n) x) |
| 96 | filter_upwards [hq, hq.deriv] with r hr hdr |
| 97 | simp only [continuationCurvePhase, hr, hdr] |
| 98 | |
| 99 | theorem IsContinuationCurve.congr {J : Set ℝ} {F : RicciFlow n M J} {T : ℝ} |
| 100 | {α β : ℝ → M} {U : Set ℝ} (hU : IsOpen U) (hα : IsContinuationCurve F T α U) |
| 101 | (heq : EqOn β α U) : IsContinuationCurve F T β U := by |
| 102 | refine ⟨hα.smooth.congr heq, ?_⟩ |
| 103 | intro s hs x hx |
| 104 | have hnear : β =ᶠ[𝓝 s] α := Filter.eventuallyEq_of_mem (hU.mem_nhds hs) heq |
| 105 | have hp := continuationCurvePhase_eventuallyEq F T x hnear |
| 106 | have h := hα.phase s hs x (by simpa only [heq hs] using hx) |
| 107 | rw [← hp.self_of_nhds] at h |
| 108 | exact h.congr_of_eventuallyEq hp |
| 109 | |
| 110 | theorem continuationChartPhase_contDiffOn {J U : Set ℝ} (F : RicciFlow n M J) |
| 111 | (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) (x : M) (hU : IsOpen U) |
| 112 | (htime : ∀ s ∈ U, T - s ^ 2 ∈ J) : |
| 113 | ContDiffOn ℝ ∞ (Function.uncurry (closedChartEulerPhase F T x univ)) |
| 114 | (U ×ˢ ((extChartAt (𝓡 n) x).target ×ˢ univ)) := by |
| 115 | apply (closedChartEulerPhase_contDiffOn F hM04 T x hU.uniqueDiffOn htime).congr |
| 116 | intro z hz |
| 117 | unfold Function.uncurry closedChartEulerPhase |
| 118 | rw [spatialWithinFDeriv_eq_spatialFDeriv (isOpen_extChartAt_target (I := 𝓡 n) x) |
| 119 | _ univ_mem hz.2.1, |
| 120 | spatialWithinFDeriv_eq_spatialFDeriv (isOpen_extChartAt_target (I := 𝓡 n) x) |
| 121 | _ univ_mem hz.2.1, |
| 122 | spatialWithinFDeriv_eq_spatialFDeriv (isOpen_extChartAt_target (I := 𝓡 n) x) |
| 123 | _ (hU.mem_nhds hz.1) hz.2.1, |
| 124 | spatialWithinFDeriv_eq_spatialFDeriv (isOpen_extChartAt_target (I := 𝓡 n) x) |
| 125 | _ (hU.mem_nhds hz.1) hz.2.1] |
| 126 | |
| 127 | theorem closedChartEulerPhase_eq_univ {J C : Set ℝ} (F : RicciFlow n M J) |
| 128 | (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) (x : M) |
| 129 | (htime : ∀ s ∈ C, T - s ^ 2 ∈ J) {s : ℝ} (hs : s ∈ C) |
| 130 | (ht : T - s ^ 2 ∈ interior J) |
| 131 | (z : EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n)) |
| 132 | (hz : z.1 ∈ (extChartAt (𝓡 n) x).target) : |
| 133 | closedChartEulerPhase F T x C s z = closedChartEulerPhase F T x univ s z := by |
| 134 | have hG := (hasFDerivAt_spatialWithin (isOpen_extChartAt_target (I := 𝓡 n) x) |
| 135 | (chartActionMetric F T x) (chartActionMetric_closed_contDiffOn F T x htime) hs hz).unique |
| 136 | (hasFDerivAt_spatial (chartActionDomain_open F T x) _ |
| 137 | (chartActionMetric_contDiffOn F T x) ⟨ht, hz⟩) |
| 138 | have hV := (hasFDerivAt_spatialWithin (isOpen_extChartAt_target (I := 𝓡 n) x) |
| 139 | (chartActionPotential F T x) (chartActionPotential_closed_contDiffOn F hM04 T x htime) hs hz).unique |
| 140 | (hasFDerivAt_spatial (chartActionDomain_open F T x) _ |
| 141 | (chartActionPotential_contDiffOn F hM04 T x) ⟨ht, hz⟩) |
| 142 | unfold closedChartEulerPhase |
| 143 | rw [hG, hV, |
| 144 | spatialWithinFDeriv_eq_spatialFDeriv (isOpen_extChartAt_target (I := 𝓡 n) x) _ univ_mem hz, |
| 145 | spatialWithinFDeriv_eq_spatialFDeriv (isOpen_extChartAt_target (I := 𝓡 n) x) _ univ_mem hz] |
| 146 | |
| 147 | set_option maxHeartbeats 1600000 in |
| 148 | theorem isContinuationCurve_of_regularizedEuler {J U : Set ℝ} (F : RicciFlow n M J) |
| 149 | (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) (hU : IsOpen U) (α : ℝ → M) |
| 150 | (hα : ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 n) ∞ α U) |
| 151 | (htime : ∀ s ∈ U, T - s ^ 2 ∈ interior J) |
| 152 | (E : ParametricAlongCurveExtensionOn U α (curveVelocityWithin (n := n) α U)) |
| 153 | (hE : ∀ s ∈ U, regularizedLGeodesicEquation F T α U E s) : |
| 154 | IsContinuationCurve F T α U := by |
| 155 | refine ⟨hα, ?_⟩ |
| 156 | intro s hs x hx |
| 157 | let N := U ∩ α ⁻¹' (chartAt (EuclideanSpace ℝ (Fin n)) x).source |
| 158 | have hN : IsOpen N := hα.continuousOn.isOpen_inter_preimage hU |
| 159 | (chartAt (EuclideanSpace ℝ (Fin n)) x).open_source |
| 160 | have hNU : N ⊆ U := inter_subset_left |
| 161 | have hsN : s ∈ N := ⟨hs, hx⟩ |
| 162 | have hsrc : MapsTo α N (chartAt (EuclideanSpace ℝ (Fin n)) x).source := fun _ hr ↦ hr.2 |
| 163 | let E' := restrictOpenVelocityExtension hU hN hNU α E |
| 164 | have heuler : regularizedLGeodesicEquation F T α N E' s := by |
| 165 | intro W |
| 166 | rw [regularizedEulerResidual_restrictOpenVelocityExtension F T hU hN hNU α E hsN W] |
| 167 | exact hE s hs W |
| 168 | have hmomentum := regularized_equation_chart_momentum F hM04 T hN x α |
| 169 | ((hα.mono hNU).of_le (by simp)) hsrc E' hsN (htime s hs) heuler |
| 170 | let q := (extChartAt (𝓡 n) x) ∘ α |
| 171 | have hqd : HasDerivAt q (deriv q s) s := |
| 172 | (((chart_curve_contDiffOn x α (hα.mono hNU) hsrc) s hsN).contDiffAt |
| 173 | (hN.mem_nhds hsN)).differentiableAt (by simp) |>.hasDerivAt |
| 174 | rw [continuationCurvePhase_rhs F T x α hx] |
| 175 | exact hqd.prodMk hmomentum |
| 176 | |
| 177 | set_option maxHeartbeats 1000000 in |
| 178 | theorem continuationCurve_momentum {J U : Set ℝ} (F : RicciFlow n M J) (T : ℝ) |
| 179 | {α : ℝ → M} (hα : IsContinuationCurve F T α U) {s : ℝ} (hs : s ∈ U) |
| 180 | (x : M) (hx : α s ∈ (chartAt (EuclideanSpace ℝ (Fin n)) x).source) : |
| 181 | HasDerivAt (fun r ↦ chartMomentumVector |
| 182 | (chartActionMetric F T x (r, extChartAt (𝓡 n) x (α r))) |
| 183 | (deriv ((extChartAt (𝓡 n) x) ∘ α) r)) |
| 184 | (chartForceVector |
| 185 | (spatialFDeriv (chartActionMetric F T x) (s, extChartAt (𝓡 n) x (α s))) |
| 186 | (spatialFDeriv (chartActionPotential F T x) (s, extChartAt (𝓡 n) x (α s))) |
| 187 | (deriv ((extChartAt (𝓡 n) x) ∘ α) s)) s := by |
| 188 | have h : HasDerivAt (fun r ↦ (continuationCurvePhase F T x α r).2) |
| 189 | (closedChartEulerPhase F T x univ s (continuationCurvePhase F T x α s)).2 s := |
| 190 | (hα.phase s hs x hx).snd |
| 191 | rw [continuationCurvePhase_rhs F T x α hx] at h |
| 192 | exact h |
| 193 | |
| 194 | theorem continuationCurve_regularizedEuler {J U : Set ℝ} (F : RicciFlow n M J) |
| 195 | (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) (hU : IsOpen U) |
| 196 | {α : ℝ → M} (hα : IsContinuationCurve F T α U) |
| 197 | (htime : ∀ s ∈ U, T - s ^ 2 ∈ interior J) : |
| 198 | ∃ E : ParametricAlongCurveExtensionOn U α (curveVelocityWithin (n := n) α U), |
| 199 | ∀ s ∈ U, regularizedLGeodesicEquation F T α U E s := by |
| 200 | apply exists_regularizedEuler_extension_of_local F T hU α |
| 201 | intro s hs |
| 202 | let x := α s |
| 203 | let N := U ∩ α ⁻¹' (chartAt (EuclideanSpace ℝ (Fin n)) x).source |
| 204 | have hN : IsOpen N := hα.smooth.continuousOn.isOpen_inter_preimage hU |
| 205 | (chartAt (EuclideanSpace ℝ (Fin n)) x).open_source |
| 206 | have hNU : N ⊆ U := inter_subset_left |
| 207 | have hsrc : MapsTo α N (chartAt (EuclideanSpace ℝ (Fin n)) x).source := fun _ hr ↦ hr.2 |
| 208 | refine ⟨N, hN, ⟨hs, mem_chart_source _ _⟩, hNU, |
| 209 | chartVelocityExtension hN x α (hα.smooth.mono hNU) hsrc, ?_⟩ |
| 210 | intro r hr |
| 211 | exact chart_momentum_regularized_equation F hM04 T hN x α |
| 212 | (hα.smooth.mono hNU) hsrc hr (htime r hr.1) |
| 213 | (continuationCurve_momentum F T hα hr.1 x hr.2) |
| 214 | |
| 215 | set_option maxHeartbeats 1800000 in |
| 216 | theorem exists_continuationCurve_from_phase {J U : Set ℝ} (F : RicciFlow n M J) |
| 217 | (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) (x : M) (hU : IsOpen U) |
| 218 | (htime : ∀ s ∈ U, T - s ^ 2 ∈ interior J) {s : ℝ} (hs : s ∈ U) |
| 219 | (q₀ P₀ : EuclideanSpace ℝ (Fin n)) (hq₀ : q₀ ∈ (extChartAt (𝓡 n) x).target) : |
| 220 | ∃ ε : ℝ, 0 < ε ∧ ∃ α : ℝ → M, |
| 221 | Ioo (s - 2 * ε) (s + 2 * ε) ⊆ U ∧ |
| 222 | IsContinuationCurve F T α (Ioo (s - 2 * ε) (s + 2 * ε)) ∧ |
| 223 | continuationCurvePhase F T x α s = (q₀, P₀) ∧ |
| 224 | MapsTo α (Ioo (s - 2 * ε) (s + 2 * ε)) |
| 225 | (chartAt (EuclideanSpace ℝ (Fin n)) x).source := by |
| 226 | let e := extChartAt (𝓡 n) x |
| 227 | obtain ⟨ε, hε, z, hz₀, hWU, hzT, hzs, hzd⟩ := exists_smooth_local_phase hU |
| 228 | ((isOpen_extChartAt_target (I := 𝓡 n) x).prod isOpen_univ) |
| 229 | (closedChartEulerPhase F T x univ) |
| 230 | (continuationChartPhase_contDiffOn F hM04 T x hU (fun r hr ↦ interior_subset (htime r hr))) |
| 231 | hs (show (q₀, P₀) ∈ e.target ×ˢ univ from ⟨hq₀, mem_univ _⟩) |
| 232 | let W := Ioo (s - 2 * ε) (s + 2 * ε) |
| 233 | let q := fun r ↦ (z r).1 |
| 234 | let α := e.symm ∘ q |
| 235 | have hW : IsOpen W := isOpen_Ioo |
| 236 | have hsW : s ∈ W := ⟨by linarith, by linarith⟩ |
| 237 | have hqT : MapsTo q W e.target := fun r hr ↦ (hzT hr).1 |
| 238 | have hαs : ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 n) ∞ α W := |
| 239 | (contMDiffOn_extChartAt_symm (I := 𝓡 n) x).comp hzs.fst.contMDiffOn hqT |
| 240 | have hsrc : MapsTo α W (chartAt (EuclideanSpace ℝ (Fin n)) x).source := by |
| 241 | intro r hr |
| 242 | simpa only [α, Function.comp_apply, e, extChartAt_source] using e.map_target (hqT hr) |
| 243 | have hqeq : EqOn (e ∘ α) q W := fun r hr ↦ e.right_inv (hqT hr) |
| 244 | have hphase (r : ℝ) (hr : r ∈ W) : continuationCurvePhase F T x α r = z r := by |
| 245 | have hfirst : HasDerivAt q |
| 246 | (Ring.inverse (chartMetricOperator F T x (r, q r)) (z r).2) r := (hzd r hr).fst |
| 247 | have hdiff : deriv (e ∘ α) r = deriv q r := |
| 248 | (Filter.eventuallyEq_of_mem (hW.mem_nhds hr) hqeq).deriv_eq |
| 249 | apply Prod.ext |
| 250 | · exact hqeq hr |
| 251 | · change chartMetricOperator F T x (r, e (α r)) (deriv (e ∘ α) r) = (z r).2 |
| 252 | rw [show e (α r) = q r from hqeq hr, hdiff, hfirst.deriv] |
| 253 | exact congrArg (fun A : EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) ↦ A (z r).2) |
| 254 | (Ring.mul_inverse_cancel _ (chartMetricOperator_isUnit_of_target F T x (hqT hr))) |
| 255 | let E := chartVelocityExtension hW x α hαs hsrc |
| 256 | have hEuler (r : ℝ) (hr : r ∈ W) : regularizedLGeodesicEquation F T α W E r := by |
| 257 | have hnear : continuationCurvePhase F T x α =ᶠ[𝓝 r] z := |
| 258 | Filter.eventuallyEq_of_mem (hW.mem_nhds hr) hphase |
| 259 | have hp : HasDerivAt (continuationCurvePhase F T x α) |
| 260 | (closedChartEulerPhase F T x univ r (continuationCurvePhase F T x α r)) r := by |
| 261 | rw [hphase r hr] |
| 262 | exact (hzd r hr).congr_of_eventuallyEq hnear |
| 263 | have hm : HasDerivAt (fun t ↦ (continuationCurvePhase F T x α t).2) |
| 264 | (closedChartEulerPhase F T x univ r (continuationCurvePhase F T x α r)).2 r := hp.snd |
| 265 | have hm' : HasDerivAt (fun t ↦ chartMomentumVector |
| 266 | (chartActionMetric F T x (t, e (α t))) (deriv (e ∘ α) t)) |
| 267 | (chartForceVector |
| 268 | (spatialFDeriv (chartActionMetric F T x) (r, e (α r))) |
| 269 | (spatialFDeriv (chartActionPotential F T x) (r, e (α r))) |
| 270 | (deriv (e ∘ α) r)) r := by |
| 271 | rw [continuationCurvePhase_rhs F T x α (hsrc hr)] at hm |
| 272 | exact hm |
| 273 | exact chart_momentum_regularized_equation F hM04 T hW x α hαs hsrc hr |
| 274 | (htime r (hWU hr)) hm' |
| 275 | exact ⟨ε, hε, α, hWU, |
| 276 | isContinuationCurve_of_regularizedEuler F hM04 T hW α hαs |
| 277 | (fun r hr ↦ htime r (hWU hr)) E hEuler, (hphase s hsW).trans hz₀, hsrc⟩ |
| 278 | |
| 279 | set_option maxHeartbeats 1000000 in |
| 280 | theorem continuationCurve_eventuallyEq_of_phase_eq {J U : Set ℝ} (F : RicciFlow n M J) |
| 281 | (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) (hU : IsOpen U) |
| 282 | (htime : ∀ s ∈ U, T - s ^ 2 ∈ J) {α β : ℝ → M} |
| 283 | (hα : IsContinuationCurve F T α U) (hβ : IsContinuationCurve F T β U) |
| 284 | {s : ℝ} (hs : s ∈ U) (x : M) |
| 285 | (hαx : α s ∈ (chartAt (EuclideanSpace ℝ (Fin n)) x).source) |
| 286 | (hβx : β s ∈ (chartAt (EuclideanSpace ℝ (Fin n)) x).source) |
| 287 | (heq : continuationCurvePhase F T x α s = continuationCurvePhase F T x β s) : |
| 288 | α =ᶠ[𝓝 s] β := by |
| 289 | let e := extChartAt (𝓡 n) x |
| 290 | let z := continuationCurvePhase F T x α |
| 291 | let w := continuationCurvePhase F T x β |
| 292 | have htarget : (z s).1 ∈ e.target := e.map_source (by |
| 293 | simpa only [e, extChartAt_source] using hαx) |
| 294 | have hdom : (s, z s) ∈ U ×ˢ (e.target ×ˢ univ) := ⟨hs, htarget, mem_univ _⟩ |
| 295 | have hfield : ContDiffAt ℝ 1 |
| 296 | (Function.uncurry (closedChartEulerPhase F T x univ)) (s, z s) := |
| 297 | (((continuationChartPhase_contDiffOn F hM04 T x hU htime) _ hdom).contDiffAt |
| 298 | ((hU.prod ((isOpen_extChartAt_target (I := 𝓡 n) x).prod isOpen_univ)).mem_nhds |
| 299 | hdom)).of_le (by simp) |
| 300 | have hαc := ((hα.smooth s hs).contMDiffAt (hU.mem_nhds hs)).continuousAt |
| 301 | have hβc := ((hβ.smooth s hs).contMDiffAt (hU.mem_nhds hs)).continuousAt |
| 302 | have hαnear := hαc ((chartAt (EuclideanSpace ℝ (Fin n)) x).open_source.mem_nhds hαx) |
| 303 | have hβnear := hβc ((chartAt (EuclideanSpace ℝ (Fin n)) x).open_source.mem_nhds hβx) |
| 304 | have hz : ∀ᶠ r in 𝓝 s, HasDerivAt z (closedChartEulerPhase F T x univ r (z r)) r := by |
| 305 | filter_upwards [hU.mem_nhds hs, hαnear] with r hr hx |
| 306 | exact hα.phase r hr x hx |
| 307 | have hw : ∀ᶠ r in 𝓝 s, HasDerivAt w (closedChartEulerPhase F T x univ r (w r)) r := by |
| 308 | filter_upwards [hU.mem_nhds hs, hβnear] with r hr hx |
| 309 | exact hβ.phase r hr x hx |
| 310 | have hphase := smooth_phase_eventuallyEq _ hfield hz hw heq |
| 311 | filter_upwards [hphase, hαnear, hβnear] with r hr hαr hβr |
| 312 | have hq : e (α r) = e (β r) := congrArg Prod.fst hr |
| 313 | have hαr' : α r ∈ e.source := by |
| 314 | simpa only [e, extChartAt_source] using |
| 315 | (show α r ∈ (chartAt (EuclideanSpace ℝ (Fin n)) x).source from hαr) |
| 316 | have hβr' : β r ∈ e.source := by |
| 317 | simpa only [e, extChartAt_source] using |
| 318 | (show β r ∈ (chartAt (EuclideanSpace ℝ (Fin n)) x).source from hβr) |
| 319 | calc |
| 320 | α r = e.symm (e (α r)) := (e.left_inv hαr').symm |
| 321 | _ = e.symm (e (β r)) := congrArg e.symm hq |
| 322 | _ = β r := e.left_inv hβr' |
| 323 | |
| 324 | set_option maxHeartbeats 1000000 in |
| 325 | theorem continuationCurve_eqOn_of_germ [T2Space M] {J U : Set ℝ} |
| 326 | (F : RicciFlow n M J) (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) |
| 327 | (hU : IsOpen U) (hUc : IsPreconnected U) (htime : ∀ s ∈ U, T - s ^ 2 ∈ J) |
| 328 | {α β : ℝ → M} (hα : IsContinuationCurve F T α U) (hβ : IsContinuationCurve F T β U) |
| 329 | {s : ℝ} (hs : s ∈ U) (hseed : α =ᶠ[𝓝 s] β) : EqOn α β U := by |
| 330 | let S := {r : ℝ | α =ᶠ[𝓝 r] β} |
| 331 | have hS : IsOpen S := isOpen_setOf_eventually_nhds |
| 332 | have hcl : closure S ∩ U ⊆ S := by |
| 333 | intro r hr |
| 334 | haveI : NeBot (𝓝[S] r) := mem_closure_iff_nhdsWithin_neBot.mp hr.1 |
| 335 | have hαc := ((hα.smooth r hr.2).contMDiffAt (hU.mem_nhds hr.2)).continuousAt |
| 336 | have hβc := ((hβ.smooth r hr.2).contMDiffAt (hU.mem_nhds hr.2)).continuousAt |
| 337 | have hbaseNear : α =ᶠ[𝓝[S] r] β := by |
| 338 | filter_upwards [self_mem_nhdsWithin] with t ht |
| 339 | exact ht.self_of_nhds |
| 340 | have hbase : α r = β r := tendsto_nhds_unique |
| 341 | ((hαc.tendsto.mono_left nhdsWithin_le_nhds).congr' hbaseNear) |
| 342 | (hβc.tendsto.mono_left nhdsWithin_le_nhds) |
| 343 | let x := α r |
| 344 | have hxα : α r ∈ (chartAt (EuclideanSpace ℝ (Fin n)) x).source := mem_chart_source _ _ |
| 345 | have hxβ : β r ∈ (chartAt (EuclideanSpace ℝ (Fin n)) x).source := by rwa [← hbase] |
| 346 | have hpNear : continuationCurvePhase F T x α =ᶠ[𝓝[S] r] |
| 347 | continuationCurvePhase F T x β := by |
| 348 | filter_upwards [self_mem_nhdsWithin] with t ht |
| 349 | exact (continuationCurvePhase_eventuallyEq F T x ht).self_of_nhds |
| 350 | have hp : continuationCurvePhase F T x α r = continuationCurvePhase F T x β r := |
| 351 | tendsto_nhds_unique |
| 352 | (((hα.phase r hr.2 x hxα).continuousAt.tendsto.mono_left nhdsWithin_le_nhds).congr' hpNear) |
| 353 | ((hβ.phase r hr.2 x hxβ).continuousAt.tendsto.mono_left nhdsWithin_le_nhds) |
| 354 | exact continuationCurve_eventuallyEq_of_phase_eq F hM04 T hU htime hα hβ hr.2 x hxα hxβ hp |
| 355 | have hUS : U ⊆ S := hUc.subset_of_closure_inter_subset hS ⟨s, hs, hseed⟩ hcl |
| 356 | exact fun r hr ↦ (hUS hr).self_of_nhds |
| 357 | |
| 358 | end PoincareMT.LGeometry |