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.Riemannian.Normalization.Scaling.Measure |
| 2 | |
| 3 | /-! |
| 4 | # All-dimensional volume scaling |
| 5 | |
| 6 | The two Lipschitz Hausdorff-measure inequalities give exact scaling for the |
| 7 | normalized Riemannian volume, including dimension zero and infinite volumes. |
| 8 | See Kleiner--Lott, Corollary 44.1, pp. 2682--2683. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Bundle Manifold MeasureTheory |
| 14 | open scoped Manifold ContDiff Bundle ENNReal NNReal |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] |
| 21 | [MeasurableSpace M] [BorelSpace M] |
| 22 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 23 | |
| 24 | |
| 25 | omit [T3Space M] [MeasurableSpace M] [BorelSpace M] in |
| 26 | theorem rescaledMetric_ball_allDimensions (g : RiemannianMetric n M) |
| 27 | (c : ℝ) (hc : 0 < c) (x : M) (r : ℝ) : |
| 28 | (rescaledMetric g c hc).ball x r = g.ball x (r / Real.sqrt c) := by |
| 29 | have hsqrt : 0 < Real.sqrt c := Real.sqrt_pos.mpr hc |
| 30 | have hne : ENNReal.ofReal (Real.sqrt c) ≠ 0 := (ENNReal.ofReal_pos.mpr hsqrt).ne' |
| 31 | ext y |
| 32 | simp only [RiemannianMetric.ball, Set.mem_ofPred_eq, rescaledMetric_edist, |
| 33 | ENNReal.ofReal_div_of_pos hsqrt] |
| 34 | rw [ENNReal.lt_div_iff_mul_lt (Or.inl hne) (Or.inl ENNReal.ofReal_ne_top), mul_comm] |
| 35 | |
| 36 | end PoincareMT |