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.Calibration |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Combined |
| 3 | |
| 4 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Thm8_1_DimensionZero.lean` at |
| 5 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 6 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 7 | |
| 8 | /-! |
| 9 | # The zero-dimensional generalized conclusion |
| 10 | |
| 11 | The dimension-zero extension of Morgan-Tian Theorem 8.1, p. 169, in the |
| 12 | frozen M15 contract. Nonempty sets have calibrated volume at least one, |
| 13 | so the uniform noncollapsing constant is one. See |
| 14 | `references/ricci-flow/mapher/noncollapse/derivations/2026-09-20-dimension-zero.md`. |
| 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 | variable {M : Type u} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 0)) M] [IsManifold (𝓡 0) ∞ M] |
| 28 | [MeasurableSpace M] [BorelSpace M] [T3Space M] |
| 29 | |
| 30 | /-- Nonempty sets have at least unit calibrated volume in dimension zero. |
| 31 | This handles the zero-dimensional extension of Theorem 8.1, p. 169. -/ |
| 32 | theorem one_le_calibratedMetricVolume_zero (g : RiemannianMetric 0 M) |
| 33 | {A : Set M} (hA : A.Nonempty) : 1 ≤ calibratedMetricVolume g A := by |
| 34 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 0) : M → Type _) := |
| 35 | ⟨g.toRiemannianMetric⟩ |
| 36 | let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin 0)) |
| 37 | (TangentSpace (𝓡 0) : M → Type _) := |
| 38 | ⟨⟨g.inner, g.toContinuousRiemannianMetric.continuous, fun _ _ _ => rfl⟩⟩ |
| 39 | let : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 0) M |
| 40 | rw [calibratedMetricVolume_eq_euclideanHausdorff, |
| 41 | Measure.euclideanHausdorffMeasure_zero] |
| 42 | exact Measure.one_le_hausdorffMeasure_zero_of_nonempty hA |
| 43 | |
| 44 | /-- A positive-radius ball has at least unit calibrated volume in |
| 45 | dimension zero. Source: Theorem 8.1, p. 169, in the frozen all-dimension form. -/ |
| 46 | theorem one_le_calibratedMetricVolume_ball_zero (g : RiemannianMetric 0 M) |
| 47 | (x : M) {r : ℝ} (hr : 0 < r) : 1 ≤ calibratedMetricVolume g (g.ball x r) := by |
| 48 | apply one_le_calibratedMetricVolume_zero g |
| 49 | refine ⟨x, ?_⟩ |
| 50 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 0) : M → Type _) := |
| 51 | ⟨g.toRiemannianMetric⟩ |
| 52 | let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin 0)) |
| 53 | (TangentSpace (𝓡 0) : M → Type _) := |
| 54 | ⟨⟨g.inner, g.toContinuousRiemannianMetric.continuous, fun _ _ _ => rfl⟩⟩ |
| 55 | let : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 0) M |
| 56 | change edist x x < ENNReal.ofReal r |
| 57 | rw [edist_self] |
| 58 | exact ENNReal.ofReal_pos.mpr hr |
| 59 | |
| 60 | /-- The generalized clause of Theorem 8.1, p. 169, has uniform constant |
| 61 | one in dimension zero. No predecessor theorem is needed for this branch. -/ |
| 62 | theorem generalizedUniformTheorem_zero : M15GeneralizedUniformTheorem.{u} 0 := by |
| 63 | intro taubar l₀ V htaubar hl₀ hV |
| 64 | refine ⟨{ |
| 65 | taubar_pos := htaubar |
| 66 | l₀_pos := hl₀ |
| 67 | V_pos := hV |
| 68 | kappa := 1 |
| 69 | kappa_pos := zero_lt_one |
| 70 | estimate := ?_ |
| 71 | }⟩ |
| 72 | intro X instX time I G T x E r K C instC instChart instManifold instT2 instCount B D |
| 73 | simpa only [M15Theorem81Estimate, pow_zero, mul_one, ENNReal.ofReal_one] using |
| 74 | one_le_calibratedMetricVolume_ball_zero (G.slices T).metricOnPoints x B.radius_pos |
| 75 | |
| 76 | end PoincareMT.Generalized.Noncollapse |