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.CurveShortening.Comparison.AnnularEvolution.Modulus.UnitCurvatureBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Product.Circle.Bounds |
| 3 | |
| 4 | /-! |
| 5 | # Original unit-input curvature control after two flat factors |
| 6 | |
| 7 | The Ricci tensor drops both circle components before applying the original |
| 8 | base unit-input bound. The ambient M63 constant therefore retains the |
| 9 | coefficient `n - 1`; no full tensor norm is identified with that constant. |
| 10 | |
| 11 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 12 | 447-449. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff |
| 20 | |
| 21 | namespace PoincareMT.M64 |
| 22 | |
| 23 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] [T2Space M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 25 | {a b : ℝ} {F : RicciFlow n M (Icc a b)} {circumference auxiliary : ℝ} |
| 26 | |
| 27 | /-- Bound the stabilized Ricci form directly by the original unit-input curvature constant. |
| 28 | Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 29 | theorem auxiliaryCircle_ricci_quadratic_abs_le_of_unit_bound |
| 30 | (P : M62.CircleProductData F circumference) |
| 31 | (Q : M62.CircleProductData P.flow auxiliary) (hn : 1 ≤ n) |
| 32 | (t : ℝ) {K : ℝ} (hK : 0 ≤ K) (q : Q.charts.Point) |
| 33 | (hunit : ∀ v : Fin 4 → TangentSpace (𝓡 n) q.1.1, |
| 34 | (∀ i, (F.metric t).tangentNorm q.1.1 (v i) ≤ 1) → |
| 35 | |(F.connection t).curvatureTensor q.1.1 (v 0) (v 1) (v 2) (v 3)| ≤ K) |
| 36 | (v : TangentSpace (𝓡 ((n + 1) + 1)) q) : |
| 37 | |(Q.flow.connection t).ricci q v v| ≤ |
| 38 | ((n : ℝ) - 1) * K * (Q.flow.metric t).inner q v v := by |
| 39 | have hbase := m64CircleProduct_ricci_quadratic_abs_le_of_unit_bound |
| 40 | P hn t hK q.1 hunit (Q.charts.split q v).1 |
| 41 | have hmetric : (P.flow.metric t).inner q.1 |
| 42 | (Q.charts.split q v).1 (Q.charts.split q v).1 ≤ |
| 43 | (Q.flow.metric t).inner q v v := by |
| 44 | rw [Q.metric_eq] |
| 45 | exact le_add_of_nonneg_right |
| 46 | ((Q.circle.metricOnPoints.toRiemannianMetric.toCore q.2).re_inner_nonneg _) |
| 47 | have hcoef : 0 ≤ ((n : ℝ) - 1) * K := by |
| 48 | have hn' : (1 : ℝ) ≤ n := by exact_mod_cast hn |
| 49 | exact mul_nonneg (sub_nonneg.mpr hn') hK |
| 50 | rw [M62.circleProduct_ricci (P.flow.metric t) (P.flow.connection t) |
| 51 | Q.circle Q.charts (Q.flow.metric t) (Q.flow.connection t) (Q.metric_eq t)] |
| 52 | exact hbase.trans (mul_le_mul_of_nonneg_left hmetric hcoef) |
| 53 | |
| 54 | omit [T2Space M] in |
| 55 | /-- Bound stabilized sectional curvature directly by the original ambient curvature |
| 56 | hypothesis. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 57 | theorem auxiliaryCircle_sectional_abs_le_of_ambient_bounds |
| 58 | (P : M62.CircleProductData F circumference) |
| 59 | (Q : M62.CircleProductData P.flow auxiliary) |
| 60 | {K0 K1 K2 : ℝ} (hK0 : 0 ≤ K0) |
| 61 | (hBounds : CurveEvolutionAmbientBounds F K0 K1 K2) |
| 62 | {t : ℝ} (ht : t ∈ Icc a b) (q : Q.charts.Point) |
| 63 | (u v : TangentSpace (𝓡 ((n + 1) + 1)) q) : |
| 64 | |(Q.flow.connection t).sectionalCurvature q u v| ≤ K0 := |
| 65 | m64Curvature_sectional_abs_le_of_unit_bound (Q.flow.connection t) q hK0 |
| 66 | ((Q.ambient_bounds (P.ambient_bounds hBounds)).riemann t ht q) u v |
| 67 | |
| 68 | end PoincareMT.M64 |