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.Compactness.Ancient.GeometricLimit.NormalCharts |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Restriction |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.DiagonalCharts |
| 4 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.Source |
| 5 | |
| 6 | /-! |
| 7 | # One ancient pointed limit of expanding cylinders |
| 8 | |
| 9 | A fixed buffered reference window supplies one diagonal normal atlas. The |
| 10 | actual expanding-cylinder estimates control every spacetime jet in those |
| 11 | same charts on all finite ancient windows. One coordinate extraction and |
| 12 | spatial quotient produce the ancient flow, its pointed convergence, and |
| 13 | completeness of its zero-time metric. |
| 14 | |
| 15 | Reference: Kleiner--Lott, Corollary 44.1, pp. 2682--2683; Appendix E, |
| 16 | Theorem E.1 and Corollary E.2, pp. 2848--2849. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | set_option synthInstance.maxHeartbeats 100000 |
| 22 | set_option maxSynthPendingDepth 12 |
| 23 | set_option maxHeartbeats 1000000 |
| 24 | |
| 25 | open Set Filter |
| 26 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 27 | |
| 28 | namespace PoincareMT.RicciFlow |
| 29 | |
| 30 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 31 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 32 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 33 | |
| 34 | /-- Expanding complete nonnegative terminal cylinders produce one compatible |
| 35 | pointed ancient limit after any fixed positive interior shift less than one. |
| 36 | Its zero-time metric is complete; no ancient-limit data is supplied. -/ |
| 37 | theorem exists_complete_ancient_limit_of_expanding_cylinders |
| 38 | {m : ℕ} (hC : RicciFlowCurvatureTheory.{0}) (hm : 0 < m) |
| 39 | (C : ℕ → FlowCarrier.{0} (m + 1)) (J : ℕ → Set ℝ) |
| 40 | (F : ∀ k, RicciFlow (m + 1) (C k).carrier (J k)) |
| 41 | (p : ∀ k, (C k).carrier) (A L : ℕ → ℝ) |
| 42 | (hA : Tendsto A atTop atTop) (hL : Tendsto L atTop atTop) |
| 43 | (hJ : ∀ k, Icc (-A k) 0 ⊆ interior (J k)) |
| 44 | (hcomplete : ∀ k, ∀ t ∈ Icc (-A k) 0, MetricComplete ((F k).metric t)) |
| 45 | (hoperator : ∀ k, ∀ t ∈ Icc (-A k) 0, ∀ x : (C k).carrier, |
| 46 | ((F k).connection t).NonnegativeCurvatureOperator x) |
| 47 | (hscalar : ∀ k, ∀ t ∈ Icc (-A k) 0, |
| 48 | ∀ x ∈ ((F k).metric 0).ball (p k) (L k), |
| 49 | ((F k).connection t).scalarCurvature x ≤ 4) |
| 50 | {ν : ℝ} (hν : 0 < ν) |
| 51 | (hvolume : ∀ᶠ k in atTop, ENNReal.ofReal ν ≤ |
| 52 | ((F k).metric 0).volumeMeasure (((F k).metric 0).ball (p k) 1)) |
| 53 | {δ : ℝ} (hδ : 0 < δ) (hδone : δ < 1) : |
| 54 | ∃ G : AncientPointedGeometricConvergence C (fun k t => (F k).metric (t - δ)) p δ, |
| 55 | G.limitCarrier.metricComplete (G.limitFlow.metric 0) := by |
| 56 | classical |
| 57 | obtain ⟨k₀, hk₀⟩ := eventually_atTop.mp (hA.eventually_ge_atTop 2) |
| 58 | have hsub (k : ℕ) : Icc (-2 : ℝ) 0 ⊆ Icc (-A (k + k₀)) 0 := |
| 59 | Icc_subset_Icc (by linarith [hk₀ (k + k₀) (Nat.le_add_left k₀ k)]) le_rfl |
| 60 | have hJ₀ : ∀ k, Icc (-2 : ℝ) 0 ⊆ interior (J (k + k₀)) := |
| 61 | fun k _ ht => hJ (k + k₀) (hsub k ht) |
| 62 | have htail : Tendsto (fun k : ℕ => k + k₀) atTop atTop := tendsto_add_atTop_nat k₀ |
| 63 | obtain ⟨H₀, hseq⟩ := exists_pointedCompactnessHypotheses_of_terminal_cylinders |
| 64 | hC hm (fun k => C (k + k₀)) (fun k => J (k + k₀)) |
| 65 | (fun k => F (k + k₀)) (fun k => p (k + k₀)) (by norm_num : (-2 : ℝ) ≤ -1) |
| 66 | hδ hδone.le (by linarith) hJ₀ |
| 67 | (fun k t ht => hcomplete (k + k₀) t (hsub k ht)) |
| 68 | (fun k t ht x => hoperator (k + k₀) t (hsub k ht) x) |
| 69 | (fun k => L (k + k₀)) (hL.comp htail) |
| 70 | (fun k t ht x hx => hscalar (k + k₀) t (hsub k ht) x hx) |
| 71 | hν (htail.eventually hvolume) |
| 72 | rcases H₀ with ⟨hT, seq, hvol, hcompact, hspace, hall, hnoncollapse⟩ |
| 73 | dsimp only at hseq |
| 74 | subst seq |
| 75 | let H : PointedRicciFlowCompactnessHypotheses (m + 1) (-2 + δ) δ := |
| 76 | ⟨hT, bufferedCylinderSequence (fun k => C (k + k₀)) (fun k => J (k + k₀)) |
| 77 | (fun k => F (k + k₀)) (fun k => p (k + k₀)) (-2) δ (by norm_num) hJ₀, |
| 78 | hvol, hcompact, hspace, hall, hnoncollapse⟩ |
| 79 | obtain ⟨σ, hσ, R, ρ, a, b, N, hparams, hcovers⟩ := |
| 80 | H.exists_diagonal_normalChartCovers (by omega) |
| 81 | let S := H.sequence.subsequence σ |
| 82 | let φ := fun k => σ k + k₀ |
| 83 | have hφ : StrictMono φ := fun i j hij => Nat.add_lt_add_right (hσ hij) k₀ |
| 84 | let cover : ∀ k j, j ≤ k → NormalChartCover (S.flow k).flow.metric |
| 85 | (S.flow k).base (-2 + δ) δ ((j : ℝ) + 1) (R j) (ρ j) (a j) (b j) (N j) := |
| 86 | fun k j hjk => (hcovers k j hjk).choose |
| 87 | have hraw := diagonal_referenceCharts_analytic_bounds_of_expanding_cylinders |
| 88 | hC hm S H.time_bounds (fun k => J (φ k)) (fun k => F (φ k)) |
| 89 | (fun k => A (φ k)) (fun k => L (φ k)) (hA.comp hφ.tendsto_atTop) |
| 90 | (hL.comp hφ.tendsto_atTop) (fun k => hJ (φ k)) |
| 91 | (fun k => hcomplete (φ k)) (fun k => hoperator (φ k)) |
| 92 | (fun k => hscalar (φ k)) hν (hφ.tendsto_atTop.eventually hvolume) |
| 93 | hδ hδone (fun _ _ => rfl) hparams cover |
| 94 | let Fseq (k : ℕ) : RicciFlow (m + 1) (S.carrier k).carrier |
| 95 | ((fun t : ℝ => t - δ) ⁻¹' J (φ k)) := (F (φ k)).bufferedExpandingFlow δ |
| 96 | have htime : ∀ s t : ℝ, t < δ → ∀ᶠ k in atTop, |
| 97 | Icc s t ⊆ (fun u : ℝ => u - δ) ⁻¹' J (φ k) := by |
| 98 | intro s t ht |
| 99 | exact hφ.tendsto_atTop.eventually (eventually_buffered_time_window J A hA hJ δ s t ht) |
| 100 | obtain ⟨G, hG⟩ := NormalChartCover.exists_complete_ancient_geometric_limit |
| 101 | Fseq (fun _ => rfl) hδ htime cover (fun j => (hparams j).1) |
| 102 | (fun j => by linarith [(hparams j).1, (hparams j).2.1]) |
| 103 | (fun j => (hparams j).2.2.1) hraw |
| 104 | exact ⟨G.ofSubsequence hφ, hG⟩ |
| 105 | |
| 106 | end PoincareMT.RicciFlow |