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.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.TerminalBlowup.AngularCollapse |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.TerminalBlowup.TipPropagation |
| 4 | |
| 5 | /-! |
| 6 | # Pointwise terminal blowup from the independent gradient control |
| 7 | |
| 8 | Morgan-Tian Proposition 12.31, pp. 325-326. Angular collapse already |
| 9 | forces scalar divergence at every nonzero point. The independent guarded |
| 10 | gradient bound then propagates that conclusion to the tip. Neither a |
| 11 | uniform scalar lower rate nor the extra-time canonical alternative is |
| 12 | assumed in this implication. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.RepairedStandardCapExistenceData |
| 21 | |
| 22 | /-- Proposition 12.31: actual angular collapse together with an |
| 23 | independently established guarded gradient estimate gives scalar divergence |
| 24 | at every fixed point of the selected standard solution. -/ |
| 25 | theorem scalar_tendsto_of_guarded_gradient |
| 26 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 27 | (E : RepairedStandardCapExistenceData g₀) |
| 28 | {A H : ℝ} (hA : 0 < A) |
| 29 | (hgrad : ∀ t ∈ Ico 0 E.flow.base.lifetime, ∀ x : StandardCapSpace, |
| 30 | H ≤ (E.flow.connection t).scalarCurvature x → |
| 31 | ∀ v : TangentSpace (𝓡 3) x, (E.flow.metric t).inner x v v = 1 → |
| 32 | |mvfderiv (𝓡 3) (E.flow.connection t).scalarCurvature x v| ≤ |
| 33 | A * (E.flow.connection t).scalarCurvature x ^ (3 / 2 : ℝ)) |
| 34 | (x : StandardCapSpace) : |
| 35 | Tendsto (fun t => (E.flow.connection t).scalarCurvature x) (𝓝[<] 1) atTop := by |
| 36 | by_cases hx : x = 0 |
| 37 | · subst x |
| 38 | exact E.scalar_tendsto_at_origin_of_tendsto_off_origin P hA hgrad |
| 39 | (fun y hy => E.scalar_tendsto_off_origin P hy) |
| 40 | · exact E.scalar_tendsto_off_origin P hx |
| 41 | |
| 42 | end PoincareMT.RepairedStandardCapExistenceData |