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.Soliton.TwoDimensional.Compact.Rigidity.Degenerate |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional.Compact.Rigidity.CriticalValues |
| 3 | |
| 4 | /-! |
| 5 | # The strict curvature obstruction between two soliton poles |
| 6 | |
| 7 | The first integrals force the sum of the scalar curvatures at two critical |
| 8 | points with different potential values to exceed four times the shrinking |
| 9 | scale. In a smooth rotational compact surface, pole matching would instead |
| 10 | give equality. This is the analytic obstruction supporting Chow--Knopf, |
| 11 | Proposition 5.21, p. 118. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | namespace PoincareMT.LeviCivitaData |
| 20 | |
| 21 | variable {M : Type*} [TopologicalSpace M] [PreconnectedSpace M] |
| 22 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] [IsManifold (𝓡 2) ∞ M] |
| 23 | {g : RiemannianMetric 2 M} |
| 24 | |
| 25 | /-- Distinct critical values on a shrinking surface force a strict curvature |
| 26 | sum inequality. No compactness or curvature-sign hypothesis is needed. -/ |
| 27 | theorem four_scale_lt_scalar_sum_at_critical_points (D : LeviCivitaData g) |
| 28 | {f : M → ℝ} {lambda : ℝ} (hlambda : 0 < lambda) |
| 29 | (hf : ContMDiff (𝓡 2) 𝓘(ℝ, ℝ) 2 f) |
| 30 | (hsol : ∀ x, ∀ v w : TangentSpace (𝓡 2) x, |
| 31 | D.ricci x v w + D.hessian f x v w = lambda * g.inner x v w) |
| 32 | {p q : M} (hp : D.gradient f p = 0) (hq : D.gradient f q = 0) |
| 33 | (hpq : f p < f q) : 4 * lambda < D.scalarCurvature p + D.scalarCurvature q := by |
| 34 | obtain ⟨C, hC⟩ := D.exists_hamilton_conservation_of_surface_soliton hf hsol |
| 35 | have he := (hC q).trans (hC p).symm |
| 36 | rw [hp, hq] at he |
| 37 | simp only [map_zero, add_zero] at he |
| 38 | have hR := D.scalar_eq_exp_potential_difference_of_surface_soliton hf hsol p q |
| 39 | have hdiff : 0 < f q - f p := sub_pos.mpr hpq |
| 40 | have henergy : D.scalarCurvature p * (Real.exp (f q - f p) - 1) = |
| 41 | 2 * lambda * (f q - f p) := by |
| 42 | rw [hR] at he |
| 43 | nlinarith |
| 44 | have hexp : 0 < Real.exp (f q - f p) - 1 := by |
| 45 | have h := Real.exp_lt_exp.mpr hdiff |
| 46 | rw [Real.exp_zero] at h |
| 47 | linarith |
| 48 | have hpos : 0 < D.scalarCurvature p := by |
| 49 | apply pos_of_mul_pos_left (b := Real.exp (f q - f p) - 1) _ hexp.le |
| 50 | rw [henergy] |
| 51 | positivity |
| 52 | have hstrict := mul_lt_mul_of_pos_left |
| 53 | (SurfaceSoliton.exp_secant_lt_endpoint_average hdiff) hpos |
| 54 | have hleft : D.scalarCurvature p * (2 * (Real.exp (f q - f p) - 1)) = |
| 55 | (f q - f p) * (4 * lambda) := by nlinarith [henergy] |
| 56 | have hright : D.scalarCurvature p * ((f q - f p) * (Real.exp (f q - f p) + 1)) = |
| 57 | (f q - f p) * (D.scalarCurvature p + D.scalarCurvature q) := by |
| 58 | rw [hR] |
| 59 | ring |
| 60 | rw [hleft, hright] at hstrict |
| 61 | exact (mul_lt_mul_iff_right₀ hdiff).mp hstrict |
| 62 | |
| 63 | end PoincareMT.LeviCivitaData |