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.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Sequences.FirstFailure |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Sequences.BlowupSequence |
| 4 | |
| 5 | /-! |
| 6 | # First failure of full strong canonical control |
| 7 | |
| 8 | Morgan-Tian Theorem 12.28, pp. 323-324, and Theorem 11.1, pp. 267-269. |
| 9 | Select the original points using full Chapter 9 certificates. All earlier |
| 10 | points above four times the base scalar then have exactly the strong |
| 11 | canonical control used by M30, including its full cap data. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.M35.OrdinaryRealization |
| 20 | |
| 21 | /-- Theorem 12.28: unbounded failure of strong canonical control |
| 22 | produces an actual diverging sequence satisfying M30's earlier canonical |
| 23 | hypothesis, with failure retained at each original selected basepoint. -/ |
| 24 | theorem exists_strong_first_failure_sequence (P : M35StandardCapPredecessors) |
| 25 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 26 | (epsilon C H₀ : ℝ) (hH₀ : 0 < H₀) |
| 27 | (hbad : ∀ B : ℝ, 0 < B → ∃ t, ∃ ht : t ∈ Ico 0 E.flow.base.lifetime, |
| 28 | ∃ x : StandardCapSpace, B ≤ (E.flow.connection t).scalarCurvature x ∧ |
| 29 | ¬GeneralizedCanonicalControl (F := generalizedFlow E.flow.base.flow) |
| 30 | t ((sliceDiffeomorph ht).symm x) epsilon C) : |
| 31 | ∃ (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 32 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 33 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop), |
| 34 | (∀ k : ℕ, H₀ + (k : ℝ) ≤ (E.flow.connection (t k)).scalarCurvature (x k)) ∧ |
| 35 | (∀ k, ¬GeneralizedCanonicalControl (F := generalizedFlow E.flow.base.flow) |
| 36 | (t k) ((sliceDiffeomorph (ht k)).symm (x k)) epsilon C) ∧ |
| 37 | ∀ k, generalizedEarlierStrongCanonicalNeighborhoods |
| 38 | ((blowupSequence P E t x ht hR).flow k) epsilon C |
| 39 | ((blowupSequence P E t x ht hR).base k).1 |
| 40 | ((blowupSequence P E t x ht hR).base k).2 := by |
| 41 | let Good (t : ℝ) (x : StandardCapSpace) : Prop := |
| 42 | ∀ ht : t ∈ Ico 0 E.flow.base.lifetime, |
| 43 | GeneralizedCanonicalControl (F := generalizedFlow E.flow.base.flow) |
| 44 | t ((sliceDiffeomorph ht).symm x) epsilon C |
| 45 | have hbad' : ∀ B : ℝ, 0 < B → ∃ t ∈ Ico 0 E.flow.base.lifetime, |
| 46 | ∃ x : StandardCapSpace, B ≤ (E.flow.connection t).scalarCurvature x ∧ ¬Good t x := by |
| 47 | intro B hB |
| 48 | obtain ⟨t, ht, x, hx, hbadx⟩ := hbad B hB |
| 49 | exact ⟨t, ht, x, hx, fun h => hbadx (h ht)⟩ |
| 50 | obtain ⟨t, x, ht, hx, hbadx, hR, hprior⟩ := |
| 51 | exists_first_failure_sequence E.flow Good H₀ hH₀ hbad' |
| 52 | refine ⟨t, x, ht, hR, hx, ?_, ?_⟩ |
| 53 | · intro k hgood |
| 54 | exact hbadx k (fun _ => hgood) |
| 55 | · intro k s hs hst y hhigh |
| 56 | have hscale := scalar_eq P E.flow.base.flow (ht k) (x k) |
| 57 | have hscalar := scalar_eq P E.flow.base.flow hs y.val |
| 58 | have hhigh' : 4 * (E.flow.connection (t k)).scalarCurvature (x k) ≤ |
| 59 | (E.flow.connection s).scalarCurvature y.val := by |
| 60 | exact (congrArg (fun r : ℝ => 4 * r) hscale).symm ▸ (hscalar ▸ hhigh) |
| 61 | exact ⟨hprior k s hs hst y.val hhigh' hs⟩ |
| 62 | |
| 63 | end PoincareMT.M35.OrdinaryRealization |