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.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Persistence.CapTopology.QuantitativeRecut |
| 3 | |
| 4 | /-! |
| 5 | # Normalized volume bounds on actual cap recuts |
| 6 | |
| 7 | Morgan--Tian Proposition 9.79, pp. 232-234. The scalar-ratio field of an |
| 8 | actual cap bounds its scalar range. On any nonempty subset, the scalar |
| 9 | supremum decreases, so the allowance with exponent `-3/2` increases while |
| 10 | the calibrated volume decreases. See the task derivation |
| 11 | `cap-topology/2026-09-23-recut-quantitative-producers.md`. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.CapCertificate |
| 22 | |
| 23 | variable {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 25 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 26 | [T3Space M] {g : RiemannianMetric 3 M} |
| 27 | |
| 28 | /-- On every nonempty subset of an actual cap, the scalar supremum is |
| 29 | positive and no larger than the old scalar supremum. The old scalar-ratio |
| 30 | witness supplies boundedness, without assuming supremum attainment. -/ |
| 31 | theorem scalar_sup_pos_and_le_of_subset (N : CapCertificate g) |
| 32 | {V : Set M} (hne : V.Nonempty) (hV : V ⊆ N.carrier) : |
| 33 | 0 < scalarCurvatureSupOn g N.connection V ∧ |
| 34 | scalarCurvatureSupOn g N.connection V ≤ |
| 35 | scalarCurvatureSupOn g N.connection N.carrier := by |
| 36 | obtain ⟨x, hx⟩ := hne |
| 37 | obtain ⟨b, _, hb⟩ := N.scalar_ratio |
| 38 | have hbounded : BddAbove (range (fun z : N.carrier => |
| 39 | N.connection.scalarCurvature z.1)) := by |
| 40 | refine ⟨b * N.connection.scalarCurvature x, ?_⟩ |
| 41 | rintro _ ⟨y, rfl⟩ |
| 42 | exact hb x (hV hx) y.1 y.2 |
| 43 | have hsubset : range (fun z : V => N.connection.scalarCurvature z.1) ⊆ |
| 44 | range (fun z : N.carrier => N.connection.scalarCurvature z.1) := by |
| 45 | rintro _ ⟨y, rfl⟩ |
| 46 | exact ⟨⟨y.1, hV y.2⟩, rfl⟩ |
| 47 | have hmem : N.connection.scalarCurvature x ∈ |
| 48 | range (fun z : V => N.connection.scalarCurvature z.1) := |
| 49 | ⟨⟨x, hx⟩, rfl⟩ |
| 50 | exact ⟨(N.scalar_pos x (hV hx)).trans_le |
| 51 | (le_csSup (hbounded.mono hsubset) hmem), |
| 52 | csSup_le_csSup hbounded ⟨_, hmem⟩ hsubset⟩ |
| 53 | |
| 54 | /-- Every nonempty subset of the old cap inherits its strict normalized |
| 55 | calibrated-volume bound with the unchanged old cap constant. -/ |
| 56 | theorem normalized_volume_bound_of_subset (N : CapCertificate g) |
| 57 | {V : Set M} (hne : V.Nonempty) (hV : V ⊆ N.carrier) : |
| 58 | calibratedMetricVolume g V < ENNReal.ofReal N.cap_constant * |
| 59 | ENNReal.ofReal (scalarCurvatureSupOn g N.connection V ^ (-3 / 2 : ℝ)) := by |
| 60 | obtain ⟨hpos, hsup⟩ := N.scalar_sup_pos_and_le_of_subset hne hV |
| 61 | have hpower := Real.rpow_le_rpow_of_nonpos hpos hsup |
| 62 | (show (-3 / 2 : ℝ) ≤ 0 by norm_num) |
| 63 | exact ((MeasureTheory.measure_mono hV).trans_lt N.volume_bound).trans_le |
| 64 | (mul_le_mul' le_rfl (ENNReal.ofReal_le_ofReal hpower)) |
| 65 | |
| 66 | /-- Construct the old-metric quantitative recut margins from actual |
| 67 | diameter and core-ball confinement. The volume field is now produced |
| 68 | from the old cap, rather than supplied as a target conclusion. -/ |
| 69 | theorem exists_quantitative_cap_recut_margins_of_diameter_and_core_balls |
| 70 | (N : CapCertificate g) {V : Set M} |
| 71 | (hne : V.Nonempty) (hV : V ⊆ N.carrier) |
| 72 | (hdiam : intrinsicDiameter g V < |
| 73 | ENNReal.ofReal ((N.cap_constant + 1) * |
| 74 | scalarCurvatureSupOn g N.connection V ^ (-1 / 2 : ℝ))) |
| 75 | (hball : ∀ y ∈ N.core, |
| 76 | closure (g.ball y (N.core_radius y)) ⊆ V) : |
| 77 | Nonempty (QuantitativeCapRecutMargins N V) := by |
| 78 | apply N.exists_quantitative_cap_recut_margins_of_old_cap hV hdiam _ hball |
| 79 | exact (N.normalized_volume_bound_of_subset hne hV).trans_le |
| 80 | (mul_le_mul' (ENNReal.ofReal_le_ofReal |
| 81 | (show N.cap_constant ≤ N.cap_constant + 1 by linarith)) le_rfl) |
| 82 | |
| 83 | end PoincareMT.CapCertificate |