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.Construction.ShortTime.Terminal.TerminalVolume |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.ShortTime.BoundedDistance |
| 4 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.Assembly.LongSlabService |
| 5 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.Noncollapse.SourceNoncollapsePackage |
| 6 | import PoincareLib.Geometry.RicciFlow.Curvature.Estimates.Universe |
| 7 | import PoincareLib.Geometry.RicciFlow.Blowup.Controlled.Predecessors |
| 8 | |
| 9 | local macro "P.m04.local_derivative_estimates_small" : term => |
| 10 | `(PoincareMT.RicciFlowCurvatureTheory.local_derivative_estimates_small |
| 11 | (PoincareMT.RicciFlowCurvatureTheory.toCalculus $(Lean.mkIdent `P.m04))) |
| 12 | |
| 13 | /-! |
| 14 | # Long controls to generalized convergence |
| 15 | |
| 16 | The finite-slab service is the geometric part of the long branch. This |
| 17 | adapter supplies the remaining common inputs: M04's Type-0 derivative |
| 18 | estimates and the terminal-volume lower bound obtained from the common |
| 19 | controls and a bounded-distance threshold. |
| 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 | /-- Long controls, a bounded-distance threshold, and the reviewed slab service |
| 32 | feed the checked generalized-flow convergence assembly. -/ |
| 33 | theorem exists_long_generalized_convergence_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 : ℝ} {T₀ : ℝ≥0∞} |
| 40 | (H : M30LongBlowupControls S epsilon canonicalConstant kappa r₀ mu T₀) |
| 41 | (hbound : GeneralizedBlowupBoundedDistance S) |
| 42 | (Hslab : M30LongSlabControlService S kappa r₀ T₀) : |
| 43 | Nonempty (GeneralizedBlowupConvergence S (blowupBackwardInterval T₀)) := by |
| 44 | obtain ⟨rho, v, hrho, hv, hvolume⟩ := |
| 45 | exists_eventually_terminal_volume_lower_bound P.m04 |
| 46 | H.toM30CommonBlowupControls hbound |
| 47 | exact exists_backward_generalizedBlowupConvergence_of_longSlabService |
| 48 | P.m04.local_derivative_estimates_small hMixed hFlow hSlice S |
| 49 | H.horizon_pos hrho hv H.balls_compact |
| 50 | Hslab |
| 51 | hvolume |
| 52 | |
| 53 | /-- The same assembly, retaining the finite-slab source noncollapse witness |
| 54 | alongside the selected generalized convergence. -/ |
| 55 | theorem exists_long_generalized_convergence_with_source_noncollapse_of_controls |
| 56 | (P : M30ControlledBlowupPredecessors.{u}) |
| 57 | (hMixed : WithinFlowJetBoundsService.{0, 0}) |
| 58 | (hFlow : WithinBilinearFlowService.{0}) |
| 59 | (hSlice : SpatialSliceJetConvergenceService.{0, 0, 0, 0, 0}) |
| 60 | (S : GeneralizedBlowupSequence.{u}) |
| 61 | {epsilon canonicalConstant kappa r₀ mu : ℝ} {T₀ : ℝ≥0∞} |
| 62 | (H : M30LongBlowupControls S epsilon canonicalConstant kappa r₀ mu T₀) |
| 63 | (hbound : GeneralizedBlowupBoundedDistance S) |
| 64 | (Hslab : M30LongSlabControlService S kappa r₀ T₀) : |
| 65 | Nonempty (GeneralizedBlowupConvergenceWithSourceNoncollapse |
| 66 | S kappa r₀ T₀) := by |
| 67 | obtain ⟨L⟩ := exists_long_generalized_convergence_of_controls |
| 68 | P hMixed hFlow hSlice S H hbound Hslab |
| 69 | exact ⟨generalizedConvergenceWithSourceNoncollapse_of_slabService Hslab L⟩ |
| 70 | |
| 71 | end PoincareMT.M30 |