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.Compactness |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional.Compact.Rigidity.Roundness |
| 3 | |
| 4 | /-! |
| 5 | # Roundness of complete shrinking surfaces |
| 6 | |
| 7 | The conservation laws give compactness, and compact surface rigidity gives |
| 8 | constant positive sectional curvature. This applies to the unchanged M19 |
| 9 | shrinking-soliton data. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle |
| 15 | |
| 16 | namespace PoincareMT |
| 17 | |
| 18 | variable {M : Type*} [TopologicalSpace M] [T3Space M] |
| 19 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] [IsManifold (𝓡 2) ∞ M] |
| 20 | [ConnectedSpace M] |
| 21 | |
| 22 | theorem LeviCivitaData.constantPositiveSectionalCurvature_of_surface_shrinker |
| 23 | {g : RiemannianMetric 2 M} (D : LeviCivitaData g) (hc : MetricComplete g) |
| 24 | {f : M → ℝ} {lambda : ℝ} (hf : ContMDiff (𝓡 2) 𝓘(ℝ, ℝ) 2 f) |
| 25 | (hlambda : 0 < lambda) |
| 26 | (hsol : ∀ x, ∀ v w : TangentSpace (𝓡 2) x, |
| 27 | D.ricci x v w + D.hessian f x v w = lambda * g.inner x v w) |
| 28 | (hoperator : ∀ x, D.NonnegativeCurvatureOperator x) |
| 29 | (hnonflat : ∃ x, D.curvatureTensorNorm x ≠ 0) : |
| 30 | ConstantPositiveSectionalCurvature g D := by |
| 31 | let : CompactSpace M := |
| 32 | D.compactSpace_of_surface_shrinker hc hf hlambda hsol hoperator hnonflat |
| 33 | exact D.constantPositiveSectionalCurvature_of_compact_surface_soliton hlambda hf hsol |
| 34 | (fun x => D.scalar_nonnegative_of_nonnegative_curvatureOperator x (hoperator x)) |
| 35 | |
| 36 | variable [MeasurableSpace M] [BorelSpace M] [T2Space M] [SecondCountableTopology M] |
| 37 | |
| 38 | /-- The frozen two-dimensional shrinking-soliton metric is round. -/ |
| 39 | theorem GradientShrinkingSolitonData.round (S : GradientShrinkingSolitonData 2 M) : |
| 40 | ConstantPositiveSectionalCurvature S.metric S.connection := |
| 41 | S.connection.constantPositiveSectionalCurvature_of_surface_shrinker S.complete |
| 42 | S.potential_C2 (by norm_num : (0 : ℝ) < 1 / 2) S.soliton_equation |
| 43 | S.nonnegative_curvature S.nonflat |
| 44 | |
| 45 | end PoincareMT |