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.Generalized.Noncollapse.Volume.VolumeComparison |
| 2 | |
| 3 | /-! |
| 4 | # Fixed model-volume losses at a controlled curvature scale |
| 5 | |
| 6 | Morgan--Tian Theorem 1.34, p. 19, in Proposition 16.3 and the small-radius |
| 7 | case of Proposition 16.1. The actual model ratio at curvature (A/R)^2 |
| 8 | loses at most cosh(A)^2, independently of the radius R. The two applications |
| 9 | use fixed A=1 and A=8. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set MeasureTheory |
| 15 | |
| 16 | namespace PoincareMT.Proofs.M46 |
| 17 | |
| 18 | /-- The sinh derivative is bounded on the actual nonnegative interval. -/ |
| 19 | theorem sinh_le_cosh_mul {A z : ℝ} (hz : z ∈ Icc 0 A) : |
| 20 | Real.sinh z ≤ Real.cosh A * z := by |
| 21 | have h := norm_image_sub_le_of_norm_deriv_le_segment' |
| 22 | (fun x (_hx : x ∈ Icc (0 : ℝ) A) => |
| 23 | (Real.hasDerivAt_sinh x).hasDerivWithinAt) |
| 24 | (fun x (hx : x ∈ Ico (0 : ℝ) A) => by |
| 25 | rw [Real.norm_eq_abs, abs_of_pos (Real.cosh_pos x)] |
| 26 | exact Real.cosh_strictMonoOn.monotoneOn hx.1 (hz.1.trans hz.2) hx.2.le) z hz |
| 27 | simpa only [Real.sinh_zero, sub_zero, Real.norm_eq_abs, |
| 28 | abs_of_nonneg (Real.sinh_nonneg_iff.mpr hz.1)] using h |
| 29 | |
| 30 | /-- The radius and curvature scale cancel in the radial model estimate. -/ |
| 31 | theorem modelS_scaled_inv_sq_le {A R t : ℝ} (hA : 0 < A) (hR : 0 < R) |
| 32 | (ht : t ∈ Icc 0 R) : |
| 33 | RiemannianMetric.modelS ((A / R) ^ 2) t ≤ Real.cosh A * t := by |
| 34 | have hQ : 0 < A / R := div_pos hA hR |
| 35 | have hz : (A / R) * t ∈ Icc (0 : ℝ) A := by |
| 36 | refine ⟨mul_nonneg hQ.le ht.1, ?_⟩ |
| 37 | calc |
| 38 | (A / R) * t ≤ (A / R) * R := mul_le_mul_of_nonneg_left ht.2 hQ.le |
| 39 | _ = A := div_mul_cancel₀ A hR.ne' |
| 40 | rw [RiemannianMetric.modelS, if_neg (pow_ne_zero 2 hQ.ne'), Real.sqrt_sq hQ.le] |
| 41 | apply (div_le_iff₀ hQ).mpr |
| 42 | simpa only [mul_left_comm, mul_assoc, mul_comm] using sinh_le_cosh_mul hz |
| 43 | |
| 44 | /-- The controlled model ball has at most cosh(A)^2 times Euclidean volume. -/ |
| 45 | theorem modelVolume_scaled_inv_sq_le {A R : ℝ} (hA : 0 < A) (hR : 0 < R) : |
| 46 | RiemannianMetric.modelVolume 3 ((A / R) ^ 2) R ≤ |
| 47 | Real.cosh A ^ 2 * RiemannianMetric.euclideanUnitBallVolume 3 * R ^ 3 := by |
| 48 | have hprofile : ∀ t ∈ Icc (0 : ℝ) R, |
| 49 | RiemannianMetric.modelS ((A / R) ^ 2) t ^ 2 ≤ Real.cosh A ^ 2 * t ^ 2 := by |
| 50 | intro t ht |
| 51 | simpa only [mul_pow] using pow_le_pow_left₀ |
| 52 | (RiemannianMetric.modelS_nonneg (sq_nonneg _) ht.1) |
| 53 | (modelS_scaled_inv_sq_le hA hR ht) 2 |
| 54 | have hintegral := intervalIntegral.integral_mono_on hR.le |
| 55 | (RiemannianMetric.intervalIntegrable_modelS_pow 3 ((A / R) ^ 2) 0 R) |
| 56 | ((continuous_const.mul (continuous_id.pow 2)).intervalIntegrable 0 R) hprofile |
| 57 | calc |
| 58 | RiemannianMetric.modelVolume 3 ((A / R) ^ 2) R ≤ |
| 59 | 3 * RiemannianMetric.euclideanUnitBallVolume 3 * |
| 60 | ∫ t in (0 : ℝ)..R, Real.cosh A ^ 2 * t ^ 2 := |
| 61 | mul_le_mul_of_nonneg_left hintegral |
| 62 | (mul_nonneg (by norm_num) (RiemannianMetric.euclideanUnitBallVolume_nonneg 3)) |
| 63 | _ = _ := by rw [intervalIntegral.integral_const_mul, integral_pow]; norm_num; ring |
| 64 | |
| 65 | /-- One fixed positive coefficient bounds the actual model-volume ratio. -/ |
| 66 | theorem scaled_smallBallVolumeBound_ge {A R s k : ℝ} |
| 67 | (hA : 0 < A) (hR : 0 < R) (hs : 0 < s) (hk : 0 < k) : |
| 68 | (Real.cosh A)⁻¹ ^ 2 * k * s ^ 3 ≤ |
| 69 | RiemannianMetric.smallerBallVolumeBound 3 ((A / R) ^ 2) R (k * R ^ 3) s := by |
| 70 | have hw := RiemannianMetric.euclideanUnitBallVolume_pos 3 |
| 71 | have hc := Real.cosh_pos A |
| 72 | have hden := RiemannianMetric.modelVolume_pos (by norm_num : 1 ≤ 3) |
| 73 | (sq_nonneg (A / R)) hR |
| 74 | have hnum := RiemannianMetric.euclidean_modelVolume_le_modelVolume |
| 75 | (by norm_num : 1 ≤ 3) (sq_nonneg (A / R)) hs.le |
| 76 | calc |
| 77 | (Real.cosh A)⁻¹ ^ 2 * k * s ^ 3 = |
| 78 | (RiemannianMetric.euclideanUnitBallVolume 3 * s ^ 3 / |
| 79 | (Real.cosh A ^ 2 * RiemannianMetric.euclideanUnitBallVolume 3 * R ^ 3)) * |
| 80 | (k * R ^ 3) := by |
| 81 | field_simp [hw.ne', hc.ne', hR.ne'] |
| 82 | _ ≤ _ := mul_le_mul_of_nonneg_right |
| 83 | (div_le_div₀ (RiemannianMetric.modelVolume_pos (by norm_num : 1 ≤ 3) |
| 84 | (sq_nonneg (A / R)) hs).le hnum hden |
| 85 | (modelVolume_scaled_inv_sq_le hA hR)) (by positivity) |
| 86 | |
| 87 | end PoincareMT.Proofs.M46 |