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.Generalized.ReducedGeometry.Paths.Action.LLength |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Theory |
| 3 | |
| 4 | /-! |
| 5 | # Finite values and attainment on a stable branch |
| 6 | |
| 7 | Morgan-Tian Definitions 6.26-6.27, p. 117, and Definition 6.45, p. 129. |
| 8 | These are the finite-value and stable-attainment fields of the frozen M14 |
| 9 | conclusion. A stable branch already supplies an actual minimizing path. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | namespace PoincareMT.M14 |
| 17 | |
| 18 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 19 | {I : SpacetimeInterval} |
| 20 | |
| 21 | /-- A nonempty action set bounded below has the finite-value output, |
| 22 | Morgan-Tian Definition 6.27, p. 117. -/ |
| 23 | theorem finiteValueStatement (G : GeneralizedLGeometryTransport n X time I) : |
| 24 | M14FiniteValueStatement G := by |
| 25 | intro T τ₁ τ₂ x y h |
| 26 | obtain ⟨a, ha⟩ := h.1 |
| 27 | exact ⟨M14ActionValue G T τ₁ τ₂ x y, rfl, a, ha, csInf_le h.2 ha⟩ |
| 28 | |
| 29 | /-- A stable minimizing branch attains its own action infimum, |
| 30 | Morgan-Tian Definitions 6.25-6.27, pp. 116-117. -/ |
| 31 | theorem attainmentStatement (G : GeneralizedLGeometryTransport n X time I) : |
| 32 | M14AttainmentStatement G := by |
| 33 | intro T τ x E H Z hZ |
| 34 | obtain ⟨p, hcurve, hp, _⟩ := H.minimizing_path Z hZ |
| 35 | exact ⟨p, hcurve, hp, action_eq_actionValue_of_minimizing p hp⟩ |
| 36 | |
| 37 | end PoincareMT.M14 |