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.Area.MinimalSphere.Stationarity |
| 2 | import PoincareLib.Geometry.RicciFlow.Area.MinimalSphere.HarmonicCurvatureInequality |
| 3 | import PoincareLib.Geometry.RicciFlow.Area.MinimalSphere.ScalarMinimum |
| 4 | import PoincareLib.Geometry.RicciFlow.Area.FixedMap.CompactSlab |
| 5 | import PoincareLib.Geometry.Riemannian.Normalization.Connection.Existence |
| 6 | import PoincareLib.Geometry.Riemannian.MinimalSurface.Sphere.Compatibility.Normalization |
| 7 | |
| 8 | /-! |
| 9 | # The branched minimal sphere area-variation bound |
| 10 | |
| 11 | Morgan-Tian Claim 18.12, printed pp. 426-427, and Hamilton (1999), |
| 12 | printed p. 718. Energy stationarity supplies the actual harmonic equation. |
| 13 | The regularized curvature argument gives the Ricci integral bound, and |
| 14 | the fixed-map formula gives the area derivative on the closed time slab. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set MeasureTheory |
| 21 | open scoped Manifold ContDiff |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT |
| 26 | |
| 27 | variable {M : Type u} [TopologicalSpace M] [T2Space M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 29 | |
| 30 | /-- Every sphere satisfying the frozen branched-minimal predicate has the |
| 31 | required actual Ricci integral lower bound. Source: MT Claim 18.12, |
| 32 | pp. 426-427; Hamilton p. 718. -/ |
| 33 | theorem m60SphereRicciTrace_integral_lower_bound {g : RiemannianMetric 3 M} |
| 34 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 35 | (f : UnitTwoSphere → M) (hf : M60BranchedMinimalSphere g f) |
| 36 | (ρ : ℝ) (hρ : ∀ p, ρ ≤ D.scalarCurvature (f p)) : |
| 37 | 4 * Real.pi + (ρ / 2) * m60SphereArea g f ≤ |
| 38 | ∫ z : LoopPlane, m60SphereRicciTraceDensity D f z := by |
| 39 | obtain ⟨S⟩ := m01_exists_leviCivitaData m60RoundSphereMetric |
| 40 | exact m60SphereRicciTrace_integral_lower_bound_of_harmonic D hD S f hf |
| 41 | (m60EnergyStationary_chartHarmonic g f hf.smooth hf.energy_stationary) ρ hρ |
| 42 | |
| 43 | /-- The complete minimal-sphere variation supplier on a compact closed |
| 44 | Ricci-flow slab, with every scalar lower bound and the attained minimum. |
| 45 | Source: MT Claim 18.12, pp. 426-427; Hamilton p. 718. -/ |
| 46 | theorem m60MinimalSphereVariationProperties_of_compact {a b : ℝ} (hab : a < b) |
| 47 | (F : RicciFlow 3 M (Icc a b)) (hcompact : IsCompact (univ : Set M)) |
| 48 | (htensor : ∀ t ∈ Icc a b, (F.connection t).CurvatureTensorCalculus) |
| 49 | (hscalar : ContMDiffOn ((𝓘(ℝ, ℝ)).prod (𝓡 3)) (𝓘(ℝ, ℝ)) ∞ |
| 50 | (fun p : ℝ × M => (F.connection p.1).scalarCurvature p.2) (Icc a b ×ˢ univ)) |
| 51 | (f : UnitTwoSphere → M) (t : ℝ) (ht : t ∈ Icc a b) |
| 52 | (hf : M60BranchedMinimalSphere (F.metric t) f) : |
| 53 | M60MinimalSphereVariationProperties F f t := by |
| 54 | have hmin := m60ScalarMinimum_isLeast_of_flow F hcompact f hscalar ht |
| 55 | have hvar := (m60SphereArea_variation_on_compact hab F hcompact htensor f |
| 56 | (hf.smooth.of_le (by simp)) t ht).2 |
| 57 | have hbound (ρ : ℝ) (hρ : ∀ x : M, ρ ≤ (F.connection t).scalarCurvature x) : |
| 58 | -(∫ z : LoopPlane, m60SphereRicciTraceDensity (F.connection t) f z) ≤ |
| 59 | -4 * Real.pi - (ρ / 2) * m60SphereArea (F.metric t) f := by |
| 60 | have h := m60SphereRicciTrace_integral_lower_bound (F.connection t) (htensor t ht) |
| 61 | f hf ρ (fun p => hρ (f p)) |
| 62 | linarith |
| 63 | exact ⟨hmin, ⟨_, hvar, hbound, hbound _ (fun x => hmin.2 ⟨x, rfl⟩)⟩⟩ |
| 64 | |
| 65 | end PoincareMT |