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.UniquenessData |
| 2 | |
| 3 | /-! |
| 4 | # Enlarging the standard canonical constant |
| 5 | |
| 6 | Morgan--Tian, Theorem 12.32, pp. 326-327, and Section 15.1.1, |
| 7 | p. 354. The exact standard flow and all geometric witnesses are retained |
| 8 | while the constant is enlarged to meet the surgery setup's lower bounds. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 14 | |
| 15 | namespace PoincareMT |
| 16 | |
| 17 | namespace StandardCapNeighborhood |
| 18 | |
| 19 | variable {atlas : StandardCylinderAtlas} {g₀ : StandardInitialMetric} |
| 20 | {F : MaximalStandardCapFlow g₀} {t epsilon C C' : ℝ} {x : StandardCapSpace} |
| 21 | |
| 22 | /-- The center and scalar-ratio bound make the cap's scalar supremum |
| 23 | positive and bounded. Theorem 12.32 and Definition 9.72, pp. 230-231. -/ |
| 24 | theorem scalarSup_pos (N : StandardCapNeighborhood atlas F t epsilon C x) : |
| 25 | 0 < scalarCurvatureSupOn (F.metric t) (F.connection t) N.carrier := by |
| 26 | have hxcore : x ∈ N.closed_core := interior_subset N.center_in_core |
| 27 | rw [N.closed_core_eq] at hxcore |
| 28 | have hbounded : BddAbove (Set.range (fun z : {y // y ∈ N.carrier} => |
| 29 | (F.connection t).scalarCurvature z.1)) := by |
| 30 | refine ⟨C * (F.connection t).scalarCurvature x, ?_⟩ |
| 31 | rintro _ ⟨z, rfl⟩ |
| 32 | exact (N.scalar_ratio x hxcore.1 z.1 z.2).le |
| 33 | exact (N.scalar_pos x hxcore.1).trans_le |
| 34 | (le_csSup hbounded ⟨⟨x, hxcore.1⟩, rfl⟩) |
| 35 | |
| 36 | /-- Enlarge the Theorem 12.32 constant without changing the selected |
| 37 | cap geometry or its core-ball radii; Section 15.1.1, p. 354. -/ |
| 38 | def mono_constant (N : StandardCapNeighborhood atlas F t epsilon C x) |
| 39 | (hCC' : C ≤ C') : StandardCapNeighborhood atlas F t epsilon C' x := by |
| 40 | have hC' : 0 < C' := N.constant_pos.trans_le hCC' |
| 41 | have hinv : C'⁻¹ ≤ C⁻¹ := (inv_le_inv₀ hC' N.constant_pos).2 hCC' |
| 42 | have hsup := N.scalarSup_pos |
| 43 | refine { N with |
| 44 | constant_pos := hC' |
| 45 | scalar_ratio := ?_ |
| 46 | diameter_bound := ?_ |
| 47 | volume_bound := ?_ |
| 48 | core_ball := ?_ |
| 49 | gradient_bound := ?_ |
| 50 | time_derivative_bound := ?_ } |
| 51 | · intro y hy z hz |
| 52 | exact (N.scalar_ratio y hy z hz).trans_le |
| 53 | (mul_le_mul_of_nonneg_right hCC' (N.scalar_pos y hy).le) |
| 54 | · intro y hy z hz |
| 55 | exact (N.diameter_bound y hy z hz).trans_le |
| 56 | (ENNReal.ofReal_le_ofReal |
| 57 | (mul_le_mul_of_nonneg_right hCC' (Real.rpow_nonneg hsup.le _))) |
| 58 | · exact N.volume_bound.trans_le |
| 59 | (ENNReal.ofReal_le_ofReal |
| 60 | (mul_le_mul_of_nonneg_right hCC' (Real.rpow_nonneg hsup.le _))) |
| 61 | · intro y hy |
| 62 | obtain ⟨r, hr, hscalar, hsubset, hcompact, hvolume⟩ := N.core_ball y hy |
| 63 | refine ⟨r, hr, hscalar, hsubset, hcompact, ?_⟩ |
| 64 | exact (ENNReal.ofReal_le_ofReal |
| 65 | (mul_le_mul_of_nonneg_right hinv (pow_nonneg hr.le 3))).trans_lt hvolume |
| 66 | · intro y hy |
| 67 | exact (N.gradient_bound y hy).trans_le |
| 68 | (mul_le_mul_of_nonneg_right hCC' (Real.rpow_nonneg (N.scalar_pos y hy).le _)) |
| 69 | · intro y hy |
| 70 | exact (N.time_derivative_bound y hy).trans_le |
| 71 | (mul_le_mul_of_nonneg_right hCC' (sq_nonneg _)) |
| 72 | |
| 73 | end StandardCapNeighborhood |
| 74 | |
| 75 | /-- Theorem 12.32's two neck branches keep their exact windows when |
| 76 | enlarging the canonical constant; Section 15.1.1, p. 354. -/ |
| 77 | theorem StandardCanonicalAlternative.mono_constant |
| 78 | {atlas : StandardCylinderAtlas} {g₀ : StandardInitialMetric} |
| 79 | {F : MaximalStandardCapFlow g₀} {t epsilon C C' : ℝ} {x : StandardCapSpace} |
| 80 | (h : StandardCanonicalAlternative atlas F t x epsilon C) (hCC' : C ≤ C') : |
| 81 | StandardCanonicalAlternative atlas F t x epsilon C' := by |
| 82 | cases h with |
| 83 | | cap N => exact .cap (N.mono_constant hCC') |
| 84 | | initial_neck N hdisjoint => exact .initial_neck N hdisjoint |
| 85 | | evolving_neck N => exact .evolving_neck N |
| 86 | |
| 87 | namespace M45 |
| 88 | |
| 89 | /-- Apply Theorem 12.32 to the retained M44 standard flow and enlarge its |
| 90 | constant before forming the maximum of Section 15.1.1, p. 354. -/ |
| 91 | theorem standardCanonicalServices {g₀ : StandardInitialMetric} |
| 92 | {E : RepairedStandardCapExistenceData g₀} |
| 93 | (U : RepairedStandardCapUniquenessData g₀ E) |
| 94 | (gamma lowerConstant : ℝ) (hgamma : 0 < gamma) (hhalf : gamma < 1 / 2) : |
| 95 | ∃ C : ℝ, 0 < C ∧ 1 ≤ C ∧ lowerConstant ≤ C ∧ |
| 96 | ∀ t ∈ Set.Ico 0 E.flow.base.lifetime, ∀ x : StandardCapSpace, |
| 97 | StandardCanonicalAlternative E.atlas E.flow t x gamma C := by |
| 98 | obtain ⟨C, hC, hcanonical⟩ := U.canonical gamma hgamma hhalf |
| 99 | refine ⟨max C (max 1 lowerConstant), hC.trans_le (le_max_left _ _), |
| 100 | (le_max_left _ _).trans (le_max_right _ _), |
| 101 | (le_max_right _ _).trans (le_max_right _ _), ?_⟩ |
| 102 | intro t ht x |
| 103 | exact (hcanonical t ht x).mono_constant (le_max_left _ _) |
| 104 | |
| 105 | end M45 |
| 106 | |
| 107 | end PoincareMT |