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.Tensor.HeatGradient |
| 2 | import PoincareLib.Geometry.Riemannian.Tensor.Laplacian.Linearity |
| 3 | |
| 4 | /-! # Additivity of the covariant tensor heat operator |
| 5 | |
| 6 | This supplies the addition step in Hamilton's M evolution, Chow et al., |
| 7 | Part II, Lemma 15.19, equations (15.47)-(15.55), pp. 274-276. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | set_option backward.isDefEq.respectTransparency false |
| 12 | |
| 13 | open scoped Manifold ContDiff Bundle BigOperators |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT.RicciFlow |
| 18 | |
| 19 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 20 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 21 | {J : Set ℝ} {k : ℕ} |
| 22 | |
| 23 | lemma tensorHeatOperator_add |
| 24 | (F : RicciFlow n M J) {S T : ℝ → CovariantTensorEvaluation n M k} {t : ℝ} |
| 25 | (hS : IsSmoothCovariantTensor (S t)) (hT : IsSmoothCovariantTensor (T t)) |
| 26 | (hDS : IsSmoothCovariantTensor ((F.connection t).covariantTensorDerivative (S t))) |
| 27 | (hDT : IsSmoothCovariantTensor ((F.connection t).covariantTensorDerivative (T t))) |
| 28 | (x : M) (v : Fin k → TangentSpace (𝓡 n) x) |
| 29 | (hdS : DifferentiableAt ℝ (fun s => S s x v) t) |
| 30 | (hdT : DifferentiableAt ℝ (fun s => T s x v) t) : |
| 31 | F.tensorHeatOperator (fun s y z => S s y z + T s y z) t x v = |
| 32 | F.tensorHeatOperator S t x v + F.tensorHeatOperator T t x v := by |
| 33 | unfold tensorHeatOperator |
| 34 | have hd := (hdS.hasDerivAt.add hdT.hasDerivAt).deriv |
| 35 | change deriv (fun s => S s x v + T s x v) t = |
| 36 | deriv (fun s => S s x v) t + deriv (fun s => T s x v) t at hd |
| 37 | rw [hd, (F.connection t).tensorLaplacian_add hS hT hDS hDT] |
| 38 | simp only [LeviCivitaData.ricciTensorAction, mul_add, Finset.sum_add_distrib] |
| 39 | ring |
| 40 | |
| 41 | end PoincareMT.RicciFlow |