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.Theory |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.GeometricLongConvergence |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.ShortTime.ShortLimitStatementAssembly |
| 4 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.Assembly.LongLimitStatementAssembly |
| 5 | import PoincareLib.Geometry.RicciFlow.Blowup.Controlled.Predecessors |
| 6 | |
| 7 | /-! |
| 8 | # Conditional M30 contract assembly |
| 9 | |
| 10 | The geometric, short, and long branches are now composed once their explicit |
| 11 | analytic service inputs are supplied. The service bundle is a Prop boundary; |
| 12 | it does not add an inhabitant to the frozen predecessor record or import the |
| 13 | branch-only M28 library. Morgan--Tian Theorems 11.1 and 11.8, pp. 267--279, |
| 14 | with the convergence interface of Definition 5.12, p. 90. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M30 |
| 25 | |
| 26 | /-- The analytic inputs needed by the checked M30 assemblies. The fields are |
| 27 | the within-jet suppliers followed by the common short-lifetime and long-branch |
| 28 | certificate services (Theorems 11.1 and 11.8, pp. 267--279). -/ |
| 29 | structure M30ContractServices : Prop where |
| 30 | mixed : WithinFlowJetBoundsService.{0, 0} |
| 31 | flow : WithinBilinearFlowService.{0} |
| 32 | slice : SpatialSliceJetConvergenceService.{0, 0, 0, 0, 0} |
| 33 | short : M30ShortControlService.{u} |
| 34 | long : M30LongContractService.{u} |
| 35 | |
| 36 | /-- Compose the checked branch assemblies into the frozen M30 theory once the |
| 37 | explicit service bundle is available (Theorems 11.1 and 11.8, pp. 267--279). -/ |
| 38 | theorem repairedControlledBlowupLimitTheory_of_services |
| 39 | (P : M30ControlledBlowupPredecessors.{u}) |
| 40 | (services : M30ContractServices.{u}) : |
| 41 | RepairedControlledBlowupLimitTheory.{u} := by |
| 42 | have hgeometric : ∀ (S : GeneralizedBlowupSequence.{u}) (T₀ : ℝ≥0∞), |
| 43 | M30GeometricLongControls S T₀ → |
| 44 | Nonempty (GeneralizedBlowupConvergence S (blowupBackwardInterval T₀)) := by |
| 45 | intro S T₀ H |
| 46 | exact exists_geometric_long_generalizedBlowupConvergence P services.mixed |
| 47 | services.flow services.slice S H |
| 48 | obtain ⟨epsilonShort, hshortPos, hshortLe, hshort⟩ := |
| 49 | exists_shortLimitStatement_of_controlService P services.mixed services.flow |
| 50 | services.slice services.short |
| 51 | obtain ⟨epsilonLong, hlongPos, hlongLe, hlong⟩ := |
| 52 | exists_longLimitStatement_of_controlService P services.mixed services.flow |
| 53 | services.slice services.long |
| 54 | let epsilon₀ : ℝ := min epsilonShort epsilonLong |
| 55 | have hepsilon₀ : 0 < epsilon₀ := lt_min hshortPos hlongPos |
| 56 | have hepsilon₀_le : epsilon₀ ≤ 1 / 400 := |
| 57 | (min_le_left _ _).trans hshortLe |
| 58 | have hshort' : M30ShortLimitStatement.{u} epsilon₀ := by |
| 59 | intro S epsilon C kappa r₀ mu hepsilon H |
| 60 | exact hshort S epsilon C kappa r₀ mu |
| 61 | (hepsilon.trans (min_le_left _ _)) H |
| 62 | have hlong' : M30LongLimitStatement.{u} epsilon₀ := by |
| 63 | intro S epsilon C kappa r₀ mu T₀ hepsilon H |
| 64 | exact hlong S epsilon C kappa r₀ mu T₀ |
| 65 | (hepsilon.trans (min_le_right _ _)) H |
| 66 | exact { |
| 67 | geometric_long := hgeometric |
| 68 | limits := ⟨epsilon₀, hepsilon₀, hepsilon₀_le, hshort', hlong'⟩ } |
| 69 | |
| 70 | end PoincareMT.M30 |