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.Blowup.Controlled.Data |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Controlled.Theory |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.ShortTime.Terminal.TerminalVolume |
| 4 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.FiniteSlab.FiniteGeneralizedConvergence |
| 5 | import PoincareLib.Geometry.RicciFlow.Curvature.Estimates.Universe |
| 6 | import PoincareLib.Geometry.RicciFlow.Blowup.Controlled.Predecessors |
| 7 | |
| 8 | local macro "P.m04.local_derivative_estimates_small" : term => |
| 9 | `(PoincareMT.RicciFlowCurvatureTheory.local_derivative_estimates_small |
| 10 | (PoincareMT.RicciFlowCurvatureTheory.toCalculus $(Lean.mkIdent `P.m04))) |
| 11 | |
| 12 | /-! |
| 13 | # Short controls to a repaired short conclusion |
| 14 | |
| 15 | The fixed slab in `ShortControlledBlowupHypotheses` is larger than a smaller |
| 16 | target interval chosen below one normalized unit. This file records the |
| 17 | bookkeeping that forwards that slab, the terminal-volume event, and the |
| 18 | Type-0 analytic services to the audited finite generalized-convergence |
| 19 | assembly. |
| 20 | -/ |
| 21 | |
| 22 | set_option autoImplicit false |
| 23 | |
| 24 | open Set Filter |
| 25 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | namespace PoincareMT.M30 |
| 30 | |
| 31 | /-- A fixed short controlled slab gives a positive backward convergence |
| 32 | interval after the source-scale terminal-volume estimate is supplied. -/ |
| 33 | theorem exists_repaired_short_conclusion_of_controls |
| 34 | (P : M30ControlledBlowupPredecessors.{u}) |
| 35 | (hMixed : WithinFlowJetBoundsService.{0, 0}) |
| 36 | (hFlow : WithinBilinearFlowService.{0}) |
| 37 | (hSlice : SpatialSliceJetConvergenceService.{0, 0, 0, 0, 0}) |
| 38 | (S : GeneralizedBlowupSequence.{u}) |
| 39 | {epsilon canonicalConstant kappa r₀ mu : ℝ} |
| 40 | (Hcommon : M30CommonBlowupControls S epsilon canonicalConstant kappa r₀ mu) |
| 41 | (hbound : GeneralizedBlowupBoundedDistance S) |
| 42 | (Hshort : ShortControlledBlowupHypotheses S kappa r₀) : |
| 43 | Nonempty (RepairedShortControlledBlowupConclusion S) := by |
| 44 | let T : ℝ := min 1 (Hshort.backward_time / 2) |
| 45 | let tau : ℝ := T / 2 |
| 46 | have hT : 0 < T := by |
| 47 | dsimp only [T] |
| 48 | exact lt_min zero_lt_one (half_pos Hshort.backward_time_pos) |
| 49 | have hT1 : T ≤ 1 := min_le_left _ _ |
| 50 | have hTback : T < Hshort.backward_time := by |
| 51 | dsimp only [T] |
| 52 | exact (min_le_right _ _).trans_lt (by linarith [Hshort.backward_time_pos]) |
| 53 | have htau : 0 < tau := by |
| 54 | dsimp only [tau] |
| 55 | exact half_pos hT |
| 56 | have htauT : tau < T := by |
| 57 | dsimp only [tau] |
| 58 | linarith |
| 59 | obtain ⟨rho, v, hrho, hv, hvolume⟩ := |
| 60 | exists_eventually_terminal_volume_lower_bound P.m04 Hcommon hbound |
| 61 | have hcyl : ∀ A : ℝ, 0 < A → ∀ eta : ℝ, 0 < eta → |
| 62 | ∀ᶠ k : ℕ in atTop, |
| 63 | Nonempty (ControlledBlowupCylinder S k A Hshort.backward_time |
| 64 | Hshort.curvature_bound eta) := by |
| 65 | intro A hA eta heta |
| 66 | exact Hshort.cylinders A hA eta heta |
| 67 | obtain ⟨hconvergence⟩ := exists_finite_generalizedBlowupConvergence |
| 68 | P.m04.local_derivative_estimates_small hMixed hFlow hSlice P.m07 S |
| 69 | htau htauT hT1 hTback hrho hv Hshort.balls_compact hcyl hvolume |
| 70 | exact ⟨{ |
| 71 | backward_time := tau |
| 72 | backward_time_pos := htau |
| 73 | convergence := ⟨hconvergence⟩ }⟩ |
| 74 | |
| 75 | end PoincareMT.M30 |