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.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialBallDiameter |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Measure.Calibration.Calibration |
| 4 | |
| 5 | local notation "M10.euclideanVolumeCalibration_smul_hausdorff" => PoincareMT.ReducedVolume.euclideanVolumeCalibration_smul_hausdorff |
| 6 | |
| 7 | /-! |
| 8 | # Actual radial cap volume from its contracting coordinates |
| 9 | |
| 10 | Morgan-Tian Theorem 12.32, pp. 326-327. The genuine inverse-arclength |
| 11 | map is globally 1-Lipschitz and maps the Euclidean ball exactly onto the |
| 12 | radial cap carrier. The frozen calibrated Hausdorff measure therefore |
| 13 | has the ordinary Euclidean volume as an upper bound. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set MeasureTheory |
| 20 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 21 | |
| 22 | namespace PoincareMT.M35.Uniqueness |
| 23 | |
| 24 | local notation "V" => StandardCapSpace |
| 25 | |
| 26 | variable (g : RiemannianMetric 3 V) (D : LeviCivitaData g) |
| 27 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 28 | ∀ x u v : V, |
| 29 | g.inner (standardRotation A x) |
| 30 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 31 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 32 | (hcomplete : MetricComplete g) (hsec : D.NonnegativeSectionalCurvature) |
| 33 | |
| 34 | include D hsec hrotation hcomplete |
| 35 | |
| 36 | /-- Theorem 12.32: the actual radial carrier's calibrated volume |
| 37 | is bounded by the Euclidean ball of its true radius. -/ |
| 38 | theorem radial_ball_volume_le (P : M35StandardCapPredecessors) (R : ℝ) : |
| 39 | calibratedMetricVolume g (g.ball 0 R) ≤ volume (Metric.ball (0 : V) R) := by |
| 40 | let f := intrinsicSpatialInverse g hrotation hcomplete |
| 41 | have hlip : @LipschitzWith V V inferInstance |
| 42 | g.toEMetricSpace.toPseudoEMetricSpace 1 f := by |
| 43 | intro x y |
| 44 | change g.edist (f x) (f y) ≤ (1 : ℝ≥0∞) * edist x y |
| 45 | rw [one_mul] |
| 46 | exact intrinsicSpatialInverse_edist_le g D hrotation hcomplete hsec x y |
| 47 | have hhaus := @LipschitzWith.hausdorffMeasure_image_le V V |
| 48 | (inferInstance : EMetricSpace V) g.toEMetricSpace |
| 49 | inferInstance inferInstance inferInstance inferInstance 1 f hlip |
| 50 | (3 : ℝ) (by norm_num) (Metric.ball (0 : V) R) |
| 51 | simp only [ENNReal.coe_one, ENNReal.one_rpow, one_mul] at hhaus |
| 52 | have hcal := congrArg (fun mu : Measure V => mu (Metric.ball (0 : V) R)) |
| 53 | (M10.euclideanVolumeCalibration_smul_hausdorff 3) |
| 54 | calc |
| 55 | calibratedMetricVolume g (g.ball 0 R) = |
| 56 | euclideanVolumeCalibration 3 * |
| 57 | @Measure.hausdorffMeasure V g.toEMetricSpace inferInstance inferInstance |
| 58 | (3 : ℝ) (f '' Metric.ball (0 : V) R) := by |
| 59 | rw [← intrinsicSpatialInverse_image_ball g hrotation hcomplete P R] |
| 60 | rfl |
| 61 | _ ≤ euclideanVolumeCalibration 3 * |
| 62 | Measure.hausdorffMeasure (3 : ℝ) (Metric.ball (0 : V) R) := |
| 63 | mul_le_mul' le_rfl hhaus |
| 64 | _ = volume (Metric.ball (0 : V) R) := by |
| 65 | simpa only [Measure.smul_apply, smul_eq_mul, Nat.cast_ofNat] using hcal |
| 66 | |
| 67 | theorem radial_ball_volume_lt_top (P : M35StandardCapPredecessors) (R : ℝ) : |
| 68 | calibratedMetricVolume g (g.ball 0 R) < ⊤ := |
| 69 | (radial_ball_volume_le g D hrotation hcomplete hsec P R).trans_lt |
| 70 | measure_ball_lt_top |
| 71 | |
| 72 | end PoincareMT.M35.Uniqueness |