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.DenseTheory |
| 2 | |
| 3 | /-! |
| 4 | # Bounded-distance estimates from dense-time canonical control |
| 5 | |
| 6 | Adapted from Mapher commit `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`, |
| 7 | Definitions/Statements M28BoundedDistance. The service remains an explicit |
| 8 | predecessor hypothesis. The earlier-time interface is preserved and recovered |
| 9 | by `DenseTime.BoundedDistanceTheory.toEarlierTime`. |
| 10 | |
| 11 | Morgan--Tian, Theorem 10.2, pp. 245--246; the source regular-time boundary |
| 12 | review of 18 September 2026. See |
| 13 | `references/ricci-flow/mapher/dense-time-bounded-distance.md`. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | namespace DenseTime |
| 23 | |
| 24 | def SameTimeEstimateStatement (epsilon₀ : ℝ) : Prop := |
| 25 | ∀ epsilon : ℝ, 0 < epsilon → epsilon ≤ epsilon₀ → |
| 26 | ∀ C : ℝ, 0 < C → ∀ A : ℝ, 0 ≤ A → |
| 27 | ∃ D₀ D : ℝ, 0 < D₀ ∧ 0 < D ∧ |
| 28 | ∀ F : GeneralizedRicciFlowData.{u}, |
| 29 | generalizedWeakHamiltonIveyPinched F → |
| 30 | ∀ t, t ∈ F.interval → ∀ x : (F.slice t).carrier, |
| 31 | D₀ ≤ F.scalar ⟨t, x⟩ → |
| 32 | generalizedSliceStrongCanonicalNeighborhoods F epsilon C |
| 33 | (4 * F.scalar ⟨t, x⟩) t → |
| 34 | RepairedBoundedDistanceEstimate F A D t x |
| 35 | |
| 36 | def DenseTimeEstimateStatement (epsilon₀ : ℝ) : Prop := |
| 37 | ∀ epsilon : ℝ, 0 < epsilon → epsilon ≤ epsilon₀ → |
| 38 | ∀ C : ℝ, 0 < C → ∀ A : ℝ, 0 ≤ A → |
| 39 | ∃ D₀ D : ℝ, 0 < D₀ ∧ 0 < D ∧ |
| 40 | ∀ F : GeneralizedRicciFlowData.{u}, |
| 41 | generalizedWeakHamiltonIveyPinched F → |
| 42 | ∀ t, t ∈ F.interval → ∀ x : (F.slice t).carrier, |
| 43 | D₀ ≤ F.scalar ⟨t, x⟩ → |
| 44 | generalizedEarlierDenseStrongCanonicalNeighborhoods F epsilon C t x → |
| 45 | RepairedBoundedDistanceEstimate F A D t x |
| 46 | |
| 47 | /-- The current source service supplies both estimates at one accuracy threshold. -/ |
| 48 | abbrev BoundedDistanceTheory : Prop := DenseBoundedDistanceTheory.{u} |
| 49 | |
| 50 | theorem BoundedDistanceTheory.same_time_constants (P : BoundedDistanceTheory.{u}) : |
| 51 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 200 : ℝ) ∧ |
| 52 | SameTimeEstimateStatement.{u} epsilon₀ := by |
| 53 | obtain ⟨epsilon₀, hpos, hsmall, hsame, _⟩ := P.bounds |
| 54 | exact ⟨epsilon₀, hpos, hsmall, hsame⟩ |
| 55 | |
| 56 | theorem BoundedDistanceTheory.dense_constants (P : BoundedDistanceTheory.{u}) : |
| 57 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 200 : ℝ) ∧ |
| 58 | DenseTimeEstimateStatement.{u} epsilon₀ := by |
| 59 | obtain ⟨epsilon₀, hpos, hsmall, _, hdense⟩ := P.bounds |
| 60 | exact ⟨epsilon₀, hpos, hsmall, hdense⟩ |
| 61 | |
| 62 | /-- The printed earlier-time assumption includes control at the tested time. -/ |
| 63 | theorem BoundedDistanceTheory.toEarlierTime |
| 64 | (P : BoundedDistanceTheory.{u}) : |
| 65 | PoincareMT.RepairedBoundedDistanceTheory.{u} := by |
| 66 | obtain ⟨epsilon₀, hpos, hsmall, estimate⟩ := P.same_time_constants |
| 67 | refine ⟨epsilon₀, hpos, hsmall, ?_⟩ |
| 68 | intro epsilon hepsilon hle C hC A hA |
| 69 | obtain ⟨D₀, D, hD₀, hD, bound⟩ := estimate epsilon hepsilon hle C hC A hA |
| 70 | refine ⟨D₀, D, hD₀, hD, ?_⟩ |
| 71 | intro F hpinched t ht x hx hcanonical |
| 72 | exact bound F hpinched t ht x hx (hcanonical t ht le_rfl) |
| 73 | |
| 74 | end DenseTime |
| 75 | |
| 76 | end PoincareMT |