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.Existence.Lifetime.Basic.GoodPoint |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Curvature.ScalarGradientNorm |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Curvature.ScalarEvolutionHomothety |
| 4 | import PoincareLib.Geometry.RicciFlow.Curvature.Evolution.Scalar.Within |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Imports.Geometry.RicciFlow.Curvature.Calculus.Fields.ConnectionScalar |
| 6 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Imports.Geometry.RicciFlow.Curvature.Calculus.Fields.FixedExtension |
| 7 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Imports.Geometry.RicciFlow.Curvature.Calculus.Identities.CurvatureAlgebra |
| 8 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Imports.Geometry.RicciFlow.Curvature.Calculus.Identities.CurvatureSymmetries |
| 9 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Imports.Geometry.RicciFlow.Curvature.Calculus.Tensors.RicciRegularity |
| 10 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Imports.Geometry.RicciFlow.Curvature.Calculus.Tensors.RiemannRegularity |
| 11 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Imports.Geometry.RicciFlow.Curvature.Calculus.Tensors.TensorDerivativeClosure |
| 12 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Imports.Geometry.RicciFlow.Curvature.Evolution.Scalar.SpatialCoefficients |
| 13 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Imports.Geometry.Riemannian.Curvature.IntrinsicCalculus |
| 14 | |
| 15 | /-! |
| 16 | # Actual analytic readouts give the full good-point property |
| 17 | |
| 18 | The selected scalar-gradient norm bounds every metric-unit derivative. |
| 19 | Every genuine flow box has the same scalar evolution numerator through its |
| 20 | actual metric pullback, so M04 supplies the required within-time derivative. |
| 21 | Source: Morgan-Tian Theorems 9.93 and 12.28, pp. 242-243, 323-324; |
| 22 | good-point-analytic-assembly.md, section 3. |
| 23 | -/ |
| 24 | |
| 25 | set_option autoImplicit false |
| 26 | |
| 27 | open Set |
| 28 | open scoped Manifold ContDiff Bundle |
| 29 | |
| 30 | universe u |
| 31 | |
| 32 | namespace PoincareMT.M34 |
| 33 | |
| 34 | /-- Actual static analytic bounds and a canonical certificate give all |
| 35 | fields of the good-point property, including every flow box (Theorem 12.28). -/ |
| 36 | theorem chapter11GoodPoint_of_scalar_bounds |
| 37 | {G : GeneralizedRicciFlowData.{u}} {epsilon C A : ℝ} (p : G.point) |
| 38 | (hcanonical : Nonempty (GeneralizedCanonicalControl (F := G) p.1 p.2 epsilon C)) |
| 39 | (hgradient : scalarGradientNorm (G.metric p.1) (G.connection p.1) p.2 ≤ |
| 40 | A * (G.scalar p) ^ (3 / 2 : ℝ)) |
| 41 | (hevolution : |(G.connection p.1).laplacian (G.connection p.1).scalarCurvature p.2 + |
| 42 | 2 * (G.connection p.1).ricciNormSq p.2| ≤ A * (G.scalar p) ^ 2) : |
| 43 | Chapter11GoodPoint G epsilon C A p := by |
| 44 | refine ⟨hcanonical, ?_, ?_⟩ |
| 45 | · intro v hv |
| 46 | have hnorm : (G.metric p.1).tangentNorm p.2 v = 1 := by |
| 47 | change Real.sqrt ((G.metric p.1).inner p.2 v v) = 1 |
| 48 | rw [hv, Real.sqrt_one] |
| 49 | have h := (G.connection p.1).abs_mvfderiv_le_gradient_norm |
| 50 | (G.connection p.1).scalarCurvature p.2 v |
| 51 | rw [hnorm, mul_one, ← scalarGradientNorm_eq_tangentNorm] at h |
| 52 | exact h.trans hgradient |
| 53 | · intro b ht x hx |
| 54 | let B := G.box b |
| 55 | change B.forward p.1 ht x = p.2 at hx |
| 56 | have hmetric : ∀ y ∈ (univ : Set B.carrier.carrier), ∀ v w, |
| 57 | (B.flow.metric p.1).inner y v w = 1 * (G.metric p.1).inner |
| 58 | (B.forward p.1 ht y) (mfderiv (𝓡 3) (𝓡 3) (B.forward p.1 ht) y v) |
| 59 | (mfderiv (𝓡 3) (𝓡 3) (B.forward p.1 ht) y w) := by |
| 60 | intro y _ v w |
| 61 | simpa only [one_mul] using (B.metric_pullback p.1 ht y v w).symm |
| 62 | have hscalar := (B.flow.connection p.1).scalarCurvature_eq_of_local_homothety |
| 63 | (G.connection p.1) (Q := 1) zero_lt_one isOpen_univ |
| 64 | (B.forward_smooth p.1 ht).contMDiffOn hmetric (mem_univ x) |
| 65 | have hrate := (B.flow.connection p.1).scalarEvolutionNumerator_eq_of_local_homothety |
| 66 | (G.connection p.1) (Q := 1) zero_lt_one isOpen_univ |
| 67 | (B.forward_smooth p.1 ht).contMDiffOn hmetric (mem_univ x) |
| 68 | simp only [one_pow, div_one, hx] at hscalar hrate |
| 69 | refine ⟨(B.flow.connection p.1).laplacian (B.flow.connection p.1).scalarCurvature x + |
| 70 | 2 * (B.flow.connection p.1).ricciNormSq x, |
| 71 | B.flow.hasDerivWithinAt_scalarCurvature p.1 ht x, ?_⟩ |
| 72 | rw [hrate, hscalar] |
| 73 | exact hevolution |
| 74 | |
| 75 | end PoincareMT.M34 |