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.Singular.RegularLimit.Ends.CapConfinement |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Singular.RegularLimit.Ends.TubeCapExclusion.Noncontainment |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Singular.RegularLimit.Ends.TubeRegion |
| 4 | |
| 5 | /-! |
| 6 | # Every sufficiently late end point is a strong-neck center |
| 7 | |
| 8 | The supplied local neck-and-cap theory puts an end tail in a tube. Uniform |
| 9 | cap confinement and the geometric cap-in-tube obstruction exclude every cap |
| 10 | at sufficiently late points. The compact alternatives are already impossible |
| 11 | in an end component, leaving actual strong necks with unchanged parameters. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.TerminalEnd |
| 22 | |
| 23 | /-- Canonical control and proper scalar curvature make all late end points |
| 24 | centers of actual strong necks, without enlarging the neck parameter. -/ |
| 25 | theorem exists_strong_neck_tail_threshold : |
| 26 | ∃ ε₀ : ℝ, 0 < ε₀ ∧ ε₀ ≤ 1 / 200 ∧ |
| 27 | ∀ {F : GeneralizedRicciFlowData.{u}} {T : ℝ} |
| 28 | (E : GeneralizedFlowExtension F T) (K : TerminalComponentPath E) |
| 29 | (e : TerminalEnd K) (A : RepairedNeckCapTopologyTheory.{u}) |
| 30 | {epsilon C B : ℝ}, |
| 31 | 0 < epsilon → 0 < C → epsilon ≤ ε₀ → epsilon ≤ A.epsilon₀ → |
| 32 | (∃ L : ℝ, ∀ x, L ≤ (E.extended.connection T).scalarCurvature x) → |
| 33 | (∀ D : Set ℝ, IsCompact D → |
| 34 | IsCompact ((E.extended.connection T).scalarCurvature ⁻¹' D)) → |
| 35 | (∀ x : (E.extended.slice T).carrier, |
| 36 | B < (E.extended.connection T).scalarCurvature x → |
| 37 | GeneralizedCanonicalControl (F := E.extended) T x epsilon C) → |
| 38 | ∃ n : ℕ, ∀ m : ℕ, n ≤ m → ∀ x ∈ e.tail m, |
| 39 | ∃ N : TerminalStrongNeck E epsilon, N.center = x.val := by |
| 40 | obtain ⟨ε₀, hε₀, hsmall, hno⟩ := CapCertificate.exists_tube_noncontainment_threshold.{u} |
| 41 | refine ⟨ε₀, hε₀, hsmall, ?_⟩ |
| 42 | intro F T E K e A epsilon C B hepsilon hC hε hA hlower hproper hcanonical |
| 43 | obtain ⟨k, tube, htube⟩ := e.exists_tube_of_canonical_control A |
| 44 | hepsilon hC hA hlower hproper hcanonical |
| 45 | obtain ⟨n, _, hn⟩ := e.exists_tail_caps_subset_of_contains_tail |
| 46 | hlower hproper hC tube.contains_X |
| 47 | obtain ⟨p, hp⟩ := e.exists_tail_scalar_gt hlower hproper B |
| 48 | refine ⟨max n p, fun m hnm x hx => ?_⟩ |
| 49 | cases hcanonical x (hp m ((le_max_right _ _).trans hnm) x hx) with |
| 50 | | neck N hcenter => exact ⟨N, hcenter⟩ |
| 51 | | cap N he hconstant hconnection hxN => |
| 52 | exact (hno N tube (he.trans_le hε) (htube.trans_le hε) |
| 53 | (hn m ((le_max_left _ _).trans hnm) x hx N hconstant |
| 54 | (N.core_subset_carrier hxN))).elim |
| 55 | | component N hxN => exact (e.not_mem_cComponent N x.property hxN).elim |
| 56 | | round N hxN => exact (e.not_mem_roundComponent N x.property hxN).elim |
| 57 | |
| 58 | end PoincareMT.TerminalEnd |