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.Blowup.Controlled.Data |
| 2 | |
| 3 | /-! |
| 4 | # The complete good-point property in the Chapter 12 blow-up argument |
| 5 | |
| 6 | Goodness includes both the actual canonical certificate and the two |
| 7 | absolute scalar derivative estimates. The time derivative is taken in |
| 8 | every actual flow-box representation, on its included time domain. |
| 9 | Source: Morgan-Tian Theorem 12.28, pp. 323-324; bad-point selection |
| 10 | derivation, sections 1 and 6. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff Bundle |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M34 |
| 20 | |
| 21 | /-- The geometric and analytic conclusions selected together in the |
| 22 | bad-point argument. All constants precede the spacetime point. -/ |
| 23 | structure Chapter11GoodPoint (G : GeneralizedRicciFlowData.{u}) |
| 24 | (epsilon C A : ℝ) (p : G.point) : Prop where |
| 25 | canonical : Nonempty (GeneralizedCanonicalControl (F := G) p.1 p.2 epsilon C) |
| 26 | scalar_gradient : ∀ v : TangentSpace (𝓡 3) p.2, (G.metric p.1).inner p.2 v v = 1 → |
| 27 | |mvfderiv (𝓡 3) (G.connection p.1).scalarCurvature p.2 v| ≤ |
| 28 | A * (G.scalar p) ^ (3 / 2 : ℝ) |
| 29 | scalar_time_derivative : ∀ b (ht : p.1 ∈ (G.box b).interval) |
| 30 | (x : (G.box b).carrier.carrier), (G.box b).forward p.1 ht x = p.2 → |
| 31 | ∃ d : ℝ, HasDerivWithinAt (fun s => ((G.box b).flow.connection s).scalarCurvature x) |
| 32 | d (G.box b).interval p.1 ∧ |
| 33 | |d| ≤ A * (((G.box b).flow.connection p.1).scalarCurvature x) ^ 2 |
| 34 | |
| 35 | /-- Earlier good points give the exact left-dense whole-slice canonical |
| 36 | field required by M30, using each included time itself (Theorem 12.28). -/ |
| 37 | theorem chapter11GoodPoint_earlier_canonical |
| 38 | {G : GeneralizedRicciFlowData.{u}} {epsilon C A : ℝ} (p : G.point) |
| 39 | (hgood : ∀ q : G.point, q.1 ≤ p.1 → 4 * G.scalar p ≤ G.scalar q → |
| 40 | Chapter11GoodPoint G epsilon C A q) : |
| 41 | generalizedEarlierDenseStrongCanonicalNeighborhoods G epsilon C p.1 p.2 := by |
| 42 | apply generalizedEarlierStrongCanonicalNeighborhoods.left_dense |
| 43 | intro t _ ht x hx |
| 44 | exact (hgood ⟨t, x⟩ ht hx).canonical |
| 45 | |
| 46 | end PoincareMT.M34 |