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.AncientKappa.Compactness.Boundedness.Limit |
| 2 | |
| 3 | /-! |
| 4 | # Quantitative scalar normalization on the same buffered raw limit |
| 5 | |
| 6 | The source scalar evolution estimate passes through the stored subsequence |
| 7 | and base-preserving maps. The constant is independent of the buffer and the |
| 8 | choice of actual geometric limit. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open Set Filter |
| 15 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 16 | |
| 17 | namespace PoincareMT.RawAncientSequence |
| 18 | |
| 19 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 20 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 21 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 22 | |
| 23 | variable (C : ℕ → FlowCarrier.{0} 3) |
| 24 | (F : ∀ k, RicciFlow 3 (C k).carrier (Iic 0)) (p : ∀ k, (C k).carrier) |
| 25 | |
| 26 | /-- The base scalar of every actual buffered limit differs from the source |
| 27 | terminal normalization by at most `B * δ`. No new subsequence is taken. -/ |
| 28 | theorem exists_buffered_limit_scalar_error_constant |
| 29 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 30 | (hc : ∀ k t, t ≤ 0 → MetricComplete ((F k).metric t)) |
| 31 | (hop : ∀ k t, t ≤ 0 → ∀ x, ((F k).connection t).NonnegativeCurvatureOperator x) |
| 32 | (L : ℕ → ℝ) (hL : Tendsto L atTop atTop) |
| 33 | (hbound : ∀ k t, t ≤ 0 → ∀ x ∈ ((F k).metric 0).ball (p k) (L k), |
| 34 | |((F k).connection t).curvatureTensorNorm x| ≤ 4) |
| 35 | (hnormalized : ∀ k, ((F k).connection 0).scalarCurvature (p k) = 1) |
| 36 | (hbase : ∀ k t, t ≤ 0 → ((F k).connection t).scalarCurvature (p k) ≤ 1) : |
| 37 | ∃ B : ℝ, 0 < B ∧ ∀ {δ : ℝ}, 0 < δ → |
| 38 | ∀ G : AncientPointedGeometricConvergence C (fun k t => (F k).metric (t - δ)) p δ, |
| 39 | 1 - (G.limitFlow.connection 0).scalarCurvature G.base ≤ B * δ ∧ |
| 40 | (G.limitFlow.connection 0).scalarCurvature G.base ≤ 1 := by |
| 41 | obtain ⟨B, hB, herror⟩ := exists_eventually_base_scalar_time_error_constant C F p |
| 42 | P hc hop L hL hbound hnormalized hbase |
| 43 | refine ⟨B, hB, ?_⟩ |
| 44 | intro δ hδ G |
| 45 | let Fseq (k : ℕ) := (F k).bufferedExpandingFlow δ |
| 46 | have htime : ∀ a b : ℝ, b < δ → ∀ᶠ k : ℕ in atTop, |
| 47 | Icc a b ⊆ (fun t : ℝ => t - δ) ⁻¹' Iic 0 := by |
| 48 | intro a b hb |
| 49 | exact Eventually.of_forall fun k t ht => by |
| 50 | change t - δ ≤ 0 |
| 51 | linarith [ht.2] |
| 52 | have hconv := G.tendsto_scalarCurvature_on_finite_windows Fseq hδ htime 0 hδ G.base |
| 53 | constructor |
| 54 | · apply le_of_tendsto (tendsto_const_nhds.sub hconv) |
| 55 | filter_upwards [G.subsequence_strictMono.tendsto_atTop.eventually herror] with k hk |
| 56 | change 1 - ((F (G.subsequence k)).connection (0 + -δ)).scalarCurvature |
| 57 | (G.embedding k G.base) ≤ B * δ |
| 58 | rw [zero_add, G.base_preserving] |
| 59 | simpa only [zero_sub, neg_neg] using hk (-δ) (by linarith) |
| 60 | · apply le_of_tendsto hconv |
| 61 | exact Eventually.of_forall fun k => by |
| 62 | change ((F (G.subsequence k)).connection (0 + -δ)).scalarCurvature |
| 63 | (G.embedding k G.base) ≤ 1 |
| 64 | rw [zero_add, G.base_preserving] |
| 65 | exact hbase (G.subsequence k) (-δ) (by linarith) |
| 66 | |
| 67 | end PoincareMT.RawAncientSequence |