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.Surgery.StandardCap.Geometry |
| 2 | |
| 3 | /-! |
| 4 | Adapted from Mapher `PoincareMT/Definitions/M34StandardCapExistence.lean` at |
| 5 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 6 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 7 | -/ |
| 8 | |
| 9 | /-! |
| 10 | # M34 repaired standard-cap existence data |
| 11 | |
| 12 | The existence package retains the actual maximal cap flow and its geometric, |
| 13 | asymptotic, and noncollapsing certificates. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | structure RepairedStandardCapExistenceData (g₀ : StandardInitialMetric) where |
| 25 | atlas : StandardCylinderAtlas |
| 26 | flow : MaximalStandardCapFlow g₀ |
| 27 | lifetime_one : flow.base.lifetime = 1 |
| 28 | complete : ∀ t ∈ Set.Ico 0 flow.base.lifetime, |
| 29 | MetricComplete (flow.metric t) |
| 30 | positive_sectional : ∀ t ∈ Set.Ioo 0 flow.base.lifetime, |
| 31 | StandardCapPositiveSectional (flow.connection t) |
| 32 | nonnegative_sectional : ∀ t ∈ Set.Ico 0 flow.base.lifetime, |
| 33 | (flow.connection t).NonnegativeSectionalCurvature |
| 34 | rotation_invariant : ∀ t ∈ Set.Ico 0 flow.base.lifetime, |
| 35 | ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 36 | ∀ x : StandardCapSpace, ∀ u v : TangentSpace (𝓡 3) x, |
| 37 | (flow.metric t).inner (standardRotation A x) |
| 38 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 39 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = |
| 40 | (flow.metric t).inner x u v |
| 41 | initial_estimate : StandardCapEstimate g₀ |
| 42 | asymptotic : ∀ t₀ : ℝ, t₀ ∈ Set.Ico 0 flow.base.lifetime → |
| 43 | ∀ epsilon : ℝ, 0 < epsilon → |
| 44 | Nonempty (StandardFlowAsymptoticCertificate atlas flow epsilon t₀) |
| 45 | noncollapsing : Nonempty (StandardFlowNoncollapsingCertificate flow) |
| 46 | |
| 47 | end PoincareMT |