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.Construction.LongTime.Assembly.LongSlabService |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.BackwardLimit.BackwardGeneralizedConvergence |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.Noncollapse.SourceVolumeAtPoint |
| 4 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.Universe.OutputFiniteNoncollapse |
| 5 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.Generalized.Noncollapse |
| 6 | |
| 7 | /-! |
| 8 | # Retaining the source noncollapse certificate |
| 9 | |
| 10 | The generalized convergence record intentionally contains only the geometric |
| 11 | comparison data needed by the compactness assembly. The long-slab input has |
| 12 | more information: every finite slab also carries the scale-bounded volume |
| 13 | certificate at every displayed source point. This wrapper keeps that data |
| 14 | next to a selected convergence witness so a later ordinary-volume transport |
| 15 | argument can use the same subsequence and source cylinders. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M30 |
| 26 | |
| 27 | /-- A generalized convergence witness together with the finite-slab source |
| 28 | noncollapse family from the long input. The source field is deliberately |
| 29 | stated before any limit transport: it retains the original moving carriers, |
| 30 | the endpoint-compatible slab, and the exact `kappa` and `r₀` constants. -/ |
| 31 | structure GeneralizedBlowupConvergenceWithSourceNoncollapse |
| 32 | (S : GeneralizedBlowupSequence.{u}) (kappa r₀ : ℝ) (T₀ : ℝ≥0∞) where |
| 33 | convergence : GeneralizedBlowupConvergence S (blowupBackwardInterval T₀) |
| 34 | source : ∀ T : ℝ, 0 < T → ENNReal.ofReal T < T₀ → |
| 35 | ∃ B : ℝ, 0 ≤ B ∧ ∀ A : ℝ, 0 < A → ∀ eta : ℝ, 0 < eta → |
| 36 | ∀ᶠ k : ℕ in atTop, |
| 37 | ∃ Tplus : ℝ, 0 < Tplus ∧ T < Tplus ∧ |
| 38 | ENNReal.ofReal Tplus < T₀ ∧ |
| 39 | Nonempty (NoncollapsedControlledBlowupCylinder S k A T B eta kappa r₀) |
| 40 | |
| 41 | /-- The slab service can be attached to any already selected generalized |
| 42 | convergence witness without changing the witness or its subsequence. -/ |
| 43 | def generalizedConvergenceWithSourceNoncollapse_of_slabService |
| 44 | {S : GeneralizedBlowupSequence.{u}} {kappa r₀ : ℝ} {T₀ : ℝ≥0∞} |
| 45 | (H : M30LongSlabControlService S kappa r₀ T₀) |
| 46 | (L : GeneralizedBlowupConvergence S (blowupBackwardInterval T₀)) : |
| 47 | GeneralizedBlowupConvergenceWithSourceNoncollapse S kappa r₀ T₀ := by |
| 48 | exact { |
| 49 | convergence := L |
| 50 | source := fun T hT hTT => H.noncollapsedBounds T hT hTT } |
| 51 | |
| 52 | /-- The source certificate remains valid after passing to the convergence |
| 53 | subsequence. This small filter adapter is useful when the ordinary source |
| 54 | family is indexed by the selected limit sequence. -/ |
| 55 | theorem source_noncollapse_eventually_on_subsequence |
| 56 | {S : GeneralizedBlowupSequence.{u}} {kappa r₀ : ℝ} {T₀ : ℝ≥0∞} |
| 57 | (L : GeneralizedBlowupConvergenceWithSourceNoncollapse S kappa r₀ T₀) |
| 58 | (T : ℝ) (hT : 0 < T) (hTT : ENNReal.ofReal T < T₀) |
| 59 | (A : ℝ) (hA : 0 < A) (eta : ℝ) (heta : 0 < eta) : |
| 60 | ∃ B : ℝ, 0 ≤ B ∧ |
| 61 | ∀ᶠ k : ℕ in atTop, |
| 62 | ∃ Tplus : ℝ, 0 < Tplus ∧ T < Tplus ∧ |
| 63 | ENNReal.ofReal Tplus < T₀ ∧ |
| 64 | Nonempty (NoncollapsedControlledBlowupCylinder S |
| 65 | (L.convergence.subsequence k) A T B eta kappa r₀) := by |
| 66 | obtain ⟨B, hB, hfamily⟩ := L.source T hT hTT |
| 67 | refine ⟨B, hB, ?_⟩ |
| 68 | exact L.convergence.subsequence_strictMono.tendsto_atTop.eventually |
| 69 | (hfamily A hA eta heta) |
| 70 | |
| 71 | /-- The subsequence certificate may be weakened before a source ball is |
| 72 | shrunk: lowering the constant and the permitted radius range preserves the |
| 73 | same controlled cylinder and its endpoint data. -/ |
| 74 | theorem source_noncollapse_eventually_on_subsequence_mono |
| 75 | {S : GeneralizedBlowupSequence.{u}} {kappa r₀ kappa' r₀' : ℝ} |
| 76 | {T₀ : ℝ≥0∞} |
| 77 | (L : GeneralizedBlowupConvergenceWithSourceNoncollapse S kappa r₀ T₀) |
| 78 | (T : ℝ) (hT : 0 < T) (hTT : ENNReal.ofReal T < T₀) |
| 79 | (A : ℝ) (hA : 0 < A) (eta : ℝ) (heta : 0 < eta) |
| 80 | (hkappa : kappa' ≤ kappa) (hr₀ : r₀' ≤ r₀) : |
| 81 | ∃ B : ℝ, 0 ≤ B ∧ |
| 82 | ∀ᶠ k : ℕ in atTop, |
| 83 | ∃ Tplus : ℝ, 0 < Tplus ∧ T < Tplus ∧ |
| 84 | ENNReal.ofReal Tplus < T₀ ∧ |
| 85 | Nonempty (NoncollapsedControlledBlowupCylinder S |
| 86 | (L.convergence.subsequence k) A T B eta kappa' r₀') := by |
| 87 | obtain ⟨B, hB, hfamily⟩ := L.source T hT hTT |
| 88 | refine ⟨B, hB, ?_⟩ |
| 89 | filter_upwards [L.convergence.subsequence_strictMono.tendsto_atTop.eventually |
| 90 | (hfamily A hA eta heta)] with k hk |
| 91 | obtain ⟨Tplus, hTplus, hTplusT, hTplusT₀, hN⟩ := hk |
| 92 | obtain ⟨N⟩ := hN |
| 93 | refine ⟨Tplus, hTplus, hTplusT, hTplusT₀, ⟨{ N with |
| 94 | noncollapsed := fun s hs x hx => |
| 95 | (N.noncollapsed s hs x hx).mono_kappa hkappa |>.mono_radius hr₀ }⟩⟩ |
| 96 | |
| 97 | end PoincareMT.M30 |