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.Homothety |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional.Compact.Differential |
| 3 | import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional.Compact.Rigidity.Extrema |
| 4 | |
| 5 | /-! |
| 6 | # The scalar normalization of a compact round surface soliton |
| 7 | |
| 8 | The trace equation at the potential's minimum and maximum fixes its constant |
| 9 | scalar curvature to twice the soliton scale. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Bundle |
| 16 | |
| 17 | namespace PoincareMT.LeviCivitaData |
| 18 | |
| 19 | variable {M : Type*} [TopologicalSpace M] |
| 20 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] [IsManifold (𝓡 2) ∞ M] |
| 21 | [CompactSpace M] {g : RiemannianMetric 2 M} |
| 22 | |
| 23 | theorem scalar_eq_twice_scale_of_compact_round_soliton (D : LeviCivitaData g) |
| 24 | {f : M → ℝ} {lambda : ℝ} (hf : ContMDiff (𝓡 2) 𝓘(ℝ, ℝ) 2 f) |
| 25 | (hsol : ∀ x, ∀ v w : TangentSpace (𝓡 2) x, |
| 26 | D.ricci x v w + D.hessian f x v w = lambda * g.inner x v w) |
| 27 | (hround : ConstantPositiveSectionalCurvature g D) (x : M) : |
| 28 | D.scalarCurvature x = 2 * lambda := by |
| 29 | have hfs := D.contMDiff_of_C2_surface_soliton hf hsol |
| 30 | obtain ⟨R, _, hR⟩ := (constantPositiveSectionalCurvature_iff_scalarCurvature D).mp hround |
| 31 | obtain ⟨p, _, hp⟩ := isCompact_univ.exists_isMinOn ⟨x, mem_univ x⟩ hfs.continuous.continuousOn |
| 32 | obtain ⟨q, _, hq⟩ := isCompact_univ.exists_isMaxOn ⟨x, mem_univ x⟩ hfs.continuous.continuousOn |
| 33 | have hlo := D.scalar_le_twice_scale_of_potential_min hfs hsol |
| 34 | (hp.isLocalMin (Filter.univ_mem)) |
| 35 | have hhi := D.twice_scale_le_scalar_of_potential_max hfs hsol |
| 36 | (hq.isLocalMax (Filter.univ_mem)) |
| 37 | rw [hR p] at hlo |
| 38 | rw [hR q] at hhi |
| 39 | rw [hR x] |
| 40 | exact le_antisymm hlo hhi |
| 41 | |
| 42 | end PoincareMT.LeviCivitaData |