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.Riemannian.Measure.Balls |
| 3 | import PoincareLib.Geometry.Riemannian.Measure.CompactImage |
| 4 | |
| 5 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Thm1_34_LocalVolume.lean` at |
| 6 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 7 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 8 | |
| 9 | /-! |
| 10 | # Local volume facts in the frozen calibration |
| 11 | |
| 12 | Morgan-Tian Theorems 1.33-1.34, p. 19, and Claim 8.8, pp. 174-175. |
| 13 | The M06 implementation supplies local intrinsic-volume results. The exact |
| 14 | calibration bridge transfers them to the measure used by the M15 contract. |
| 15 | The permitted lower import routes and the geometric application are recorded |
| 16 | in `references/ricci-flow/mapher/noncollapse/derivations/2026-09-20-local-volume-transport.md` |
| 17 | and `proof-work/tasks/M15/reports/2026-09-20-lower-geometry-survey.md`. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | |
| 22 | open MeasureTheory |
| 23 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 24 | |
| 25 | universe u v |
| 26 | |
| 27 | namespace PoincareMT.Generalized.Noncollapse |
| 28 | |
| 29 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 31 | [MeasurableSpace M] [BorelSpace M] [T3Space M] |
| 32 | |
| 33 | /-- The exact volume convention used to apply Theorem 1.34, p. 19, |
| 34 | and Claim 8.8, p. 174, through the permitted M06 helpers. -/ |
| 35 | theorem calibratedMetricVolume_eq_volumeMeasure (g : RiemannianMetric n M) : |
| 36 | calibratedMetricVolume g = g.volumeMeasure := |
| 37 | calibratedMetricVolume_eq_euclideanHausdorff g |
| 38 | |
| 39 | /-- Compact sets have finite calibrated volume, as needed in the local |
| 40 | volume comparison of Claim 8.8, pp. 174-175. -/ |
| 41 | theorem calibratedMetricVolume_lt_top_of_isCompact (g : RiemannianMetric n M) |
| 42 | {s : Set M} (hs : IsCompact s) : calibratedMetricVolume g s < ⊤ := by |
| 43 | rw [calibratedMetricVolume_eq_volumeMeasure] |
| 44 | exact g.volumeMeasure_lt_top_of_isCompact hs |
| 45 | |
| 46 | /-- Compact closure suffices for finite ball volume in Theorem 8.1, |
| 47 | p. 169; completeness is unnecessary. -/ |
| 48 | theorem calibratedMetricVolume_ball_lt_top_of_precompact (g : RiemannianMetric n M) |
| 49 | (x : M) (r : ℝ) (hcompact : IsCompact (closure (g.ball x r))) : |
| 50 | calibratedMetricVolume g (g.ball x r) < ⊤ := |
| 51 | (measure_mono subset_closure).trans_lt |
| 52 | (calibratedMetricVolume_lt_top_of_isCompact g hcompact) |
| 53 | |
| 54 | /-- Positive-radius balls have positive calibrated volume. This justifies |
| 55 | the volume ratio in Proposition 8.2, p. 170. -/ |
| 56 | theorem calibratedMetricVolume_ball_pos (g : RiemannianMetric n M) |
| 57 | (x : M) {r : ℝ} (hr : 0 < r) : 0 < calibratedMetricVolume g (g.ball x r) := by |
| 58 | rw [calibratedMetricVolume_eq_volumeMeasure] |
| 59 | exact g.volumeMeasure_ball_pos x hr |
| 60 | |
| 61 | /-- A local differential norm bound controls the calibrated volume of a |
| 62 | compact image. This is the local measure comparison used in Claim 8.8, |
| 63 | pp. 174-175, without a global identification of intrinsic distances. -/ |
| 64 | theorem calibratedMetricVolume_image_le_of_tangentNorm_le_on_compact |
| 65 | {N : Type v} [TopologicalSpace N] |
| 66 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) N] [IsManifold (𝓡 n) ∞ N] |
| 67 | [MeasurableSpace N] [BorelSpace N] [T3Space N] |
| 68 | (g : RiemannianMetric n M) (h : RiemannianMetric n N) |
| 69 | {f : M → N} {U s : Set M} (hU : IsOpen U) (hs : IsCompact s) (hsU : s ⊆ U) |
| 70 | (hf : ContMDiffOn (𝓡 n) (𝓡 n) 1 f U) {C : ℝ} (hC : 0 < C) |
| 71 | (hbound : ∀ x ∈ U, ∀ w : TangentSpace (𝓡 n) x, |
| 72 | h.tangentNorm (f x) (mfderiv (𝓡 n) (𝓡 n) f x w) ≤ C * g.tangentNorm x w) : |
| 73 | calibratedMetricVolume h (f '' s) ≤ |
| 74 | ENNReal.ofReal C ^ n * calibratedMetricVolume g s := by |
| 75 | simpa only [calibratedMetricVolume_eq_volumeMeasure] using |
| 76 | g.volumeMeasure_image_le_of_tangentNorm_le_on_compact h hU hs hsU hf hC hbound |
| 77 | |
| 78 | end PoincareMT.Generalized.Noncollapse |