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.CofinalExtraction.CofinalSourceDiagonal |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.BackwardLimit.BackwardGeneralizedConvergence |
| 3 | |
| 4 | /-! |
| 5 | # Horizon compactness from finite source prefixes |
| 6 | |
| 7 | For a cofinal family of time windows, each finite list of controlled source |
| 8 | bounds may be obtained from a different finite limit. Their coefficients |
| 9 | must be fixed per window. A source diagonal retains those bounds and the |
| 10 | terminal compactness and volume hypotheses, and the established expanding |
| 11 | compactness theorem produces a limit at the full horizon. |
| 12 | |
| 13 | This is the limit-horizon step in Morgan--Tian Theorem 11.8, pp. 272--279. |
| 14 | No identification or uniqueness assertion for the intermediate limits is |
| 15 | used in the construction. |
| 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 | /-- Finite prefixes of cofinal source bounds give an actual generalized |
| 28 | convergence at their full horizon. The finite prefixes need not use nested |
| 29 | source subsequences or compatible geometric limit carriers. -/ |
| 30 | theorem exists_backward_convergence_of_finite_prefixes |
| 31 | (hShi : LocalCurvatureDerivativeEstimates.{0}) |
| 32 | (hMixed : WithinFlowJetBoundsService.{0, 0}) |
| 33 | (hFlow : WithinBilinearFlowService.{0}) |
| 34 | (hSlice : SpatialSliceJetConvergenceService.{0, 0, 0, 0, 0}) |
| 35 | (S : GeneralizedBlowupSequence.{u}) |
| 36 | {T0 : ℝ≥0∞} {rho v : ℝ} |
| 37 | (hT0 : 0 < T0) (hrho : 0 < rho) (hv : 0 < v) |
| 38 | (hcompact : BlowupBaseBallsCompact S) |
| 39 | (hvolume : ∀ᶠ k : ℕ in atTop, |
| 40 | ENNReal.ofReal (v / (Real.sqrt (S.scale k)) ^ 3) ≤ |
| 41 | calibratedMetricVolume ((S.flow k).metric (S.base k).1) |
| 42 | (S.baseBall k rho)) |
| 43 | (T B : ℕ → ℝ) (hB : ∀ j, 0 ≤ B j) |
| 44 | (hcofinal : ∀ t : ℝ, 0 < t → ENNReal.ofReal t < T0 → ∃ j, t ≤ T j) |
| 45 | (hprefix : ∀ n : ℕ, ∃ phi : ℕ → ℕ, StrictMono phi ∧ |
| 46 | ∀ j : ℕ, j ≤ n → ∀ A : ℝ, 0 < A → ∀ eta : ℝ, 0 < eta → |
| 47 | ∀ᶠ k : ℕ in atTop, |
| 48 | Nonempty (ControlledBlowupCylinder S (phi k) A (T j) (B j) eta)) : |
| 49 | Nonempty (GeneralizedBlowupConvergence S (blowupBackwardInterval T0)) := by |
| 50 | obtain ⟨sigma, hsigma, hC⟩ := |
| 51 | exists_reindexed_diagonal_controlled_cylinders S T B hprefix |
| 52 | let S' := reindexedBlowupSequence S sigma hsigma |
| 53 | have hcompact' : BlowupBaseBallsCompact S' := |
| 54 | fun A hA => hsigma.tendsto_atTop.eventually (hcompact A hA) |
| 55 | have hvolume' : ∀ᶠ k : ℕ in atTop, |
| 56 | ENNReal.ofReal (v / (Real.sqrt (S'.scale k)) ^ 3) ≤ |
| 57 | calibratedMetricVolume ((S'.flow k).metric (S'.base k).1) |
| 58 | (S'.baseBall k rho) := hsigma.tendsto_atTop.eventually hvolume |
| 59 | have hcyl : ∀ t : ℝ, 0 < t → ENNReal.ofReal t < T0 → |
| 60 | ∃ b : ℝ, 0 ≤ b ∧ ∀ A : ℝ, 0 < A → ∀ eta : ℝ, 0 < eta → |
| 61 | ∀ᶠ k : ℕ in atTop, |
| 62 | Nonempty (ControlledBlowupCylinder S' k A t b eta) := by |
| 63 | intro t ht htT0 |
| 64 | obtain ⟨j, hj⟩ := hcofinal t ht htT0 |
| 65 | refine ⟨B j, hB j, ?_⟩ |
| 66 | intro A hA eta heta |
| 67 | filter_upwards [hC j A hA eta heta] with k hk |
| 68 | obtain ⟨E⟩ := hk |
| 69 | have hI : Icc (-t) 0 ⊆ Icc (-(T j)) 0 := |
| 70 | Icc_subset_Icc (neg_le_neg hj) le_rfl |
| 71 | exact ⟨{ |
| 72 | embedding := Cylinder.restrict E.embedding hI Subset.rfl |
| 73 | zero_identity := fun hs x hx => E.zero_identity (hI hs) x hx |
| 74 | curvature_bound := fun s hs x hx => E.curvature_bound s (hI hs) x hx |
| 75 | negative_curvature_bound := fun s hs x hx => |
| 76 | E.negative_curvature_bound s (hI hs) x hx }⟩ |
| 77 | obtain ⟨G⟩ := exists_backward_generalizedBlowupConvergence |
| 78 | hShi hMixed hFlow hSlice S' hT0 hrho hv hcompact' hcyl hvolume' |
| 79 | exact ⟨convergenceOfReindexed G⟩ |
| 80 | |
| 81 | end PoincareMT.M30 |