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.RicciTraceTransport |
| 2 | import PoincareLib.Geometry.RicciFlow.Area.MinimalSphere.RegularizedCurvatureIntegral |
| 3 | |
| 4 | /-! |
| 5 | # From intrinsic curvature to the fixed-map Ricci integral |
| 6 | |
| 7 | Morgan-Tian Claim 18.12, printed pp. 426-427. Any scalar lower bound, |
| 8 | with either sign, contributes rho/2 times the actual area. The remaining |
| 9 | 4*pi term is supplied by the regularized curvature integral argument. |
| 10 | The geometric differential inequality is still an explicit input here. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open MeasureTheory |
| 17 | open scoped Manifold ContDiff |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT |
| 22 | |
| 23 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 25 | {g : RiemannianMetric n M} |
| 26 | |
| 27 | /-- An intrinsic curvature integral bound gives the frozen Ricci integral |
| 28 | bound for every scalar lower bound on the image. No sign condition on |
| 29 | rho is required. Source: MT Claim 18.12, pp. 426-427; Hamilton p. 718. -/ |
| 30 | theorem m60SphereRicciTrace_integral_lower_bound_of_curvature |
| 31 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 32 | (f : UnitTwoSphere → M) (hf : ContMDiff (𝓡 2) (𝓡 n) ∞ f) |
| 33 | (hc : M60WeaklyConformal g f) (ρ : ℝ) |
| 34 | (hρ : ∀ p, ρ ≤ D.scalarCurvature (f p)) |
| 35 | (hcurv : 4 * Real.pi ≤ ∫ p, m60SphereCurvatureContribution D f p |
| 36 | ∂m60RoundSphereMetric.volumeMeasure) : |
| 37 | 4 * Real.pi + (ρ / 2) * m60SphereArea g f ≤ |
| 38 | ∫ z : LoopPlane, m60SphereRicciTraceDensity D f z := by |
| 39 | let q := m60SphereConformalFactor g f |
| 40 | have hq : Integrable q m60RoundSphereMetric.volumeMeasure := |
| 41 | m60SphereConformalFactor_integrable g f hf hc |
| 42 | have hs : Integrable (fun p => (D.scalarCurvature (f p) / 2) * q p) |
| 43 | m60RoundSphereMetric.volumeMeasure := |
| 44 | (((m60ScalarCurvature_contMDiff D hD).comp hf).continuous.div_const 2 |>.mul |
| 45 | (m60SphereConformalFactor_contMDiff g f hf hc).continuous).integrable_of_hasCompactSupport |
| 46 | (HasCompactSupport.of_compactSpace _) |
| 47 | have hk := m60SphereCurvatureContribution_integrable D hD f hf hc |
| 48 | have hb := integral_mono (hq.const_mul (ρ / 2)) hs (fun p => |
| 49 | mul_le_mul_of_nonneg_right (div_le_div_of_nonneg_right (hρ p) (by norm_num)) |
| 50 | (m60SphereConformalFactor_nonneg g f p)) |
| 51 | rw [integral_const_mul] at hb |
| 52 | have hid : m60SphereIntrinsicRicciTrace D f = |
| 53 | (fun p => (D.scalarCurvature (f p) / 2) * q p + m60SphereCurvatureContribution D f p) := by |
| 54 | funext p |
| 55 | dsimp [m60SphereCurvatureContribution, q] |
| 56 | ring |
| 57 | rw [m60SphereRicciTrace_integral_eq_intrinsic D hD f hf hc, hid, |
| 58 | integral_add hs hk, m60SphereArea_eq_integral_conformalFactor g f hf hc] |
| 59 | change 4 * Real.pi + (ρ / 2) * (∫ p, q p ∂m60RoundSphereMetric.volumeMeasure) ≤ _ |
| 60 | linarith |
| 61 | |
| 62 | /-- The reviewed regularization reduces the desired actual Ricci integral |
| 63 | estimate to its geometric differential inequality on the regular locus. |
| 64 | Source: MT Claim 18.12, pp. 426-427, regularized curvature derivation. -/ |
| 65 | theorem m60SphereRicciTrace_integral_lower_bound_of_differential_inequality |
| 66 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 67 | (S : LeviCivitaData m60RoundSphereMetric) (f : UnitTwoSphere → M) |
| 68 | (hf : M60BranchedMinimalSphere g f) |
| 69 | (hreg : ∀ p, 0 < m60SphereConformalFactor g f p → |
| 70 | M04.scalarGradientSq m60RoundSphereMetric (m60SphereConformalFactor g f) p / |
| 71 | m60SphereConformalFactor g f p + 2 * m60SphereConformalFactor g f p - |
| 72 | 2 * m60SphereConformalFactor g f p * m60SphereCurvatureContribution D f p ≤ |
| 73 | S.laplacian (m60SphereConformalFactor g f) p) |
| 74 | (ρ : ℝ) (hρ : ∀ p, ρ ≤ D.scalarCurvature (f p)) : |
| 75 | 4 * Real.pi + (ρ / 2) * m60SphereArea g f ≤ |
| 76 | ∫ z : LoopPlane, m60SphereRicciTraceDensity D f z := by |
| 77 | apply m60SphereRicciTrace_integral_lower_bound_of_curvature D hD f hf.smooth |
| 78 | hf.weakly_conformal ρ hρ |
| 79 | exact m60RoundSphere_curvature_integral_of_differential_inequality S |
| 80 | (m60SphereConformalFactor_contMDiff g f hf.smooth hf.weakly_conformal) |
| 81 | (m60SphereConformalFactor_nonneg g f) |
| 82 | (m60SphereConformalFactor_ae_pos g f hf.weakly_conformal hf.finite_branch_set) |
| 83 | (m60SphereCurvatureContribution_integrable D hD f hf.smooth hf.weakly_conformal) hreg |
| 84 | |
| 85 | end PoincareMT |