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.Pinching.GeometricPreservation.TimeEvolution |
| 2 | import PoincareLib.Geometry.RicciFlow.Pinching.GeometricPreservation.TransportedContact |
| 3 | import PoincareLib.Geometry.Riemannian.Tensor.Laplacian.Linearity |
| 4 | |
| 5 | /-! |
| 6 | # Contact diffusion for the scaled transported curvature |
| 7 | |
| 8 | Constant spatial scaling commutes with the rough Laplacian. The geometric |
| 9 | contact estimate therefore applies to the absolute-time scaled tensor in the |
| 10 | initial metric. |
| 11 | |
| 12 | Reference: Morgan--Tian, Theorem 4.8, p. 66; Claim 4.28, pp. 77--78. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set Bundle |
| 21 | open scoped Manifold ContDiff Topology InnerProductSpace |
| 22 | open Poincare.HamiltonIvey |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.RicciFlow.Frame |
| 27 | |
| 28 | variable {M : Type u} [TopologicalSpace M] [T2Space M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 30 | {a b : ℝ} |
| 31 | |
| 32 | local instance (x : M) : FiniteDimensional ℝ (TangentSpace (𝓡 3) x) := by |
| 33 | unfold TangentSpace |
| 34 | infer_instance |
| 35 | |
| 36 | theorem scaled_transportedRicciComplementLaplacian_nonpos_at_contact |
| 37 | (F : RicciFlow 3 M (Ico a b)) (hC : RicciFlowCurvatureTheory.{u}) |
| 38 | (hab : a < b) {t : ℝ} (ht : t ∈ Ico a b) |
| 39 | (hn : ∀ x : M, Module.finrank ℝ (TangentSpace (𝓡 3) x) = 3) (p : M) : |
| 40 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 41 | ⟨(F.metric a).toRiemannianMetric⟩ |
| 42 | ∀ q ∈ Poincare.Parabolic.unitSupportSet (tensorRegion (hn p) 0), |
| 43 | ⟪q.2, (1 + t) • transportedRicciComplementTensor F hC t p - q.1⟫_ℝ = |
| 44 | Metric.infDist ((1 + t) • transportedRicciComplementTensor F hC t p) |
| 45 | (tensorRegion (hn p) 0) → |
| 46 | IsLocalMax (fun x => Metric.infDist |
| 47 | ((1 + t) • transportedRicciComplementTensor F hC t x) |
| 48 | (tensorRegion (hn x) 0)) p → |
| 49 | ⟪q.2, (1 + t) • transportedRicciComplementLaplacian F hC t p⟫_ℝ ≤ 0 := by |
| 50 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 51 | ⟨(F.metric a).toRiemannianMetric⟩ |
| 52 | intro q hq hactive hmax |
| 53 | let D := F.connection t |
| 54 | let T (x : M) := (1 + t) • D.ricciComplementTensor |
| 55 | (hC.tensor_calculus 3 M (F.metric t) D) x |
| 56 | have hR := D.isSmoothCovariantTensor_ricciComplementEvaluation |
| 57 | (hC.tensor_calculus 3 M (F.metric t) D) |
| 58 | have hT : IsSmoothCovariantTensor (fun x v => T x v) := by |
| 59 | simpa only [T, TensorFiber.smul_apply, smul_eq_mul, |
| 60 | LeviCivitaData.ricciComplementTensor_apply] using hR.const_mul (1 + t) |
| 61 | let e (x : M) := (orthonormalTransport F t x).toLinearEquiv |
| 62 | have hpull (x : M) : TensorFiber.toMultilinear.symm |
| 63 | ((TensorFiber.toMultilinear (T x)).compLinearMap (fun _ => (e x).toLinearMap)) = |
| 64 | (1 + t) • transportedRicciComplementTensor F hC t x := by |
| 65 | apply TensorFiber.ext |
| 66 | intro v |
| 67 | rfl |
| 68 | have hlap : TensorFiber.toMultilinear.symm |
| 69 | ((TensorFiber.toMultilinear (D.tensorLaplacianFiber hT p)).compLinearMap |
| 70 | (fun _ => (e p).toLinearMap)) = |
| 71 | (1 + t) • transportedRicciComplementLaplacian F hC t p := by |
| 72 | apply TensorFiber.ext |
| 73 | intro v |
| 74 | simp only [LinearEquiv.apply_symm_apply, MultilinearMap.compLinearMap_apply, |
| 75 | LeviCivitaData.tensorLaplacianFiber_apply, TensorFiber.smul_apply, |
| 76 | smul_eq_mul, transportedRicciComplementLaplacian_apply] |
| 77 | simp only [T, TensorFiber.smul_apply, smul_eq_mul, |
| 78 | LeviCivitaData.ricciComplementTensor_apply] |
| 79 | rw [D.tensorLaplacian_const_mul hR (D.covariantTensorDerivative_isSmooth hR)] |
| 80 | rw [← orthonormalTransport_toContinuousLinearMap F t p] |
| 81 | rfl |
| 82 | have h := D.tensorLaplacian_pullback_nonpos_at_pinching_contact hn e |
| 83 | (canonicalTransport_pairing F hab ht) T hT p (s := 0) (by norm_num) q hq |
| 84 | (by simpa only [hpull] using hactive) (by simpa only [hpull] using hmax) |
| 85 | rwa [hlap] at h |
| 86 | |
| 87 | end PoincareMT.RicciFlow.Frame |