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.CapGeometry.UnitTimeCanonical |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.ScalarOperators.StrongCanonicalScalar |
| 4 | |
| 5 | /-! |
| 6 | # Independent guarded scalar estimates from unit-time canonical control |
| 7 | |
| 8 | Morgan-Tian Theorem 12.28 and Proposition 12.31, pp. 323-326. |
| 9 | The full high-curvature unit-time alternatives suffice for both analytic |
| 10 | bounds. Neither the final extra-time alternative nor the scalar lower |
| 11 | rate is used to obtain these constants. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | namespace PoincareMT.M35.OrdinaryRealization |
| 20 | |
| 21 | /-- Theorem 12.28: the exact slice identification also transports |
| 22 | the scalar differential from the slice back to ordinary unit directions. -/ |
| 23 | theorem scalar_directional_pullback_eq (P : M35StandardCapPredecessors) |
| 24 | {J : Set ℝ} (F : RicciFlow 3 StandardCapSpace J) {t : ℝ} (ht : t ∈ J) |
| 25 | (x : StandardCapSpace) (v : TangentSpace (𝓡 3) x) : |
| 26 | mvfderiv (𝓡 3) (F.connection t).scalarCurvature x v = |
| 27 | mvfderiv (𝓡 3) (connection F t).scalarCurvature ((sliceDiffeomorph ht).symm x) |
| 28 | (mfderiv (𝓡 3) (𝓡 3) (sliceDiffeomorph ht).symm x v) := by |
| 29 | have hfun : (F.connection t).scalarCurvature = |
| 30 | (connection F t).scalarCurvature ∘ (sliceDiffeomorph ht).symm := |
| 31 | funext (fun y => (scalar_eq P F ht y).symm) |
| 32 | rw [hfun] |
| 33 | exact mvfderiv_comp_apply x |
| 34 | ((Proofs.M09.scalarCurvature_contMDiff P.curvature (connection F t)).mdifferentiable |
| 35 | (by simp) _) |
| 36 | ((sliceDiffeomorph ht).symm.contMDiff.mdifferentiable (by simp) _) v |
| 37 | |
| 38 | /-- Theorem 12.28: the selected flow has independent guarded |
| 39 | gradient and absolute scalar evolution bounds with one fixed constant. -/ |
| 40 | theorem exists_unit_time_scalar_estimates (P : M35StandardCapPredecessors) |
| 41 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) : |
| 42 | ∃ A H : ℝ, 0 < A ∧ 0 < H ∧ ∀ t ∈ Ico 0 E.flow.base.lifetime, |
| 43 | ∀ x : StandardCapSpace, H ≤ (E.flow.connection t).scalarCurvature x → |
| 44 | (∀ v : TangentSpace (𝓡 3) x, (E.flow.metric t).inner x v v = 1 → |
| 45 | |mvfderiv (𝓡 3) (E.flow.connection t).scalarCurvature x v| ≤ |
| 46 | A * (E.flow.connection t).scalarCurvature x ^ (3 / 2 : ℝ)) ∧ |
| 47 | |(E.flow.connection t).laplacian (E.flow.connection t).scalarCurvature x + |
| 48 | 2 * (E.flow.connection t).ricciNormSq x| ≤ |
| 49 | A * ((E.flow.connection t).scalarCurvature x) ^ 2 := by |
| 50 | obtain ⟨deltaU, hdeltaU, hunit⟩ := exists_unit_time_canonical_constants P |
| 51 | obtain ⟨deltaS, A, hdeltaS, hA, hbounds⟩ := exists_strong_canonical_scalar_bounds P |
| 52 | let epsilon := min deltaS deltaU |
| 53 | have he : 0 < epsilon := lt_min hdeltaS hdeltaU |
| 54 | obtain ⟨C, H, _hC, hH, hcanonical⟩ := hunit epsilon he (min_le_right _ _) E |
| 55 | refine ⟨max A C, H, hA.trans_le (le_max_left _ _), hH, ?_⟩ |
| 56 | intro t ht x hR |
| 57 | have hb := hbounds epsilon C (min_le_left _ _) E.atlas g₀ E.flow t |
| 58 | ((sliceDiffeomorph ht).symm x) (hcanonical t ht x hR) |
| 59 | refine ⟨?_, hb.2⟩ |
| 60 | intro v hv |
| 61 | have hunitv := (metric_pullback E.flow.base.flow ht x v v).trans hv |
| 62 | have h := hb.1 (mfderiv (𝓡 3) (𝓡 3) (sliceDiffeomorph ht).symm x v) hunitv |
| 63 | have hscalar : ((generalizedFlow E.flow.base.flow).connection t).scalarCurvature |
| 64 | ((sliceDiffeomorph ht).symm x) = (E.flow.connection t).scalarCurvature x := |
| 65 | scalar_eq P E.flow.base.flow ht x |
| 66 | rw [hscalar] at h |
| 67 | exact (congrArg abs (scalar_directional_pullback_eq P E.flow.base.flow ht x v)).trans_le h |
| 68 | |
| 69 | end PoincareMT.M35.OrdinaryRealization |