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 |
| 2 | |
| 3 | /-! |
| 4 | The dense-time canonical-neighborhood vocabulary is shared by the |
| 5 | bounded-distance theory and the `Generalized.DenseTime` compatibility names. |
| 6 | It depends only on the earlier-time bounded-distance definitions. |
| 7 | -/ |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | |
| 11 | universe u |
| 12 | |
| 13 | namespace PoincareMT |
| 14 | |
| 15 | /-- Full canonical control on one actual slice above an absolute scalar cutoff. -/ |
| 16 | def generalizedSliceStrongCanonicalNeighborhoods |
| 17 | (F : GeneralizedRicciFlowData.{u}) (epsilon C Q s : ℝ) : Prop := |
| 18 | ∀ y : (F.slice s).carrier, Q ≤ F.scalar ⟨s, y⟩ → |
| 19 | Nonempty (GeneralizedCanonicalControl (F := F) s y epsilon C) |
| 20 | |
| 21 | /-- One whole good slice is available arbitrarily close from the left to |
| 22 | every earlier included time. The inclusive endpoint also tests an included |
| 23 | minimum; the good time is chosen before its spatial points. -/ |
| 24 | def generalizedEarlierDenseStrongCanonicalNeighborhoods |
| 25 | (F : GeneralizedRicciFlowData.{u}) |
| 26 | (epsilon C t : ℝ) (x : (F.slice t).carrier) : Prop := |
| 27 | ∀ s, s ∈ F.interval → s ≤ t → ∀ a, a < s → |
| 28 | ∃ u, u ∈ F.interval ∧ a < u ∧ u ≤ s ∧ |
| 29 | generalizedSliceStrongCanonicalNeighborhoods F epsilon C |
| 30 | (4 * F.scalar ⟨t, x⟩) u |
| 31 | |
| 32 | theorem generalizedEarlierStrongCanonicalNeighborhoods.left_dense |
| 33 | {F : GeneralizedRicciFlowData.{u}} {epsilon C t : ℝ} |
| 34 | {x : (F.slice t).carrier} |
| 35 | (h : generalizedEarlierStrongCanonicalNeighborhoods F epsilon C t x) : |
| 36 | generalizedEarlierDenseStrongCanonicalNeighborhoods F epsilon C t x := by |
| 37 | intro s hs hst a has |
| 38 | exact ⟨s, hs, has, le_rfl, h s hs hst⟩ |
| 39 | |
| 40 | end PoincareMT |