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.Induction.EpochExtension.Analytics.LaplacianTransport |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Control.Basic |
| 3 | |
| 4 | /-! |
| 5 | # Scalar time control on the actual ordinary slabs |
| 6 | |
| 7 | The scalar evolution formula (Morgan-Tian Theorem 3.13, Eq. (3.7), p. 41) |
| 8 | turns a given guarded spatial analytic estimate into time-derivative control. |
| 9 | All spatial operators are transported through the actual slab map. This |
| 10 | does not produce the analytic estimate or assert control at a surgery jump. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff Bundle Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | /-- A supplied guarded analytic estimate implies the scalar time estimate |
| 22 | on every actual ordinary slab at interior times, with the same threshold |
| 23 | and constant. Only existing M04/M13 theorem services are used. -/ |
| 24 | theorem SurgeryHighCurvatureAnalyticOn.scalar_derivative |
| 25 | {F : SurgeryFlowData.{u}} {J : Set ℝ} {r C : ℝ} |
| 26 | (h : SurgeryHighCurvatureAnalyticOn F J r C) : |
| 27 | SurgeryScalarDerivativeControlOn F J r C := by |
| 28 | intro a b hab hJ hS x t ht hR |
| 29 | let B := F.regular_slabs a b hab hJ hS |
| 30 | let tB : Set.Icc a b := ⟨t, ht.2.1.le, ht.2.2.le⟩ |
| 31 | have hscalar := B.m48_scalarCurvature_eq tB (F.connection t) x |
| 32 | have hguard : r⁻¹ ^ 2 ≤ (F.connection t).scalarCurvature (B.identify tB x) := by |
| 33 | rw [hscalar] |
| 34 | exact hR |
| 35 | have hbound := (h t ht.1 (hJ tB.2) (B.identify tB x) hguard).2 |
| 36 | rw [B.m48_scalarLaplacian_eq tB (F.connection t) x, |
| 37 | B.m48_ricciNormSq_eq tB (F.connection t) x, hscalar] at hbound |
| 38 | refine ⟨(B.flow.connection t).laplacian (B.flow.connection t).scalarCurvature x + |
| 39 | 2 * (B.flow.connection t).ricciNormSq x, ?_, hbound⟩ |
| 40 | exact (B.flow.hasDerivWithinAt_scalarCurvature t tB.2 x).hasDerivAt |
| 41 | (Icc_mem_nhds ht.2.1 ht.2.2) |
| 42 | |
| 43 | end PoincareMT |