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.Regularity.ClosedPhaseAssembly |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Regularity.EulerPathCharts |
| 3 | |
| 4 | /-! Adapted from Mapher `PoincareMT/Proofs/M08/RegularizedGeodesic.lean` at |
| 5 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. -/ |
| 6 | |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | |
| 10 | open Set Filter Topology |
| 11 | open scoped Manifold ContDiff Bundle |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | namespace PoincareMT.LGeometry |
| 16 | |
| 17 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 18 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 19 | [ConnectedSpace M] [T3Space M] |
| 20 | |
| 21 | theorem nonempty_regularizedLGeodesicData {J : Set ℝ} {F : RicciFlow n M J} |
| 22 | {T τmax τ₁ τ₂ : ℝ} (hM04 : RicciFlowCurvatureTheory.{u}) |
| 23 | (hwindow : Icc (T - τmax) T ⊆ J) |
| 24 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 25 | (hτ₂ : τ₂ ≤ τmax) (p : BackwardTimePath F T τ₁ τ₂) |
| 26 | (hp : IsBackwardLGeodesic F T τ₁ τ₂ p) : |
| 27 | Nonempty (RegularizedLGeodesicData p) := by |
| 28 | apply nonempty_regularizedData_of_closed_phase_cover hM04 p |
| 29 | (squarePath_contMDiffOn_of_euler hM04 hwindow hcurvature hτ₂ p hp) |
| 30 | intro s hs |
| 31 | obtain ⟨a, b, x, Pbar, hab, hAa, hbB, hsab, hnear, hsrc, _, _, hphase⟩ := |
| 32 | squarePath_local_phase hM04 hwindow hcurvature hτ₂ p hp hs |
| 33 | exact ⟨a, b, x, Pbar, hab, hsab, Icc_subset_Icc hAa hbB, hnear, hsrc, hphase⟩ |
| 34 | |
| 35 | end PoincareMT.LGeometry |