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.CapGeometry.RadialAnnulusComparison |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.UnitTimeCanonical |
| 4 | |
| 5 | /-! |
| 6 | # Uniform full radial-neck comparison in the actual flow |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327. The independently checked |
| 9 | unit-time canonical control supplies every earlier certificate needed |
| 10 | for actual ancient compactness. A failure sequence with divergent |
| 11 | scalar and normalized tip distance contradicts its literal radial |
| 12 | annulus comparison, with the requested epsilon unchanged. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.OrdinaryRealization |
| 21 | |
| 22 | /-- Theorem 12.32: one actual scalar and normalized tip-distance |
| 23 | threshold supplies the full intrinsic radial-annulus comparison. -/ |
| 24 | theorem exists_radial_annulus_comparison_threshold |
| 25 | (P : M35StandardCapPredecessors) |
| 26 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 27 | (epsilon : ℝ) (he : 0 < epsilon) : |
| 28 | ∃ B : ℝ, 0 < B ∧ ∀ t, ∀ ht : t ∈ Ico 0 E.flow.base.lifetime, |
| 29 | ∀ x : StandardCapSpace, B ≤ (E.flow.connection t).scalarCurvature x → |
| 30 | B ≤ ((E.flow.metric t).edist 0 x).toReal * |
| 31 | Real.sqrt ((E.flow.connection t).scalarCurvature x) → |
| 32 | RadialAnnulusComparison E t ht x epsilon := by |
| 33 | classical |
| 34 | obtain ⟨delta, hdelta, hcanonical⟩ := exists_unit_time_canonical_constants P |
| 35 | obtain ⟨deltaA, hdeltaA, hextract⟩ := exists_ancient_extraction_threshold P |
| 36 | let eta := min delta deltaA |
| 37 | have heta : 0 < eta := lt_min hdelta hdeltaA |
| 38 | obtain ⟨C, H, hC, hH, hgood⟩ := hcanonical eta heta (min_le_left _ _) E |
| 39 | by_contra hnone |
| 40 | push Not at hnone |
| 41 | have hselect (k : ℕ) := hnone (H + (k : ℝ) + 1) (by positivity) |
| 42 | choose t ht x hscalar hdistance hbad using hselect |
| 43 | have hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) |
| 44 | atTop atTop := by |
| 45 | refine tendsto_atTop.2 fun b => ?_ |
| 46 | filter_upwards [(tendsto_natCast_atTop_atTop (R := ℝ)).eventually_ge_atTop |
| 47 | (b - H - 1)] with k hk |
| 48 | linarith [hscalar k] |
| 49 | have hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 50 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop := by |
| 51 | refine tendsto_atTop.2 fun b => ?_ |
| 52 | filter_upwards [(tendsto_natCast_atTop_atTop (R := ℝ)).eventually_ge_atTop |
| 53 | (b - H - 1)] with k hk |
| 54 | linarith [hdistance k] |
| 55 | have hprior : ∀ k, generalizedEarlierStrongCanonicalNeighborhoods |
| 56 | ((blowupSequence P E t x ht hR).flow k) eta C |
| 57 | ((blowupSequence P E t x ht hR).base k).1 |
| 58 | ((blowupSequence P E t x ht hR).base k).2 := by |
| 59 | intro k s hs _hst y hhigh |
| 60 | have hscale := scalar_eq P E.flow.base.flow (ht k) (x k) |
| 61 | have hvalue := scalar_eq P E.flow.base.flow hs y.val |
| 62 | have hhigh' : 4 * (E.flow.connection (t k)).scalarCurvature (x k) ≤ |
| 63 | (E.flow.connection s).scalarCurvature y.val := |
| 64 | (congrArg (fun r : ℝ => 4 * r) hscale).symm ▸ (hvalue ▸ hhigh) |
| 65 | have hthreshold : H ≤ (E.flow.connection s).scalarCurvature y.val := by |
| 66 | have hk : 0 ≤ (k : ℝ) := Nat.cast_nonneg k |
| 67 | linarith only [hH, hscalar k, hk, hhigh'] |
| 68 | exact ⟨hgood s hs y.val hthreshold⟩ |
| 69 | obtain ⟨kappa, _hkappa, L, ⟨A⟩⟩ := |
| 70 | hextract eta C heta (min_le_right _ _) hC g₀ E t x ht hR hprior |
| 71 | obtain ⟨k, hk⟩ := (blowupSequence_radial_annulus_comparison P E t x ht hR hd L |
| 72 | A.certificate epsilon he).exists |
| 73 | exact hbad (L.subsequence k) hk |
| 74 | |
| 75 | end PoincareMT.M35.OrdinaryRealization |