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.Induction.Calibration |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Calibration.ModelAnalytics |
| 3 | |
| 4 | /-! |
| 5 | # Static certificates used by the actual analytic estimate |
| 6 | |
| 7 | Keep the same cap and compact-component geometry while reading the absolute |
| 8 | analytic bounds of Definition 9.72 and enlarging the constant in Definition |
| 9 | 9.75. Sources: Morgan--Tian, pp. 230-232, with the corrected outer absolute |
| 10 | value recorded in the September 18 Definition 9.72 review. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | variable {M : Type u} [TopologicalSpace M] |
| 22 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 23 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 24 | [SecondCountableTopology M] |
| 25 | {g : RiemannianMetric 3 M} {D : LeviCivitaData g} |
| 26 | |
| 27 | /-- The certificate keeps its exact carrier when its geometric constant grows. -/ |
| 28 | noncomputable def SingularCComponent.mono_constant {C C' : ℝ} |
| 29 | (N : SingularCComponent g D C) (hCC' : C ≤ C') : |
| 30 | SingularCComponent g D C' := by |
| 31 | have hC' : 0 < C' := N.constant_pos.trans_le hCC' |
| 32 | have hinv : C'⁻¹ ≤ C⁻¹ := (inv_le_inv₀ hC' N.constant_pos).2 hCC' |
| 33 | refine { N with |
| 34 | constant_pos := hC' |
| 35 | sectional_lower := ?_ |
| 36 | diameter_lower := ?_ |
| 37 | diameter_upper := ?_ } |
| 38 | · intro x hx v w hvw |
| 39 | by_cases hsup : 0 ≤ scalarCurvatureSupOn g D N.carrier |
| 40 | · exact (mul_le_mul_of_nonneg_right hinv hsup).trans_lt |
| 41 | (N.sectional_lower x hx v w hvw) |
| 42 | · exact (mul_nonpos_of_nonneg_of_nonpos (inv_nonneg.mpr hC'.le) |
| 43 | (le_of_not_ge hsup)).trans_lt (N.positive_sectional x hx v w hvw) |
| 44 | · apply lt_of_le_of_lt _ N.diameter_lower |
| 45 | rw [ENNReal.ofReal_mul (inv_nonneg.mpr hC'.le), |
| 46 | ENNReal.ofReal_mul (inv_nonneg.mpr N.constant_pos.le)] |
| 47 | gcongr |
| 48 | · apply lt_of_lt_of_le N.diameter_upper |
| 49 | rw [ENNReal.ofReal_mul N.constant_pos.le, ENNReal.ofReal_mul hC'.le] |
| 50 | gcongr |
| 51 | |
| 52 | omit [T2Space M] [SecondCountableTopology M] in |
| 53 | /-- Uniform supremum witnesses give the pointwise absolute estimates on the core. -/ |
| 54 | theorem CapCertificate.core_analytic (N : CapCertificate g) (x : M) |
| 55 | (hx : x ∈ N.core) : |
| 56 | M45PointwiseAnalyticEstimate g N.connection x N.cap_constant := by |
| 57 | have hc : x ∈ N.closed_core := by |
| 58 | rw [N.core_eq_interior_closed_core] at hx |
| 59 | exact interior_subset hx |
| 60 | rw [N.closed_core_eq_complement_end] at hc |
| 61 | have hpos := N.scalar_pos x hc.1 |
| 62 | obtain ⟨G, hG, hg⟩ := N.gradient_bound |
| 63 | obtain ⟨L, hL, hl⟩ := N.laplacian_bound |
| 64 | exact ⟨hpos, |
| 65 | (hg x hc.1).trans (mul_le_mul_of_nonneg_right hG.le (Real.rpow_nonneg hpos.le _)), |
| 66 | (hl x hc.1).trans (mul_le_mul_of_nonneg_right hL.le (sq_nonneg _))⟩ |
| 67 | |
| 68 | end PoincareMT |