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.Compactness.Convergence |
| 2 | import PoincareLib.Geometry.Riemannian.Measure.Basic |
| 3 | |
| 4 | /-! |
| 5 | # Volume normalization for pointed compactness |
| 6 | |
| 7 | The frozen noncollapse hypothesis uses unnormalized Hausdorff measure. |
| 8 | Riemannian volume differs by a positive constant depending only on dimension, |
| 9 | so the same hypothesis holds for normalized volume after rescaling its constant. |
| 10 | |
| 11 | This is a measure-convention prerequisite for Morgan--Tian, Theorems 5.9--5.11, |
| 12 | pp. 87--90. It does not require the coordinate volume-density formula. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open MeasureTheory Filter |
| 18 | open scoped Manifold ContDiff Bundle NNReal ENNReal Topology |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | /-- The normalization factor is independent of the carrier and metric. -/ |
| 23 | theorem FlowCarrier.volumeMeasure_eq_smul_metricHausdorffVolume |
| 24 | {n : ℕ} (C : FlowCarrier n) (g : C.metric) : |
| 25 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 26 | letI : MeasurableSpace C.carrier := C.measurableSpace |
| 27 | letI : BorelSpace C.carrier := C.borelSpace |
| 28 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 29 | letI : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 30 | letI : T3Space C.carrier := C.t3Space |
| 31 | RiemannianMetric.volumeMeasure g = |
| 32 | Measure.addHaarScalarFactor (volume : Measure (EuclideanSpace ℝ (Fin n))) |
| 33 | (Measure.hausdorffMeasure (n : ℝ)) • C.metricHausdorffVolume g := by |
| 34 | rfl |
| 35 | |
| 36 | /-- Frozen pointed noncollapse also gives a uniform lower bound for normalized |
| 37 | Riemannian volume, with the same radius and a positive rescaled constant. -/ |
| 38 | theorem PointedRicciFlowCompactnessHypotheses.normalized_noncollapsing |
| 39 | {n : ℕ} {T' T : ℝ} (H : PointedRicciFlowCompactnessHypotheses n T' T) : |
| 40 | ∃ r₀ κ : ℝ, 0 < r₀ ∧ 0 < κ ∧ ∀ᶠ k : ℕ in atTop, |
| 41 | let C := H.sequence.carrier k |
| 42 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 43 | letI : MeasurableSpace C.carrier := C.measurableSpace |
| 44 | letI : BorelSpace C.carrier := C.borelSpace |
| 45 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 46 | letI : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 47 | letI : T3Space C.carrier := C.t3Space |
| 48 | ENNReal.ofReal (κ * r₀ ^ n) ≤ |
| 49 | RiemannianMetric.volumeMeasure ((H.sequence.flow k).metricAt 0) |
| 50 | ((H.sequence.flow k).zeroBall r₀) := by |
| 51 | let c : ℝ≥0 := Measure.addHaarScalarFactor |
| 52 | (volume : Measure (EuclideanSpace ℝ (Fin n))) (Measure.hausdorffMeasure (n : ℝ)) |
| 53 | have hc : 0 < c := pos_iff_ne_zero.mpr |
| 54 | (Measure.addHaarScalarFactor_volume_hausdorffMeasure_ne_zero n) |
| 55 | obtain ⟨r₀, κ, hr₀, hκ, hbound⟩ := H.noncollapsing |
| 56 | refine ⟨r₀, (c : ℝ) * κ, hr₀, mul_pos (by exact_mod_cast hc) hκ, ?_⟩ |
| 57 | filter_upwards [hbound] with k hk |
| 58 | let C := H.sequence.carrier k |
| 59 | let : TopologicalSpace C.carrier := C.topologicalSpace |
| 60 | let : MeasurableSpace C.carrier := C.measurableSpace |
| 61 | let : BorelSpace C.carrier := C.borelSpace |
| 62 | let : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 63 | let : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 64 | let : T3Space C.carrier := C.t3Space |
| 65 | change ENNReal.ofReal ((c : ℝ) * κ * r₀ ^ n) ≤ |
| 66 | RiemannianMetric.volumeMeasure ((H.sequence.flow k).metricAt 0) |
| 67 | ((H.sequence.flow k).zeroBall r₀) |
| 68 | rw [C.volumeMeasure_eq_smul_metricHausdorffVolume] |
| 69 | change ENNReal.ofReal ((c : ℝ) * κ * r₀ ^ n) ≤ |
| 70 | (c : ℝ≥0∞) * C.metricHausdorffVolume ((H.sequence.flow k).metricAt 0) |
| 71 | ((H.sequence.flow k).zeroBall r₀) |
| 72 | rw [mul_assoc, ENNReal.ofReal_mul c.coe_nonneg, ENNReal.ofReal_coe_nnreal] |
| 73 | gcongr |
| 74 | have hvolume : (H.sequence.flow k).volumeMeasure = |
| 75 | C.metricHausdorffVolume ((H.sequence.flow k).metricAt 0) := |
| 76 | H.volume_compatibility k |
| 77 | simpa only [BasedFlow.zeroBallVolume, hvolume] using hk |
| 78 | |
| 79 | end PoincareMT |