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.Uniform |
| 2 | |
| 3 | /-! |
| 4 | Adapted from Mapher `PoincareMT/Definitions/M15Noncollapsing.lean` at |
| 5 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 6 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 7 | -/ |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | |
| 11 | open scoped Manifold ContDiff Bundle ENNReal Topology BigOperators intervalIntegral |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | namespace PoincareMT |
| 16 | |
| 17 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 18 | {I : SpacetimeInterval} |
| 19 | |
| 20 | def M15GeneralizedNoncollapseAt |
| 21 | (G : GeneralizedLGeometryTransport n X time I) |
| 22 | (p : G.Point) (r₀ κ : ℝ) : Prop := |
| 23 | ∀ (r : ℝ), 0 < r → r ≤ r₀ → |
| 24 | ∀ (x : (G.slices (G.spacetime.timeFunction p)).Point), x.val = p → |
| 25 | ∀ (K : SpacetimeInterval) |
| 26 | (C : Type u) [TopologicalSpace C] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] |
| 28 | [IsManifold (𝓡 n) ∞ C] [T2Space C] [SecondCountableTopology C] |
| 29 | (_B : M15ActualBallCylinder G (G.spacetime.timeFunction p) x r K C), |
| 30 | ENNReal.ofReal (κ * r ^ n) ≤ |
| 31 | calibratedMetricVolume |
| 32 | (G.slices (G.spacetime.timeFunction p)).metricOnPoints |
| 33 | ((G.slices (G.spacetime.timeFunction p)).metricOnPoints.ball x r) |
| 34 | |
| 35 | /-! |
| 36 | For each tested point and scale, a provider supplies one actual M14 branch, |
| 37 | stable set, and Theorem 8.1 configuration. Compact closure belongs to the |
| 38 | configuration's source-cylinder support; the target predicate remains the |
| 39 | ordinary volume statement above. |
| 40 | -/ |
| 41 | structure M15ConfigurationProvider |
| 42 | (G : GeneralizedLGeometryTransport n X time I) |
| 43 | (Omega : Set G.Point) |
| 44 | (taubar l₀ V r₀ : ℝ) : Prop where |
| 45 | provide : ∀ (p : G.Point), p ∈ Omega → |
| 46 | ∀ (r : ℝ), 0 < r → r ≤ r₀ → |
| 47 | ∀ (x : (G.slices (G.spacetime.timeFunction p)).Point), x.val = p → |
| 48 | ∀ (K : SpacetimeInterval) |
| 49 | (C : Type u) [TopologicalSpace C] |
| 50 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] |
| 51 | [IsManifold (𝓡 n) ∞ C] [T2Space C] [SecondCountableTopology C] |
| 52 | (B : M15ActualBallCylinder G (G.spacetime.timeFunction p) x r K C), |
| 53 | ∃ E : M14ExponentialFamily G (G.spacetime.timeFunction p) x.val, |
| 54 | Nonempty (M15Theorem81Configuration G |
| 55 | (G.spacetime.timeFunction p) x E taubar l₀ V r K C B) |
| 56 | |
| 57 | /-! |
| 58 | The useful target form of the provider implication keeps the fixed constant |
| 59 | visible. The implication is a proposition, so the later proving theorem can |
| 60 | state it without defining a second hidden noncollapsing notion. |
| 61 | -/ |
| 62 | def M15ProviderImpliesNoncollapse |
| 63 | (G : GeneralizedLGeometryTransport n X time I) |
| 64 | (Omega : Set G.Point) |
| 65 | (taubar l₀ V r₀ κ : ℝ) |
| 66 | (U : M15GeneralizedUniformData.{u} n taubar l₀ V) : Prop := |
| 67 | M15ConfigurationProvider G Omega taubar l₀ V r₀ → |
| 68 | (κ = U.kappa ∧ |
| 69 | ∀ (p : G.Point) (_hp : p ∈ Omega), |
| 70 | M15GeneralizedNoncollapseAt G p r₀ κ) |
| 71 | |
| 72 | end PoincareMT |