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.Extinction.Width.Transport.Event.LowerLimit |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Transport.Regular.Continuity |
| 3 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Transport.Regular.Forward |
| 4 | |
| 5 | set_option autoImplicit false |
| 6 | |
| 7 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 8 | |
| 9 | universe u |
| 10 | |
| 11 | namespace PoincareMT |
| 12 | |
| 13 | variable |
| 14 | {g₀ : StandardInitialMetric} |
| 15 | {D : RepairedSurgeryFlowData.{u} g₀} |
| 16 | {W : RepairedEventChildWitness D.flow} |
| 17 | {T : ℝ} {P : RepairedComponentPath D.flow T W} |
| 18 | {K : RepairedComparisonMapData D} |
| 19 | {C : RepairedComparisonHomotopyData D K} |
| 20 | {H : RepairedAncestryTransportInput D W P K C} |
| 21 | {B : M59HigherBasepointTransportService} |
| 22 | {A : RepairedAncestryTransportData D W P K C H B} |
| 23 | {q : M59SphereQuotient} |
| 24 | {hM61 : M61RawWidthCore.{u}} |
| 25 | {hM64 : M64ComparisonTheory.{u}} |
| 26 | {hM65 : M65DeformationTheory hM61 hM64} |
| 27 | |
| 28 | theorem m67_width_nonnegative |
| 29 | (X : M67ChangingWidthPath D W P K C H B A q hM61 hM65) |
| 30 | (hwidth : M61WidthTheory.{u} q) (s : Set.Icc (0 : ℝ) T) : 0 ≤ X.width s := by |
| 31 | rw [X.width_eq_based] |
| 32 | exact (hwidth.based_class (X.slice s).metric (P.component s).compact |
| 33 | (P.component s).connected (P.component s).basepoint |
| 34 | (X.slice s).pi_two_trivial (X.slice s).alpha).nonnegative |
| 35 | |
| 36 | /-- All ordinary-time estimates follow from the actual M66 pieces; only the |
| 37 | uniform surgery comparison is needed to complete the analytic conclusion. -/ |
| 38 | theorem m67_conclusion_of_event_factor_bounds |
| 39 | (X : M67ChangingWidthPath D W P K C H B A q hM61 hM65) |
| 40 | (hwidth : M61WidthTheory.{u} q) |
| 41 | (hevent : ∀ s : Set.Icc (0 : ℝ) T, |
| 42 | s.1 ∈ (↑P.surgery_times : Set ℝ) → |
| 43 | ∀ eta : ℝ, 0 < eta → ∃ delta : ℝ, 0 < delta ∧ |
| 44 | ∀ t : Set.Icc (0 : ℝ) T, s.1 - delta < t.1 → t.1 < s.1 → |
| 45 | X.width s ≤ (1 + eta) ^ 2 * X.width t) : M67Conclusion X where |
| 46 | width_nonnegative := m67_width_nonnegative X hwidth |
| 47 | forward_difference := m67_width_forward_difference X |
| 48 | continuous_at_regular := m67_width_continuous_at_regular X |
| 49 | surgery_lower_limit := fun s hs => m67_lower_limit_of_factor_bounds X.width s |
| 50 | (m67_width_nonnegative X hwidth s) (hevent s hs) |
| 51 | right_continuous_after_event := fun s _hs => m67_width_right_continuous X s |
| 52 | |
| 53 | end PoincareMT |