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.ReducedGeometry.ReducedVolume.Basic |
| 2 | import Mathlib.Geometry.Euclidean.Volume.Measure |
| 3 | |
| 4 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Thm1_34_Calibration.lean` at |
| 5 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 6 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 7 | |
| 8 | /-! |
| 9 | # The volume normalization for local Bishop-Gromov comparison |
| 10 | |
| 11 | Morgan-Tian Theorem 1.34, p. 19. The frozen calibrated measure is exactly |
| 12 | Mathlib's Euclidean-normalized Hausdorff measure for the specified metric. |
| 13 | See `references/ricci-flow/mapher/noncollapse/derivations/2026-09-20-volume-calibration.md`. |
| 14 | No numerical formula for the Haar scalar is used. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open MeasureTheory |
| 20 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.Generalized.Noncollapse |
| 25 | |
| 26 | /-- The unit-ball calibration equals the Haar normalization in every |
| 27 | dimension. This identifies the volume convention for Theorem 1.34, p. 19. -/ |
| 28 | theorem euclideanVolumeCalibration_eq_addHaarScalarFactor (n : ℕ) : |
| 29 | euclideanVolumeCalibration n = |
| 30 | (Measure.addHaarScalarFactor (volume : Measure (EuclideanSpace ℝ (Fin n))) |
| 31 | (Measure.hausdorffMeasure (n : ℝ)) : ℝ≥0∞) := by |
| 32 | let μ : Measure (EuclideanSpace ℝ (Fin n)) := Measure.hausdorffMeasure (n : ℝ) |
| 33 | have hμpos : 0 < μ (Metric.ball 0 1) := |
| 34 | Metric.isOpen_ball.measure_pos μ (Metric.nonempty_ball.mpr zero_lt_one) |
| 35 | have hμfinite : μ (Metric.ball 0 1) ≠ ⊤ := |
| 36 | ((measure_mono Metric.ball_subset_closedBall).trans_lt |
| 37 | (isCompact_closedBall (0 : EuclideanSpace ℝ (Fin n)) 1).measure_lt_top).ne |
| 38 | have hvalue : (volume : Measure (EuclideanSpace ℝ (Fin n))) (Metric.ball 0 1) = |
| 39 | (Measure.addHaarScalarFactor volume μ : ℝ≥0∞) * μ (Metric.ball 0 1) := by |
| 40 | simpa only [ENNReal.smul_def, smul_eq_mul] using |
| 41 | Measure.measure_isAddHaarMeasure_eq_smul_of_isOpen |
| 42 | (volume : Measure (EuclideanSpace ℝ (Fin n))) μ |
| 43 | (s := Metric.ball 0 1) Metric.isOpen_ball |
| 44 | change (volume : Measure (EuclideanSpace ℝ (Fin n))) (Metric.ball 0 1) / |
| 45 | μ (Metric.ball 0 1) = _ |
| 46 | rw [hvalue, div_eq_mul_inv, ENNReal.mul_inv_cancel_right hμpos.ne' hμfinite] |
| 47 | |
| 48 | /-- The calibrated volume is the Euclidean-normalized Hausdorff measure |
| 49 | of the same Riemannian emetric. This is the measure bridge needed for |
| 50 | Theorem 1.34, p. 19, on the actual M15 metric. -/ |
| 51 | theorem calibratedMetricVolume_eq_euclideanHausdorff |
| 52 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 53 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 54 | [MeasurableSpace M] [BorelSpace M] [T3Space M] (g : RiemannianMetric n M) : |
| 55 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 56 | ⟨g.toRiemannianMetric⟩ |
| 57 | letI : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 58 | (TangentSpace (𝓡 n) : M → Type _) := |
| 59 | ⟨⟨g.inner, g.toContinuousRiemannianMetric.continuous, fun _ _ _ => rfl⟩⟩ |
| 60 | letI : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 n) M |
| 61 | calibratedMetricVolume g = Measure.euclideanHausdorffMeasure n := by |
| 62 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 63 | ⟨g.toRiemannianMetric⟩ |
| 64 | let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 65 | (TangentSpace (𝓡 n) : M → Type _) := |
| 66 | ⟨⟨g.inner, g.toContinuousRiemannianMetric.continuous, fun _ _ _ => rfl⟩⟩ |
| 67 | let : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 n) M |
| 68 | change calibratedMetricVolume g = Measure.euclideanHausdorffMeasure n |
| 69 | rw [Measure.euclideanHausdorffMeasure_def, ENNReal.smul_def, |
| 70 | ← euclideanVolumeCalibration_eq_addHaarScalarFactor] |
| 71 | rfl |
| 72 | |
| 73 | end PoincareMT.Generalized.Noncollapse |