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.AncientIdentification |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.Assembly.LongControlsAssembly |
| 4 | |
| 5 | /-! |
| 6 | # Packaging the long conclusion |
| 7 | |
| 8 | The convergence assembly and the finite-scale noncollapse transport are |
| 9 | separate obligations. These constructors package them without weakening |
| 10 | the frozen statement. The second constructor also records the exact |
| 11 | infinite-horizon route: eliminate the equality to `⊤` before constructing the |
| 12 | ancient identification. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M30 |
| 23 | |
| 24 | /-- Package a generalized convergence witness with the two remaining long |
| 25 | conclusion certificates. -/ |
| 26 | theorem repairedLongConclusion_of_convergence |
| 27 | (S : GeneralizedBlowupSequence.{u}) {kappa r₀ : ℝ} {T₀ : ℝ≥0∞} |
| 28 | (hconvergence : GeneralizedBlowupConvergence S (blowupBackwardInterval T₀)) |
| 29 | (hnoncollapsed : M30LimitNoncollapsedAtScale hconvergence.limit kappa r₀) |
| 30 | (hancient : ∀ h : T₀ = ⊤, |
| 31 | Nonempty (M30AncientKappaIdentification (h ▸ hconvergence.limit) kappa)) : |
| 32 | Nonempty (RepairedLongControlledBlowupConclusion S kappa r₀ T₀) := by |
| 33 | exact ⟨{ |
| 34 | convergence := hconvergence |
| 35 | noncollapsed := hnoncollapsed |
| 36 | ancient := hancient }⟩ |
| 37 | |
| 38 | /-- Finite-radius certificates available at every positive cutoff give the |
| 39 | all-scale predicate by choosing the cutoff equal to the tested radius. This |
| 40 | is the limit-side form of the source observation that |
| 41 | `r₀ * sqrt (S.scale k)` eventually exceeds every fixed normalized radius. -/ |
| 42 | theorem blowupLimitNoncollapsed_of_all_radius_cuts |
| 43 | {J : Set ℝ} (L : BlowupLimitFlow.{u} J) {kappa : ℝ} |
| 44 | (hcuts : ∀ R : ℝ, 0 < R → M30LimitNoncollapsedAtScale L kappa R) : |
| 45 | BlowupLimitNoncollapsed L kappa := by |
| 46 | intro t ht p r hr htime hcurvature |
| 47 | exact hcuts r hr t ht p r hr le_rfl htime hcurvature |
| 48 | |
| 49 | /-- The all-scale noncollapse certificate supplies the ancient branch. The |
| 50 | `subst` is intentional: the target is dependent on the horizon equality. -/ |
| 51 | theorem repairedLongConclusion_of_allScale_noncollapsed |
| 52 | (hC : RicciFlowCurvatureTheory.{u}) |
| 53 | (S : GeneralizedBlowupSequence.{u}) {kappa r₀ : ℝ} {T₀ : ℝ≥0∞} |
| 54 | (hkappa : 0 < kappa) |
| 55 | (hconvergence : GeneralizedBlowupConvergence S (blowupBackwardInterval T₀)) |
| 56 | (hnoncollapsed : M30LimitNoncollapsedAtScale hconvergence.limit kappa r₀) |
| 57 | (hall : ∀ h : T₀ = ⊤, |
| 58 | BlowupLimitNoncollapsed (h ▸ hconvergence.limit) kappa) : |
| 59 | Nonempty (RepairedLongControlledBlowupConclusion S kappa r₀ T₀) := by |
| 60 | apply repairedLongConclusion_of_convergence S hconvergence hnoncollapsed |
| 61 | intro h |
| 62 | subst h |
| 63 | exact ⟨ancientKappaIdentificationOfNoncollapsed hC hconvergence.limit hkappa |
| 64 | (hall rfl)⟩ |
| 65 | |
| 66 | /-- A radius-cut family is enough for the infinite-horizon branch: after |
| 67 | eliminating the dependent horizon equality, specialize it at the radius |
| 68 | tested by `BlowupLimitNoncollapsed`. -/ |
| 69 | theorem repairedLongConclusion_of_radius_cut_family |
| 70 | (hC : RicciFlowCurvatureTheory.{u}) |
| 71 | (S : GeneralizedBlowupSequence.{u}) {kappa r₀ : ℝ} {T₀ : ℝ≥0∞} |
| 72 | (hkappa : 0 < kappa) |
| 73 | (hconvergence : GeneralizedBlowupConvergence S (blowupBackwardInterval T₀)) |
| 74 | (hnoncollapsed : M30LimitNoncollapsedAtScale hconvergence.limit kappa r₀) |
| 75 | (hcuts : ∀ h : T₀ = ⊤, ∀ R : ℝ, 0 < R → |
| 76 | M30LimitNoncollapsedAtScale (h ▸ hconvergence.limit) kappa R) : |
| 77 | Nonempty (RepairedLongControlledBlowupConclusion S kappa r₀ T₀) := by |
| 78 | apply repairedLongConclusion_of_allScale_noncollapsed hC S hkappa |
| 79 | hconvergence hnoncollapsed |
| 80 | intro h |
| 81 | subst h |
| 82 | exact blowupLimitNoncollapsed_of_all_radius_cuts _ (hcuts rfl) |
| 83 | |
| 84 | /-- Combine the checked long-control convergence adapter with externally |
| 85 | supplied finite-scale and all-scale noncollapse certificates. -/ |
| 86 | theorem exists_repaired_long_conclusion_of_controls |
| 87 | (P : M30ControlledBlowupPredecessors.{u}) |
| 88 | (hMixed : WithinFlowJetBoundsService.{0, 0}) |
| 89 | (hFlow : WithinBilinearFlowService.{0}) |
| 90 | (hSlice : SpatialSliceJetConvergenceService.{0, 0, 0, 0, 0}) |
| 91 | (S : GeneralizedBlowupSequence.{u}) |
| 92 | {epsilon canonicalConstant kappa r₀ mu : ℝ} {T₀ : ℝ≥0∞} |
| 93 | (H : M30LongBlowupControls S epsilon canonicalConstant kappa r₀ mu T₀) |
| 94 | (hbound : GeneralizedBlowupBoundedDistance S) |
| 95 | (Hslab : M30LongSlabControlService S kappa r₀ T₀) |
| 96 | (hnoncollapsed : ∀ L : GeneralizedBlowupConvergence S |
| 97 | (blowupBackwardInterval T₀), |
| 98 | M30LimitNoncollapsedAtScale L.limit kappa r₀) |
| 99 | (hall : ∀ (L : GeneralizedBlowupConvergence S |
| 100 | (blowupBackwardInterval T₀)) (h : T₀ = ⊤), |
| 101 | BlowupLimitNoncollapsed (h ▸ L.limit) kappa) : |
| 102 | Nonempty (RepairedLongControlledBlowupConclusion S kappa r₀ T₀) := by |
| 103 | obtain ⟨L⟩ := exists_long_generalized_convergence_of_controls |
| 104 | P hMixed hFlow hSlice S H hbound Hslab |
| 105 | exact repairedLongConclusion_of_allScale_noncollapsed P.m04 S H.kappa_pos L |
| 106 | (hnoncollapsed L) (hall L) |
| 107 | |
| 108 | /-- Variant of the long controls adapter for a source proof that produces |
| 109 | finite noncollapse at every radius. The radius family is converted only at |
| 110 | the final limit boundary, where the tested radius is available to specialize |
| 111 | the finite predicate. -/ |
| 112 | theorem exists_repaired_long_conclusion_of_radius_cut_family |
| 113 | (P : M30ControlledBlowupPredecessors.{u}) |
| 114 | (hMixed : WithinFlowJetBoundsService.{0, 0}) |
| 115 | (hFlow : WithinBilinearFlowService.{0}) |
| 116 | (hSlice : SpatialSliceJetConvergenceService.{0, 0, 0, 0, 0}) |
| 117 | (S : GeneralizedBlowupSequence.{u}) |
| 118 | {epsilon canonicalConstant kappa r₀ mu : ℝ} {T₀ : ℝ≥0∞} |
| 119 | (H : M30LongBlowupControls S epsilon canonicalConstant kappa r₀ mu T₀) |
| 120 | (hbound : GeneralizedBlowupBoundedDistance S) |
| 121 | (Hslab : M30LongSlabControlService S kappa r₀ T₀) |
| 122 | (hnoncollapsed : ∀ L : GeneralizedBlowupConvergence S |
| 123 | (blowupBackwardInterval T₀), |
| 124 | M30LimitNoncollapsedAtScale L.limit kappa r₀) |
| 125 | (hcuts : ∀ (L : GeneralizedBlowupConvergence S |
| 126 | (blowupBackwardInterval T₀)) (h : T₀ = ⊤) (R : ℝ), 0 < R → |
| 127 | M30LimitNoncollapsedAtScale (h ▸ L.limit) kappa R) : |
| 128 | Nonempty (RepairedLongControlledBlowupConclusion S kappa r₀ T₀) := by |
| 129 | obtain ⟨L⟩ := exists_long_generalized_convergence_of_controls |
| 130 | P hMixed hFlow hSlice S H hbound Hslab |
| 131 | exact repairedLongConclusion_of_radius_cut_family P.m04 S H.kappa_pos L |
| 132 | (hnoncollapsed L) (hcuts L) |
| 133 | |
| 134 | end PoincareMT.M30 |