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.Surgery.Induction.Noncollapse.Assembly.Volume.ModelVolume |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Assembly.UniformConstants |
| 3 | |
| 4 | /-! |
| 5 | # A radius-independent loss for smaller noncollapsed balls |
| 6 | |
| 7 | Morgan--Tian Theorem 1.34, p. 19, applied in the small-radius case of |
| 8 | Proposition 16.1, pp. 367-368. On a radius-R ball with curvature at most |
| 9 | R^-2, the model profile lies between t and cosh(1)*t. The resulting |
| 10 | three-dimensional volume loss is independent of R and of the flow. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set MeasureTheory |
| 16 | open scoped Manifold ContDiff ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M15 |
| 21 | export PoincareMT.Generalized.Noncollapse (calibratedMetricVolume_eq_volumeMeasure) |
| 22 | end PoincareMT.M15 |
| 23 | |
| 24 | namespace PoincareMT.Proofs.M46 |
| 25 | |
| 26 | /-- The fixed Bishop--Gromov loss is chosen before any surgery scale. -/ |
| 27 | noncomputable def smallBallLoss : ℝ := (Real.cosh 1)⁻¹ ^ 2 |
| 28 | |
| 29 | /-- The fixed comparison loss leaves a positive noncollapse constant. -/ |
| 30 | theorem smallBallLoss_pos : 0 < smallBallLoss := by |
| 31 | exact pow_pos (inv_pos.mpr (Real.cosh_pos 1)) _ |
| 32 | |
| 33 | /-- The derivative of sinh is bounded by cosh(1) on the unit interval. -/ |
| 34 | theorem sinh_le_cosh_one_mul {z : ℝ} (hz : z ∈ Icc 0 1) : |
| 35 | Real.sinh z ≤ Real.cosh 1 * z := sinh_le_cosh_mul hz |
| 36 | |
| 37 | /-- The normalized hyperbolic radial profile has a uniform upper bound. -/ |
| 38 | theorem modelS_inv_sq_le {R t : ℝ} (hR : 0 < R) (ht : t ∈ Icc 0 R) : |
| 39 | RiemannianMetric.modelS (R⁻¹ ^ 2) t ≤ Real.cosh 1 * t := by |
| 40 | simpa only [one_div] using modelS_scaled_inv_sq_le (by norm_num : (0 : ℝ) < 1) hR ht |
| 41 | |
| 42 | /-- The model ball of radius R is at most cosh(1)^2 times Euclidean volume. -/ |
| 43 | theorem modelVolume_inv_sq_le {R : ℝ} (hR : 0 < R) : |
| 44 | RiemannianMetric.modelVolume 3 (R⁻¹ ^ 2) R ≤ |
| 45 | Real.cosh 1 ^ 2 * RiemannianMetric.euclideanUnitBallVolume 3 * R ^ 3 := by |
| 46 | simpa only [one_div] using modelVolume_scaled_inv_sq_le (by norm_num : (0 : ℝ) < 1) hR |
| 47 | |
| 48 | /-- The radius-dependent comparison ratio retains a fixed cubic constant. -/ |
| 49 | theorem smallBallVolumeBound_ge {R s k : ℝ} (hR : 0 < R) (hs : 0 < s) |
| 50 | (hk : 0 < k) : |
| 51 | smallBallLoss * k * s ^ 3 ≤ |
| 52 | RiemannianMetric.smallerBallVolumeBound 3 (R⁻¹ ^ 2) R (k * R ^ 3) s := by |
| 53 | simpa only [smallBallLoss, one_div] using |
| 54 | scaled_smallBallVolumeBound_ge (by norm_num : (0 : ℝ) < 1) hR hs hk |
| 55 | |
| 56 | /-- An actual controlled larger ball gives cubic volume at all smaller |
| 57 | radii, with the same fixed loss on every metric and every scale. -/ |
| 58 | theorem calibrated_small_ball_lower_bound |
| 59 | {M : Type u} [TopologicalSpace M] [T3Space M] [SecondCountableTopology M] |
| 60 | [MeasurableSpace M] [BorelSpace M] |
| 61 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 62 | (g : RiemannianMetric 3 M) (D : LeviCivitaData g) (p : M) |
| 63 | {R s k : ℝ} (hR : 0 < R) (hs : 0 < s) (hsR : s ≤ R) (hk : 0 < k) |
| 64 | (hcompact : IsCompact (closure (g.ball p (2 * R)))) |
| 65 | (hcurv : ∀ x ∈ g.ball p (2 * R), D.curvatureTensorNorm x ≤ R⁻¹ ^ 2) |
| 66 | (hvolume : ENNReal.ofReal (k * R ^ 3) ≤ calibratedMetricVolume g (g.ball p R)) : |
| 67 | ENNReal.ofReal (smallBallLoss * k * s ^ 3) ≤ |
| 68 | calibratedMetricVolume g (g.ball p s) := by |
| 69 | rw [M15.calibratedMetricVolume_eq_volumeMeasure] at hvolume ⊢ |
| 70 | have hbound := (g.smallerBall_volume_lower_bound_of_curvatureTensorNorm_le D p |
| 71 | (by norm_num) (sq_nonneg R⁻¹) hR (mul_pos hk (pow_pos hR 3)) |
| 72 | hcompact hcurv hvolume hs hsR).2 |
| 73 | exact (ENNReal.ofReal_le_ofReal (smallBallVolumeBound_ge hR hs hk)).trans hbound |
| 74 | |
| 75 | /-- Absorb the smaller-ball and canonical losses before choosing rNext. |
| 76 | The source time, length and volume parameters are unchanged. -/ |
| 77 | noncomputable def smallRadiusUniformData {K : MetricSurgeryConstants} |
| 78 | (p : SurgeryParameterPrefix K) {taubar l0 V : ℝ} |
| 79 | (U : M15GeneralizedUniformData.{u} 3 taubar l0 V) |
| 80 | (kCan : ℝ) (hkCan : 0 < kCan) : M15GeneralizedUniformData.{u} 3 taubar l0 V := |
| 81 | canonicalUniformData U (min kCan (smallBallLoss * configurationKappa p U)) |
| 82 | (lt_min hkCan (mul_pos smallBallLoss_pos (configurationKappa_pos p U))) |
| 83 | |
| 84 | /-- The final constant includes the larger-test volume and comparison loss. -/ |
| 85 | theorem smallRadiusUniformData_le_small_ball {K : MetricSurgeryConstants} |
| 86 | (p : SurgeryParameterPrefix K) {taubar l0 V : ℝ} |
| 87 | (U : M15GeneralizedUniformData.{u} 3 taubar l0 V) |
| 88 | (kCan : ℝ) (hkCan : 0 < kCan) : |
| 89 | configurationKappa p (smallRadiusUniformData p U kCan hkCan) ≤ |
| 90 | smallBallLoss * configurationKappa p U := |
| 91 | (configurationKappa_le_canonical p U _ _).trans (min_le_right _ _) |
| 92 | |
| 93 | /-- The same final constant also works in the canonical-neighborhood case. -/ |
| 94 | theorem smallRadiusUniformData_le_canonical {K : MetricSurgeryConstants} |
| 95 | (p : SurgeryParameterPrefix K) {taubar l0 V : ℝ} |
| 96 | (U : M15GeneralizedUniformData.{u} 3 taubar l0 V) |
| 97 | (kCan : ℝ) (hkCan : 0 < kCan) : |
| 98 | configurationKappa p (smallRadiusUniformData p U kCan hkCan) ≤ kCan := |
| 99 | (configurationKappa_le_canonical p U _ _).trans (min_le_left _ _) |
| 100 | |
| 101 | end PoincareMT.Proofs.M46 |