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.ContinuationCurve |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Variation.FirstVariationIdentity |
| 3 | |
| 4 | /-! Adapted from Mapher `PoincareMT/Proofs/M08/ContinuationRegularized.lean` at |
| 5 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. -/ |
| 6 | |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | set_option backward.isDefEq.respectTransparency false |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | open Set Filter Topology |
| 14 | open scoped Manifold ContDiff Bundle |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.LGeometry |
| 19 | |
| 20 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 22 | |
| 23 | theorem regularizedData_isContinuationCurve {J : Set ℝ} {F : RicciFlow n M J} |
| 24 | {T τmax τ₁ τ₂ : ℝ} (hM04 : RicciFlowCurvatureTheory.{u}) |
| 25 | (hwindow : Icc (T - τmax) T ⊆ J) (hτ₂ : τ₂ ≤ τmax) |
| 26 | (p : BackwardTimePath F T τ₁ τ₂) (R : RegularizedLGeodesicData p) : |
| 27 | IsContinuationCurve F T R.path.curve (Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) := by |
| 28 | let I := Ioo (Real.sqrt τ₁) (Real.sqrt τ₂) |
| 29 | let C := sqrtParameterInterval τ₁ τ₂ |
| 30 | have hIC : I ⊆ C := Ioo_subset_Icc_self |
| 31 | let E := restrictInteriorVelocityExtension isOpen_Ioo hIC R.path.curve R.velocity_extension |
| 32 | apply isContinuationCurve_of_regularizedEuler F hM04 T isOpen_Ioo R.path.curve |
| 33 | (R.path.smooth.mono (hIC.trans R.path.interval_subset)) |
| 34 | (fun s hs ↦ backwardSquareTime_mem_interior hwindow p.nonnegative p.ordered hτ₂ hs) E |
| 35 | intro s hs W |
| 36 | have h := R.equation s (hIC hs) W |
| 37 | unfold regularizedLGeodesicEquation at h |
| 38 | change regularizedEulerResidual F T R.path.curve I E s W = 0 |
| 39 | unfold regularizedEulerResidual pullbackCovariantDerivative E restrictInteriorVelocityExtension |
| 40 | rw [curveVelocityWithin_eq_of_open_subset isOpen_Ioo hIC R.path.curve hs] |
| 41 | exact h |
| 42 | |
| 43 | theorem regularizedSquare_isContinuationCurve {J : Set ℝ} {F : RicciFlow n M J} |
| 44 | {T τmax τ₁ τ₂ : ℝ} (hM04 : RicciFlowCurvatureTheory.{u}) |
| 45 | (hwindow : Icc (T - τmax) T ⊆ J) (hτ₂ : τ₂ ≤ τmax) |
| 46 | (p : BackwardTimePath F T τ₁ τ₂) (R : RegularizedLGeodesicData p) : |
| 47 | IsContinuationCurve F T (squareReparameterizedCurve p.curve) |
| 48 | (Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) := by |
| 49 | apply (regularizedData_isContinuationCurve hM04 hwindow hτ₂ p R).congr isOpen_Ioo |
| 50 | intro s hs |
| 51 | exact (R.path.agrees s (Ioo_subset_Icc_self hs)).symm |
| 52 | |
| 53 | end PoincareMT.LGeometry |