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.ReducedGeometry.Exponential |
| 2 | import PoincareLib.Geometry.Riemannian.Measure.Calibrated |
| 3 | |
| 4 | /-! Ported from Mapher06/Poincare-MorganTian, `PoincareMT/Definitions/M15Noncollapsing.lean`, |
| 5 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. This module retains the |
| 6 | unchanged generalized uniform service and its exact definition closure. |
| 7 | See `references/ricci-flow/mapher/generalized-noncollapse-port.json`. -/ |
| 8 | |
| 9 | /-! |
| 10 | # M15 noncollapsing data and predicates |
| 11 | |
| 12 | Morgan--Tian, Theorem 8.1, pp. 169-176, and Theorem 8.10, pp. 176-177. |
| 13 | This file contains the actual configuration interfaces used by those two |
| 14 | results. A configuration keeps one generalized spacetime, one M14 |
| 15 | exponential branch, one fixed-time stable set, one based compatible cylinder, |
| 16 | and the three source estimates (`tau₀`, normalized reduced length, and |
| 17 | terminal image volume). The constants are quantified before the flow and |
| 18 | configuration. The compact statement is a separate interface and does not |
| 19 | reuse generalized-flow constants. |
| 20 | |
| 21 | The Chapter 8 source is read together with the project corrections in |
| 22 | `reviews/errata/2026-09-13-reduced-length-source.md` and |
| 23 | `reviews/errata/2026-09-11-tensor-evolution.md`, and the repair contract in |
| 24 | `reviews/contracts/M15-repair-contract.md`. In particular, the cylinder is |
| 25 | based on every point of the actual terminal ball, its curvature hypothesis is |
| 26 | on the full image (including endpoints), and the compact clause evaluates |
| 27 | only at times belonging to the supplied flow domain. |
| 28 | -/ |
| 29 | |
| 30 | set_option autoImplicit false |
| 31 | |
| 32 | open scoped Manifold ContDiff Bundle ENNReal Topology intervalIntegral |
| 33 | |
| 34 | universe u |
| 35 | |
| 36 | namespace PoincareMT |
| 37 | |
| 38 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 39 | {I : SpacetimeInterval} |
| 40 | |
| 41 | /-! ### Actual based cylinders -/ |
| 42 | |
| 43 | /-! |
| 44 | An actual smooth source for a compatible cylinder need not itself be the |
| 45 | ambient slice type: an open metric ball has no automatic manifold instance in |
| 46 | the pinned library. The source carrier is therefore an explicitly charted |
| 47 | manifold, together with an embedding whose range is exactly the selected |
| 48 | metric ball. This is the source-ball condition and does not permit an |
| 49 | unrelated carrier or a center-only based identity. |
| 50 | -/ |
| 51 | structure M15ActualBallCylinder |
| 52 | (G : GeneralizedLGeometryTransport n X time I) |
| 53 | (T : ℝ) (x : (G.slices T).Point) (r : ℝ) (K : SpacetimeInterval) |
| 54 | (C : Type u) [TopologicalSpace C] |
| 55 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] |
| 56 | [IsManifold (𝓡 n) ∞ C] [T2Space C] [SecondCountableTopology C] where |
| 57 | radius_pos : 0 < r |
| 58 | interval_domain : K.domain = Set.Icc (T - r ^ 2) T |
| 59 | base_mem : T ∈ K.domain |
| 60 | embedding : CompatibleSpacetimeCylinder G.spacetime |
| 61 | (G.timeIntervals.interval K) C |
| 62 | metric : SpacetimeCylinderMetric embedding |
| 63 | source_map : C → (G.slices T).Point |
| 64 | source_map_embedding : Topology.IsEmbedding source_map |
| 65 | source_map_range : Set.range source_map = |
| 66 | (G.slices T).metricOnPoints.ball x r |
| 67 | based : ∀ c : C, |
| 68 | embedding.toSpacetime (⟨⟨T, base_mem⟩, c⟩) = (source_map c).val |
| 69 | source_map_smooth : |
| 70 | ContMDiffOn (𝓡 n) (𝓡 n) ∞ source_map Set.univ |
| 71 | source_map_differential_injective : ∀ c, |
| 72 | Function.Injective (mfderiv (𝓡 n) (𝓡 n) source_map c) |
| 73 | curvature_bound : ∀ s : (G.timeIntervals.interval K).Point, ∀ c : C, |
| 74 | horizontalCurvatureNorm G.leafwise |
| 75 | (embedding.toSpacetime (s, c)) ≤ r⁻¹ ^ 2 |
| 76 | |
| 77 | /-! ### Theorem 8.1 configuration -/ |
| 78 | |
| 79 | /-! |
| 80 | The normalized length is the M14 reduced-length field |
| 81 | `E.reduced_length Z (sqrt tau₀)`, not a bound on raw action. The endpoint |
| 82 | volume is measured in the exact selected slice metric. The stable set and |
| 83 | its endpoint map therefore cannot be replaced by an arbitrary open tangent |
| 84 | set or a chosen formal exponential. |
| 85 | -/ |
| 86 | structure M15Theorem81Configuration |
| 87 | (G : GeneralizedLGeometryTransport n X time I) |
| 88 | (T : ℝ) (x : (G.slices T).Point) |
| 89 | (E : M14ExponentialFamily G T x.val) |
| 90 | (taubar l₀ V : ℝ) |
| 91 | (r : ℝ) (K : SpacetimeInterval) |
| 92 | (C : Type u) [TopologicalSpace C] |
| 93 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] |
| 94 | [IsManifold (𝓡 n) ∞ C] [T2Space C] [SecondCountableTopology C] |
| 95 | (B : M15ActualBallCylinder G T x r K C) where |
| 96 | tau₀ : ℝ |
| 97 | tau₀_pos : 0 < tau₀ |
| 98 | tau₀_le : tau₀ ≤ taubar |
| 99 | radius_sq_le_tau₀ : r ^ 2 ≤ tau₀ |
| 100 | terminal_mem : T - tau₀ ∈ I.domain |
| 101 | terminal_ball_compact : |
| 102 | IsCompact (closure ((G.slices T).metricOnPoints.ball x r)) |
| 103 | stable : M14StableSet G T tau₀ x.val E |
| 104 | W : Set (G.Horizontal x.val) |
| 105 | W_open : IsOpen W |
| 106 | W_subset_stable : W ⊆ stable.carrier |
| 107 | normalized_reduced_length : ∀ Z, Z ∈ W → |
| 108 | E.reduced_length Z (Real.sqrt tau₀) ≤ l₀ |
| 109 | terminal_image_volume : ENNReal.ofReal V ≤ |
| 110 | calibratedMetricVolume (G.slices (T - tau₀)).metricOnPoints |
| 111 | (stable.endpoint_slice_map '' W) |
| 112 | |
| 113 | /-! |
| 114 | The source estimate is stated directly on a configuration. The ball on the |
| 115 | right is the same ball whose source range occurs in `B`; no independent |
| 116 | metric or carrier is available to the estimate. |
| 117 | -/ |
| 118 | def M15Theorem81Estimate |
| 119 | {G : GeneralizedLGeometryTransport n X time I} |
| 120 | {T : ℝ} {x : (G.slices T).Point} |
| 121 | {E : M14ExponentialFamily G T x.val} |
| 122 | {taubar l₀ V r : ℝ} {K : SpacetimeInterval} {C : Type u} [TopologicalSpace C] |
| 123 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] |
| 124 | [IsManifold (𝓡 n) ∞ C] [T2Space C] [SecondCountableTopology C] |
| 125 | {B : M15ActualBallCylinder G T x r K C} |
| 126 | (_configuration : M15Theorem81Configuration G T x E taubar l₀ V r K C B) |
| 127 | (κ : ℝ) : Prop := |
| 128 | ENNReal.ofReal (κ * r ^ n) ≤ |
| 129 | calibratedMetricVolume (G.slices T).metricOnPoints |
| 130 | ((G.slices T).metricOnPoints.ball x r) |
| 131 | |
| 132 | /-! |
| 133 | Uniformity is explicit: `κ` is a field of the fixed-constant package and the |
| 134 | configuration quantifiers occur only after the generalized spacetime and all |
| 135 | of its M14 data. The package carries this data directly, while every |
| 136 | estimate field is proposition-valued, so constructing it cannot hide an |
| 137 | admitted theorem in a helper definition. |
| 138 | -/ |
| 139 | structure M15GeneralizedUniformData (n : ℕ) (taubar l₀ V : ℝ) where |
| 140 | taubar_pos : 0 < taubar |
| 141 | l₀_pos : 0 < l₀ |
| 142 | V_pos : 0 < V |
| 143 | kappa : ℝ |
| 144 | kappa_pos : 0 < kappa |
| 145 | estimate : ∀ (X : Type u) [TopologicalSpace X] (time : X → ℝ) |
| 146 | (I : SpacetimeInterval) |
| 147 | (G : GeneralizedLGeometryTransport n X time I) |
| 148 | (T : ℝ) (x : (G.slices T).Point) |
| 149 | (E : M14ExponentialFamily G T x.val) |
| 150 | (r : ℝ) (K : SpacetimeInterval) |
| 151 | (C : Type u) [TopologicalSpace C] |
| 152 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] |
| 153 | [IsManifold (𝓡 n) ∞ C] [T2Space C] [SecondCountableTopology C] |
| 154 | (B : M15ActualBallCylinder G T x r K C), |
| 155 | (configuration : M15Theorem81Configuration G T x E taubar l₀ V r K C B) → |
| 156 | M15Theorem81Estimate configuration kappa |
| 157 | |
| 158 | /-! |
| 159 | The generalized theorem quantifies the source constants before all geometric |
| 160 | objects. It is the exact uniform conclusion of Theorem 8.1; no |
| 161 | `omega`/`T₀` parameters occur in this clause. |
| 162 | -/ |
| 163 | def M15GeneralizedUniformTheorem (n : ℕ) : Prop := |
| 164 | ∀ (taubar l₀ V : ℝ), 0 < taubar → 0 < l₀ → 0 < V → |
| 165 | Nonempty (M15GeneralizedUniformData.{u} n taubar l₀ V) |
| 166 | |
| 167 | end PoincareMT |