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.Surgery.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.InitialEvolvingNeck |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.InitialRadialCap |
| 4 | |
| 5 | /-! |
| 6 | # The literal canonical alternatives on a closed initial slab |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327. The actual initial necks |
| 9 | cover the complement of one compact set. Joint intrinsic arclength |
| 10 | bounds that compact set in a fixed true radial region, where the |
| 11 | checked full radial cap construction supplies the remaining witnesses. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.Uniqueness |
| 21 | |
| 22 | /-- One constant supplies the exact frozen canonical alternative |
| 23 | at every point throughout any prescribed closed initial slab. -/ |
| 24 | theorem initial_slab_canonical |
| 25 | (P : M35StandardCapPredecessors) {g₀ : StandardInitialMetric} |
| 26 | (E : RepairedStandardCapExistenceData g₀) {theta epsilon : ℝ} |
| 27 | (htheta : 0 < theta) (hthetalt : theta < E.flow.base.lifetime) |
| 28 | (he : 0 < epsilon) (hehalf : epsilon < 1 / 2) : |
| 29 | ∃ C₀ : ℝ, 0 < C₀ ∧ ∀ C ≥ C₀, ∀ t ∈ Icc 0 theta, ∀ x : StandardCapSpace, |
| 30 | StandardCanonicalAlternative E.atlas E.flow t x epsilon C := by |
| 31 | classical |
| 32 | obtain ⟨K, hK, houtside⟩ := initial_neck_alternative_outside_compact E |
| 33 | ⟨htheta.le, hthetalt⟩ he hehalf |
| 34 | let a (p : ℝ × StandardCapSpace) := radialArclength (E.flow.metric p.1) ‖p.2‖ |
| 35 | have ha : ContinuousOn a (Icc 0 theta ×ˢ K) := |
| 36 | (raw_radialArclength_continuousOn_slab E.flow.base htheta.le hthetalt).comp |
| 37 | (continuousOn_fst.prodMk continuousOn_snd.norm) |
| 38 | (fun _ hp => ⟨hp.1, mem_univ _⟩) |
| 39 | obtain ⟨Y, hY⟩ := (isCompact_Icc.prod hK).exists_bound_of_continuousOn ha |
| 40 | obtain ⟨C₀, hC₀, hcaps⟩ := exists_initial_radial_caps P E htheta hthetalt |
| 41 | he hehalf (abs_nonneg Y) |
| 42 | refine ⟨C₀, hC₀, ?_⟩ |
| 43 | intro C hC t ht x |
| 44 | by_cases hx : x ∈ K |
| 45 | · obtain ⟨N⟩ := hcaps C hC t ht x (by |
| 46 | have h := hY (t, x) ⟨ht, hx⟩ |
| 47 | change |radialArclength (E.flow.metric t) ‖x‖| ≤ Y at h |
| 48 | exact (le_abs_self _).trans (h.trans (le_abs_self Y))) |
| 49 | exact StandardCanonicalAlternative.cap N |
| 50 | · exact houtside x hx t ht C |
| 51 | |
| 52 | end PoincareMT.M35.Uniqueness |