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 | /-! # Time-dependent scalar multiples in tensor heat evolution -/ |
| 5 | |
| 6 | set_option autoImplicit false |
| 7 | set_option backward.isDefEq.respectTransparency false |
| 8 | |
| 9 | open scoped Manifold ContDiff Bundle Topology BigOperators |
| 10 | |
| 11 | universe u |
| 12 | |
| 13 | namespace PoincareMT.RicciFlow |
| 14 | |
| 15 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 16 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 17 | {J : Set ℝ} {k : ℕ} |
| 18 | |
| 19 | lemma tensorHeatOperator_time_mul |
| 20 | (F : RicciFlow n M J) {T : ℝ → CovariantTensorEvaluation n M k} |
| 21 | {f : ℝ → ℝ} {f' t : ℝ} (hf : HasDerivAt f f' t) |
| 22 | (hT : IsSmoothCovariantTensor (T t)) |
| 23 | (hDT : IsSmoothCovariantTensor ((F.connection t).covariantTensorDerivative (T t))) |
| 24 | (x : M) (v : Fin k → TangentSpace (𝓡 n) x) |
| 25 | (hd : DifferentiableAt ℝ (fun s => T s x v) t) : |
| 26 | F.tensorHeatOperator (fun s y z => f s * T s y z) t x v = |
| 27 | f t * F.tensorHeatOperator T t x v + f' * T t x v := by |
| 28 | have hact : (F.connection t).ricciTensorAction (fun y z => f t * T t y z) x v = |
| 29 | f t * (F.connection t).ricciTensorAction (T t) x v := by |
| 30 | simp only [LeviCivitaData.ricciTensorAction, Finset.mul_sum] |
| 31 | apply Finset.sum_congr rfl |
| 32 | intro i _ |
| 33 | apply Finset.sum_congr rfl |
| 34 | intro j _ |
| 35 | ring |
| 36 | unfold tensorHeatOperator |
| 37 | have hprod := (hf.mul hd.hasDerivAt).deriv |
| 38 | simp only [Pi.mul_def] at hprod |
| 39 | rw [hprod, hact, |
| 40 | (F.connection t).tensorLaplacian_const_mul hT hDT] |
| 41 | ring |
| 42 | |
| 43 | end PoincareMT.RicciFlow |