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.AncientKappa.Theory |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Controls |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Normalization |
| 4 | import PoincareLib.Geometry.Riemannian.Curvature.Scalar.SharpBounds |
| 5 | |
| 6 | /-! |
| 7 | # Structural consequences of ancient kappa-solutions |
| 8 | |
| 9 | This proves the frozen M16 statement from the supplied M04, M06 and M13 |
| 10 | predecessor hypotheses. Morgan--Tian, Section 9.1, Definitions 9.1--9.2, |
| 11 | pp. 179--180; Theorem 4.40, p. 82; Definition 3.40, p. 61. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | namespace AncientKappaSolution |
| 23 | |
| 24 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 26 | [IsManifold (𝓡 n) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 27 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 28 | |
| 29 | theorem past_norm_le_scalar (hM04 : RicciFlowCurvatureTheory.{u}) |
| 30 | (hM06 : HarnackAncientTheory.{u}) (K : AncientKappaSolution n M) |
| 31 | (t b : ℝ) (htb : t ≤ b) (hb : b ≤ 0) (x : M) : |
| 32 | (K.flow.connection t).curvatureTensorNorm x ≤ |
| 33 | (K.flow.connection b).scalarCurvature x := |
| 34 | ((K.flow.connection t).curvatureTensorNorm_le_scalarCurvature_sharp |
| 35 | (hM04.tensor_calculus n M _ _) x |
| 36 | (K.nonnegative_curvature_operator t (htb.trans hb) x)).trans |
| 37 | (K.scalar_monotone hM04 hM06 t b htb hb x) |
| 38 | |
| 39 | /-- The complete structural data, including a constructed normalization. -/ |
| 40 | noncomputable def structuralData (hM04 : RicciFlowCurvatureTheory.{u}) |
| 41 | (hM06 : HarnackAncientTheory.{u}) |
| 42 | (hM13 : GeneralizedParabolicRescalingTheory.{u} n) |
| 43 | (K : AncientKappaSolution n M) : AncientKappaStructuralData K where |
| 44 | scalar_pos := K.scalar_pos hM04 hM06 |
| 45 | norm_le_scalar t ht x := |
| 46 | (K.flow.connection t).curvatureTensorNorm_le_scalarCurvature_sharp |
| 47 | (hM04.tensor_calculus n M _ _) x (K.nonnegative_curvature_operator t ht x) |
| 48 | scalar_le_dim_norm t _ x := |
| 49 | (K.flow.connection t).scalarCurvature_le_curvatureTensorNorm_sharp x |
| 50 | ricci_nonnegative t ht x v := (K.ricci_bounds hM04 t ht x v).1 |
| 51 | ricci_upper_bound t ht x v := (K.ricci_bounds hM04 t ht x v).2 |
| 52 | scalar_derivative_nonnegative := K.scalar_derivative_nonnegative hM04 hM06 |
| 53 | scalar_monotone := K.scalar_monotone hM04 hM06 |
| 54 | metric_monotone := K.metric_monotone hM04 |
| 55 | edist_monotone := K.edist_monotone hM04 |
| 56 | ball_monotone s t hst ht x r := by |
| 57 | intro y hy |
| 58 | exact lt_of_le_of_lt (K.edist_monotone hM04 s t hst ht x y) hy |
| 59 | past_norm_le_scalar := K.past_norm_le_scalar hM04 hM06 |
| 60 | fixed_set_bound b hb A C hC t ht x hx := |
| 61 | (K.past_norm_le_scalar hM04 hM06 t b ht hb x).trans (hC x hx) |
| 62 | whole_past_bound b hb := by |
| 63 | obtain ⟨C, hC, hbound⟩ := K.bounded_curvature b hb |
| 64 | refine ⟨(n : ℝ) * C + 1, by positivity, ?_⟩ |
| 65 | intro t ht x |
| 66 | rw [abs_of_nonneg (show 0 ≤ (K.flow.connection t).curvatureTensorNorm x from |
| 67 | Real.sqrt_nonneg _)] |
| 68 | calc |
| 69 | _ ≤ (K.flow.connection b).scalarCurvature x := |
| 70 | K.past_norm_le_scalar hM04 hM06 t b ht hb x |
| 71 | _ ≤ (n : ℝ) * (K.flow.connection b).curvatureTensorNorm x := |
| 72 | (K.flow.connection b).scalarCurvature_le_curvatureTensorNorm_sharp x |
| 73 | _ ≤ (n : ℝ) * C := |
| 74 | mul_le_mul_of_nonneg_left ((le_abs_self _).trans (hbound x)) (Nat.cast_nonneg n) |
| 75 | _ ≤ (n : ℝ) * C + 1 := by linarith |
| 76 | normalization p b hb := ancientKappaNormalization hM13 K p b hb |
| 77 | (K.scalar_pos hM04 hM06 b hb p) |
| 78 | |
| 79 | end AncientKappaSolution |
| 80 | |
| 81 | /-- Structural consequences for every ancient kappa-solution, relative to |
| 82 | the exact frozen curvature, Harnack and rescaling predecessor theories. -/ |
| 83 | theorem ancientKappaStructuralConsequences |
| 84 | (n : ℕ) |
| 85 | (hM04 : RicciFlowCurvatureTheory.{u}) |
| 86 | (hM06 : HarnackAncientTheory.{u}) |
| 87 | (hM13 : GeneralizedParabolicRescalingTheory.{u} n) : |
| 88 | AncientKappaStructuralConclusion.{u} n := by |
| 89 | exact ⟨⟨fun _ _ _ _ _ _ _ _ _ _ K => K.structuralData hM04 hM06 hM13⟩⟩ |
| 90 | |
| 91 | end PoincareMT |