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.TensorRegion |
| 2 | import PoincareLib.Geometry.Riemannian.Tensor.MaximumPrinciple.CarrierContact |
| 3 | |
| 4 | /-! |
| 5 | # Hamilton--Ivey carrier contacts |
| 6 | |
| 7 | The original carrier is preserved by radial tangent transport between distinct |
| 8 | fibers. The geometric contact theorem therefore gives the supporting |
| 9 | rough-Laplacian sign with no additional transport or contact-jet assumptions. |
| 10 | |
| 11 | Reference: Morgan--Tian, Claim 4.2, p. 64; Theorem 4.8, p. 66; |
| 12 | Claim 4.28, pp. 77--78. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open scoped Manifold ContDiff Bundle InnerProductSpace |
| 19 | open Poincare.HamiltonIvey |
| 20 | |
| 21 | namespace PoincareMT.LeviCivitaData |
| 22 | |
| 23 | variable {M : Type*} [TopologicalSpace M] [T2Space M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 25 | {g : RiemannianMetric 3 M} |
| 26 | |
| 27 | local instance (x : M) : FiniteDimensional ℝ (TangentSpace (𝓡 3) x) := by |
| 28 | unfold TangentSpace |
| 29 | infer_instance |
| 30 | |
| 31 | omit [T2Space M] in |
| 32 | private theorem finrank_tangent (x : M) : Module.finrank ℝ (TangentSpace (𝓡 3) x) = 3 := by |
| 33 | rw [VectorBundle.finrank_eq ℝ (EuclideanSpace ℝ (Fin 3)), finrank_euclideanSpace] |
| 34 | simp |
| 35 | |
| 36 | /- At a local maximum of distance to the Hamilton--Ivey carrier, every |
| 37 | active unit support has nonpositive pairing with the retained rough Laplacian. -/ |
| 38 | theorem tensorLaplacian_nonpos_at_pinching_contact |
| 39 | (D : LeviCivitaData g) (p : M) {t : ℝ} (ht : 0 ≤ t) : |
| 40 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 41 | ⟨g.toRiemannianMetric⟩ |
| 42 | ∀ (T : (x : M) → TensorFiber (TangentSpace (𝓡 3) x) 2) |
| 43 | (hT : IsSmoothCovariantTensor (fun x v => T x v)) |
| 44 | (q : TensorFiber (TangentSpace (𝓡 3) p) 2 × |
| 45 | TensorFiber (TangentSpace (𝓡 3) p) 2), |
| 46 | q ∈ Poincare.Parabolic.unitSupportSet (tensorRegion (finrank_tangent p) t) → |
| 47 | ⟪q.2, T p - q.1⟫_ℝ = Metric.infDist (T p) (tensorRegion (finrank_tangent p) t) → |
| 48 | IsLocalMax (fun x => Metric.infDist (T x) (tensorRegion (finrank_tangent x) t)) p → |
| 49 | ⟪q.2, D.tensorLaplacianFiber hT p⟫_ℝ ≤ 0 := by |
| 50 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 51 | ⟨g.toRiemannianMetric⟩ |
| 52 | intro T hT q hq hactive hmax |
| 53 | obtain ⟨r, Y, hr, hrU, hY, hinit, hpar, P, hP, hcontact⟩ := |
| 54 | D.exists_radialCarrierContact p |
| 55 | exact hcontact 2 T (fun x => tensorRegion (finrank_tangent x) t) |
| 56 | hT (tensorRegion_nonempty _ ht) (isClosed_tensorRegion _ ht) |
| 57 | (convex_tensorRegion _ ht) |
| 58 | (fun x => tensorRegion_transport_image _ _ (P x) ht) q hq hactive hmax |
| 59 | |
| 60 | end PoincareMT.LeviCivitaData |