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.Surgery.StandardCap.Existence.Lifetime.Curvature.CapScalarBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Analysis.Basic.EarlierBadPoint |
| 3 | |
| 4 | /-! |
| 5 | # The actual bad-point sequence for a cap flow |
| 6 | |
| 7 | Uniform scalar bounds on every earlier closed slab make supremum point |
| 8 | selection legitimate. The resulting bad scales diverge, and every |
| 9 | earlier point above four times the selected scale is good. |
| 10 | Source: Morgan-Tian Theorem 12.28, pp. 323-324; bad-point selection |
| 11 | derivation, sections 2-4. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.M34 |
| 20 | |
| 21 | variable {g0 : StandardInitialMetric} (F : PartialStandardCapFlow g0) |
| 22 | (P : M34StandardCapPredecessors) |
| 23 | (R : OrdinaryProductRicciGeometry F.flow.metric (partialFlowSpacetimeInterval F)) |
| 24 | |
| 25 | local notation "G" => ordinaryChapter11Flow |
| 26 | (I := partialFlowSpacetimeInterval F) (F := F.flow) R |
| 27 | |
| 28 | include P |
| 29 | |
| 30 | /-- Arbitrarily high bad scalar values give an actual diverging bad |
| 31 | sequence with the all-earlier high-scalar control of Theorem 12.28. -/ |
| 32 | theorem partialFlow_chapter11_bad_points (Good : (G).point → Prop) |
| 33 | (hbad : ∀ Q : ℝ, 0 < Q → ∃ p : (G).point, Q ≤ (G).scalar p ∧ ¬ Good p) : |
| 34 | ∃ p : ℕ → (G).point, |
| 35 | (∀ k : ℕ, (k : ℝ) + 1 < (G).scalar (p k) ∧ ¬ Good (p k) ∧ |
| 36 | ∀ q : (G).point, q.1 ≤ (p k).1 → 4 * (G).scalar (p k) ≤ (G).scalar q → Good q) ∧ |
| 37 | Tendsto (fun k => (G).scalar (p k)) atTop atTop := by |
| 38 | classical |
| 39 | have hchoose (k : ℕ) : ∃ p : (G).point, |
| 40 | (k : ℝ) + 1 < (G).scalar p ∧ ¬ Good p ∧ |
| 41 | ∀ q : (G).point, q.1 ≤ p.1 → 4 * (G).scalar p ≤ (G).scalar q → Good q := by |
| 42 | obtain ⟨p0, hseed, hbad0⟩ := hbad (2 * ((k : ℝ) + 1) + 1) (by positivity) |
| 43 | obtain ⟨B, hB⟩ := partialFlow_chapter11_scalar_past_bound F P R |
| 44 | (ordinaryChapter11Point_time_mem R p0) |
| 45 | have hbounded : BddAbove ((G).scalar '' {p : (G).point | p.1 ≤ p0.1 ∧ ¬ Good p}) := by |
| 46 | refine ⟨B, ?_⟩ |
| 47 | rintro _ ⟨q, hq, rfl⟩ |
| 48 | exact hB q hq.1 |
| 49 | have hpos : 0 < (G).scalar p0 := by have := Nat.cast_nonneg (α := ℝ) k; linarith |
| 50 | obtain ⟨p, _, hp, hvalue, hgood⟩ := exists_bad_point_with_earlier_good |
| 51 | (fun p : (G).point => p.1) (G).scalar Good p0 hbad0 hpos hbounded |
| 52 | have hpvalue : (k : ℝ) + 1 < (G).scalar p := by linarith |
| 53 | refine ⟨p, hpvalue, hp, ?_⟩ |
| 54 | intro q htime hhigh |
| 55 | apply hgood q htime |
| 56 | have := Nat.cast_nonneg (α := ℝ) k |
| 57 | linarith |
| 58 | choose p hp using hchoose |
| 59 | refine ⟨p, hp, ?_⟩ |
| 60 | apply tendsto_atTop_mono (g := fun k : ℕ => (G).scalar (p k)) |
| 61 | (f := fun k : ℕ => (k : ℝ)) _ tendsto_natCast_atTop_atTop |
| 62 | intro k |
| 63 | linarith [(hp k).1] |
| 64 | |
| 65 | end PoincareMT.M34 |