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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.Riemannian.Curvature.Scalar.Trace |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Singular.Geometry |
| 4 | |
| 5 | /-! |
| 6 | # The curvature-one scalar of an arbitrary round model |
| 7 | |
| 8 | Every compact curvature-one model in the frozen round-component |
| 9 | certificate has actual scalar curvature six. This is the model-side |
| 10 | calculation needed before transferring the metric comparison to a |
| 11 | uniform scalar ratio in Morgan--Tian section 10.3.1, p. 247. |
| 12 | The transfer from the finite jet comparison to the displayed flow metric |
| 13 | is a separate quantitative producer. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle BigOperators |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | /-- The scalar trace of any frozen curvature-one three-dimensional model |
| 27 | is exactly six, including arbitrary compact space-form models (Definition |
| 28 | 9.76; section 10.3.1, p. 247). -/ |
| 29 | theorem SingularRoundComponent.model_scalar_eq_six |
| 30 | {M : Type u} [TopologicalSpace M] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 32 | [IsManifold (𝓡 3) ∞ M] |
| 33 | {g : RiemannianMetric 3 M} {epsilon : ℝ} |
| 34 | (N : SingularRoundComponent g epsilon) |
| 35 | (x : N.model.carrier) : |
| 36 | N.model_connection.scalarCurvature x = 6 := by |
| 37 | let : Bundle.RiemannianBundle |
| 38 | (TangentSpace (𝓡 3) : N.model.carrier → Type _) := |
| 39 | ⟨N.model_metric.toRiemannianMetric⟩ |
| 40 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 3) x) = 3 := by |
| 41 | rw [VectorBundle.finrank_eq ℝ (EuclideanSpace ℝ (Fin 3)), finrank_euclideanSpace] |
| 42 | simp |
| 43 | let b := (N.model_metric.orthonormalBasis x).reindex (finCongr hdim) |
| 44 | have hb (i j : Fin 3) : N.model_metric.inner x (b i) (b j) = |
| 45 | if i = j then 1 else 0 := by |
| 46 | change inner ℝ (b i) (b j) = _ |
| 47 | exact b.inner_eq_ite i j |
| 48 | have hdiag (i : Fin 3) : |
| 49 | N.model_connection.curvatureTensor x (b i) (b i) (b i) (b i) = 0 := by |
| 50 | have h := N.model_connection.curvatureTensor_swap_first x (b i) (b i) (b i) (b i) |
| 51 | linarith |
| 52 | have hterm (i j : Fin 3) : |
| 53 | (if i = j then 0 else 1) = |
| 54 | N.model_connection.curvatureTensor x (b i) (b j) (b i) (b j) := by |
| 55 | by_cases hij : i = j |
| 56 | · subst j |
| 57 | simp only [ite_true, hdiag] |
| 58 | · have hp : LeviCivitaData.IsOrthonormalPair N.model_metric x (b i) (b j) := |
| 59 | ⟨by simp only [hb, ite_true], by simp only [hb, ite_true], |
| 60 | by simp only [hb, hij, ite_false]⟩ |
| 61 | have h := N.model_curvature_one x (b i) (b j) hp |
| 62 | simpa only [LeviCivitaData.sectionalCurvature, hb, hij, ite_false, |
| 63 | ite_true, mul_one, zero_pow (by decide : 2 ≠ 0), sub_zero, div_one] using h.symm |
| 64 | calc |
| 65 | N.model_connection.scalarCurvature x = |
| 66 | ∑ i : Fin 3, ∑ j : Fin 3, |
| 67 | N.model_connection.curvatureTensor x (b i) (b j) (b i) (b j) := |
| 68 | N.model_connection.scalarCurvature_eq_sum_orthonormalBasis x b |
| 69 | _ = ∑ i : Fin 3, ∑ j : Fin 3, if i = j then 0 else 1 := by |
| 70 | apply Finset.sum_congr rfl |
| 71 | intro i _ |
| 72 | apply Finset.sum_congr rfl |
| 73 | intro j _ |
| 74 | exact (hterm i j).symm |
| 75 | _ = 6 := by |
| 76 | simp [Fin.sum_univ_succ] |
| 77 | norm_num |
| 78 | |
| 79 | end PoincareMT |