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.ShortTime.BoundedDistance |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.Assembly.LongConclusionAssembly |
| 4 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.Assembly.LongSlabService |
| 5 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.Assembly.LongLimitCertificates |
| 6 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.Generalized.BlowupSubsequence |
| 7 | import PoincareLib.Geometry.RicciFlow.Blowup.Controlled.Predecessors |
| 8 | |
| 9 | /-! |
| 10 | # The long statement's quantifier assembly |
| 11 | |
| 12 | This module isolates the two remaining long-branch obligations from the |
| 13 | contract quantifiers: producing the common slab service and transporting |
| 14 | finite/all-scale noncollapse certificates. Once those services are supplied, |
| 15 | the M29-compatible threshold and the checked convergence packaging discharge |
| 16 | `M30LongLimitStatement`. |
| 17 | Source: Morgan--Tian Theorem 11.8 and Proposition 11.10, pp. 272--279. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | |
| 22 | open Set Filter |
| 23 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT.M30 |
| 28 | |
| 29 | /-- Below a universal threshold, a selected sequence has controlled slabs |
| 30 | and the two noncollapse certificates of Theorem 11.8, pp. 272--279. -/ |
| 31 | structure M30LongContractService : Prop where |
| 32 | slab : ∃ epsilonLong : ℝ, 0 < epsilonLong ∧ |
| 33 | ∀ (S : GeneralizedBlowupSequence.{u}) |
| 34 | (epsilon C kappa r₀ mu : ℝ) (T₀ : ℝ≥0∞), |
| 35 | epsilon ≤ epsilonLong → |
| 36 | M30LongBlowupControls S epsilon C kappa r₀ mu T₀ → |
| 37 | GeneralizedBlowupBoundedDistance S → |
| 38 | ∃ phi : ℕ → ℕ, ∃ hphi : StrictMono phi, |
| 39 | M30LongSlabControlService (reindexedBlowupSequence S phi hphi) kappa r₀ T₀ |
| 40 | certificates : ∀ (S : GeneralizedBlowupSequence.{u}) |
| 41 | (kappa r₀ : ℝ) (T₀ : ℝ≥0∞), |
| 42 | 0 < r₀ → |
| 43 | GeneralizedBlowupBoundedDistance S → |
| 44 | M30LongSlabControlService S kappa r₀ T₀ → |
| 45 | (∀ L : GeneralizedBlowupConvergence S (blowupBackwardInterval T₀), |
| 46 | M30LimitNoncollapsedAtScale L.limit kappa r₀) ∧ |
| 47 | (∀ (L : GeneralizedBlowupConvergence S (blowupBackwardInterval T₀)) |
| 48 | (h : T₀ = ⊤), BlowupLimitNoncollapsed (h ▸ L.limit) kappa) |
| 49 | |
| 50 | /-- Combining the geometric and bounded-distance thresholds yields the |
| 51 | frozen long statement after composing selections (Theorem 11.8, pp. 272--279). -/ |
| 52 | theorem exists_longLimitStatement_of_controlService |
| 53 | (P : M30ControlledBlowupPredecessors.{u}) |
| 54 | (hMixed : WithinFlowJetBoundsService.{0, 0}) |
| 55 | (hFlow : WithinBilinearFlowService.{0}) |
| 56 | (hSlice : SpatialSliceJetConvergenceService.{0, 0, 0, 0, 0}) |
| 57 | (Hservice : M30LongContractService.{u}) : |
| 58 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ 1 / 400 ∧ |
| 59 | M30LongLimitStatement.{u} epsilon₀ := by |
| 60 | obtain ⟨epsilon29, hepsilon29, hepsilon29_le, hbound⟩ := |
| 61 | exists_boundedDistance_threshold P |
| 62 | obtain ⟨epsilonLong, hepsilonLong, hslab⟩ := Hservice.slab |
| 63 | refine ⟨min epsilon29 epsilonLong, lt_min hepsilon29 hepsilonLong, |
| 64 | (min_le_left _ _).trans hepsilon29_le, ?_⟩ |
| 65 | intro S epsilon C kappa r₀ mu T₀ hepsilon H |
| 66 | have hboundS := hbound S epsilon C kappa r₀ mu |
| 67 | (hepsilon.trans (min_le_left _ _)) H.toM30CommonBlowupControls |
| 68 | obtain ⟨phi, hphi, Hslab⟩ := hslab S epsilon C kappa r₀ mu T₀ |
| 69 | (hepsilon.trans (min_le_right _ _)) H hboundS |
| 70 | have hboundSelected := reindexed_boundedDistance hboundS phi hphi |
| 71 | obtain ⟨hnoncollapsed, hall⟩ := Hservice.certificates |
| 72 | (reindexedBlowupSequence S phi hphi) kappa r₀ T₀ H.radius_pos |
| 73 | hboundSelected Hslab |
| 74 | obtain ⟨L⟩ := exists_repaired_long_conclusion_of_controls P hMixed hFlow hSlice |
| 75 | (reindexedBlowupSequence S phi hphi) (reindexedLongBlowupControls H phi hphi) |
| 76 | hboundSelected Hslab hnoncollapsed hall |
| 77 | exact ⟨longConclusionOfReindexed L⟩ |
| 78 | |
| 79 | end PoincareMT.M30 |