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.Blowup.Construction.SourceNames |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Dense |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.Analysis.LogPinching |
| 4 | |
| 5 | /-! |
| 6 | # Vanishing normalized negative curvature defect |
| 7 | |
| 8 | Morgan--Tian Theorem 5.33, pp. 99--100, applied to the generalized pinched |
| 9 | or nonnegative alternatives. At every point with a fixed normalized scalar |
| 10 | bound the negative sectional part is eventually arbitrarily small, uniformly |
| 11 | over all included source times. Limit curvature transport is separate. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Filter |
| 17 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M30 |
| 22 | |
| 23 | /-- Dropping the nonnegative log(1+t) term gives the numerical pinching |
| 24 | inequality used in Theorem 5.33, pp. 99--100. -/ |
| 25 | theorem weak_log_pinching_of_branch {F : GeneralizedRicciFlowData.{u}} |
| 26 | (hF : generalizedPinchedOrNonnegative F) {t : ℝ} (ht : t ∈ F.interval) |
| 27 | (x : (F.slice t).carrier) |
| 28 | (hX : 0 < (F.connection t).negativeCurvaturePart x) : |
| 29 | 2 * (F.connection t).negativeCurvaturePart x * |
| 30 | (Real.log ((F.connection t).negativeCurvaturePart x) - 3) ≤ F.scalar ⟨t, x⟩ := by |
| 31 | rcases hF with hpinched | hnonnegative |
| 32 | · have h := hpinched.2 t ht |
| 33 | have hlog : 0 ≤ Real.log (1 + t) := Real.log_nonneg (by linarith [h.2.1]) |
| 34 | have hbound := h.2.2.2 x hX |
| 35 | have hprod := mul_nonneg (show 0 ≤ 2 * (F.connection t).negativeCurvaturePart x by |
| 36 | positivity) hlog |
| 37 | nlinarith |
| 38 | · exact (hnonnegative.2 t ht x).2 hX |
| 39 | |
| 40 | /-- On scalar-bounded regions, every prescribed normalized negative defect |
| 41 | bound eventually holds uniformly in original time and space |
| 42 | (Theorem 5.33, pp. 99--100; used in Theorem 11.1, p. 270). -/ |
| 43 | theorem eventually_negativeDefect_le (S : GeneralizedBlowupSequence.{u}) |
| 44 | (hbranch : ∀ k, generalizedPinchedOrNonnegative (S.flow k)) |
| 45 | (B : ℝ) (hB : 0 ≤ B) (eta : ℝ) (heta : 0 < eta) : |
| 46 | ∀ᶠ k : ℕ in atTop, ∀ t, t ∈ (S.flow k).interval → |
| 47 | ∀ x : ((S.flow k).slice t).carrier, |
| 48 | (S.flow k).scalar ⟨t, x⟩ ≤ B * S.scale k → |
| 49 | ((S.flow k).connection t).negativeCurvaturePart x ≤ eta * S.scale k := by |
| 50 | filter_upwards [S.scalar_diverges.eventually_ge_atTop |
| 51 | (Real.exp (B / eta + 4) / eta)] with k hk |
| 52 | intro t ht x hR |
| 53 | apply negative_le_scaled_of_log_pinching (S.base_scalar_pos k) hB heta |
| 54 | ((div_le_iff₀ heta).mp hk |>.trans_eq (mul_comm _ _)) hR |
| 55 | exact weak_log_pinching_of_branch (hbranch k) ht x |
| 56 | |
| 57 | end PoincareMT.M30 |