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.CanonicalNeighborhood.Neck.Flux.ModelVolume |
| 2 | import PoincareLib.Geometry.Riemannian.SpaceForm.SphereCurvature |
| 3 | import PoincareLib.Geometry.Riemannian.SpaceForm.SphereDistance |
| 4 | import PoincareLib.Geometry.Riemannian.Normalization.Scaling.Curvature |
| 5 | import PoincareLib.Geometry.Riemannian.Normalization.Scaling.Distance |
| 6 | import PoincareLib.Geometry.Riemannian.Comparison.Volume.Precompact |
| 7 | |
| 8 | /-! |
| 9 | # The fixed sphere-volume coefficient for canonical necks |
| 10 | |
| 11 | Morgan--Tian Proposition 16.3, p. 368, using Theorem 1.34, p. 19. |
| 12 | The sphere factor of the actual round-cylinder measure has nonnegative |
| 13 | Ricci curvature and bounded diameter. The published local comparison |
| 14 | therefore gives one quadratic volume coefficient at every sphere point. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | -- The sphere product metric is the one retained by the shared cylinder measure. |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set MeasureTheory |
| 22 | open scoped Manifold ContDiff Bundle ENNReal |
| 23 | |
| 24 | namespace PoincareMT.Proofs.M46 |
| 25 | |
| 26 | open Poincare.Geometry.Riemannian.SpaceForm |
| 27 | |
| 28 | /-- The sphere factor of the scalar-normalized round cylinder. -/ |
| 29 | noncomputable def canonicalSphereMetric : RiemannianMetric 2 UnitTwoSphere := |
| 30 | rescaledMetric (roundSphereMetric 2) 2 (by norm_num) |
| 31 | |
| 32 | /-- The Levi-Civita data of the actual scaled sphere metric. -/ |
| 33 | noncomputable def canonicalSphereConnection : LeviCivitaData canonicalSphereMetric := |
| 34 | rescaledMetric_connection (roundSphereMetric 2) (roundSphereMetric 2).leviCivitaData |
| 35 | 2 (by norm_num) |
| 36 | |
| 37 | /-- This coefficient depends only on the fixed scalar-normalized cylinder. -/ |
| 38 | noncomputable def canonicalSphereVolumeFloor : ℝ := |
| 39 | roundCylinderCrossSectionArea.toReal / (2 * Real.pi + 1) ^ 2 |
| 40 | |
| 41 | /-- The fixed quadratic sphere-volume coefficient is positive. -/ |
| 42 | theorem canonicalSphereVolumeFloor_pos : 0 < canonicalSphereVolumeFloor := |
| 43 | div_pos roundCylinderCrossSectionArea_toReal_pos (sq_pos_of_pos (by positivity)) |
| 44 | |
| 45 | /-- The scalar-normalized sphere has nonnegative actual Ricci curvature. -/ |
| 46 | theorem canonicalSphere_ricci_nonneg (x : UnitTwoSphere) |
| 47 | (v : TangentSpace (𝓡 2) x) : 0 ≤ canonicalSphereConnection.ricci x v v := by |
| 48 | let g := roundSphereMetric 2 |
| 49 | let D := g.leviCivitaData |
| 50 | have hplane (u w : TangentSpace (𝓡 2) x) : 0 ≤ D.curvatureTensor x u w u w := by |
| 51 | rw [roundSphereMetric_curvatureTensor, g.symm x w u] |
| 52 | apply sub_nonneg.mpr |
| 53 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 2) : UnitTwoSphere → Type _) := |
| 54 | ⟨g.toRiemannianMetric⟩ |
| 55 | exact real_inner_mul_inner_self_le u w |
| 56 | change 0 ≤ (rescaledMetric_connection g D 2 (by norm_num)).ricci x v v |
| 57 | rw [rescaledMetric_ricci] |
| 58 | exact Finset.sum_nonneg fun i _ => hplane v (g.orthonormalBasis x i) |
| 59 | |
| 60 | /-- A radius fixed independently of the center contains the whole sphere. -/ |
| 61 | theorem canonicalSphere_large_ball (q : UnitTwoSphere) : |
| 62 | canonicalSphereMetric.ball q (2 * Real.pi + 1) = univ := by |
| 63 | apply eq_univ_of_forall |
| 64 | intro y |
| 65 | change canonicalSphereMetric.edist q y < ENNReal.ofReal (2 * Real.pi + 1) |
| 66 | rw [canonicalSphereMetric, rescaledMetric_edist, |
| 67 | roundSphereMetric_edist_eq_angle (by norm_num), |
| 68 | ← ENNReal.ofReal_mul (Real.sqrt_nonneg 2)] |
| 69 | apply (ENNReal.ofReal_lt_ofReal_iff (by positivity)).mpr |
| 70 | have hsqrt : Real.sqrt 2 ≤ 2 := by |
| 71 | nlinarith [Real.sq_sqrt (show (0 : ℝ) ≤ 2 by norm_num), Real.sqrt_nonneg 2] |
| 72 | have hangle : Real.arccos (1 - dist q y ^ 2 / 2) ≤ Real.pi := |
| 73 | Real.arccos_le_pi _ |
| 74 | have hmul := mul_le_mul_of_nonneg_left hangle (Real.sqrt_nonneg 2) |
| 75 | have hpi := mul_le_mul_of_nonneg_right hsqrt Real.pi_pos.le |
| 76 | linarith |
| 77 | |
| 78 | /-- The actual cross-sectional measure gives uniform quadratic volume |
| 79 | for every radius at most one and every sphere center. -/ |
| 80 | theorem canonicalSphere_small_ball_volume (q : UnitTwoSphere) {a : ℝ} |
| 81 | (ha : 0 < a) (ha1 : a ≤ 1) : |
| 82 | ENNReal.ofReal (canonicalSphereVolumeFloor * a ^ 2) ≤ |
| 83 | roundCylinderCrossSectionVolumeMeasure (canonicalSphereMetric.ball q a) := by |
| 84 | let R := 2 * Real.pi + 1 |
| 85 | have hR : 0 < R := by dsimp [R]; positivity |
| 86 | have haR : a ≤ R := ha1.trans (by dsimp [R]; linarith [Real.pi_pos]) |
| 87 | have h := canonicalSphereMetric.smallBall_volume_lower_bound_of_precompact_ball q |
| 88 | (by norm_num : 1 ≤ 2) (by positivity : 0 < R + 1) (le_refl (0 : ℝ)) |
| 89 | isClosed_closure.isCompact canonicalSphereConnection |
| 90 | (fun x _ v => by simpa using canonicalSphere_ricci_nonneg x v) |
| 91 | ha haR (by linarith : R < R + 1) |
| 92 | rw [show canonicalSphereMetric.ball q R = univ from canonicalSphere_large_ball q] at h |
| 93 | have harea : canonicalSphereMetric.volumeMeasure univ = roundCylinderCrossSectionArea := rfl |
| 94 | rw [harea, RiemannianMetric.modelVolume_zero_curvature (by norm_num : 1 ≤ 2), |
| 95 | RiemannianMetric.modelVolume_zero_curvature (by norm_num : 1 ≤ 2)] at h |
| 96 | have hw := RiemannianMetric.euclideanUnitBallVolume_pos 2 |
| 97 | have heq : (ENNReal.ofReal (RiemannianMetric.euclideanUnitBallVolume 2 * a ^ 2) / |
| 98 | ENNReal.ofReal (RiemannianMetric.euclideanUnitBallVolume 2 * R ^ 2)) * |
| 99 | roundCylinderCrossSectionArea = |
| 100 | ENNReal.ofReal (canonicalSphereVolumeFloor * a ^ 2) := by |
| 101 | rw [← ENNReal.ofReal_div_of_pos (mul_pos hw (sq_pos_of_pos hR)), |
| 102 | ← ENNReal.ofReal_toReal roundCylinderCrossSectionArea_lt_top.ne, |
| 103 | ← ENNReal.ofReal_mul (by positivity)] |
| 104 | congr 1 |
| 105 | unfold canonicalSphereVolumeFloor |
| 106 | change _ = roundCylinderCrossSectionArea.toReal / R ^ 2 * a ^ 2 |
| 107 | field_simp [hw.ne', hR.ne'] |
| 108 | rw [heq] at h |
| 109 | exact h |
| 110 | |
| 111 | end PoincareMT.Proofs.M46 |