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.LocalContact |
| 2 | import PoincareLib.Geometry.RicciFlow.Pinching.GeometricPreservation.TensorConnection |
| 3 | |
| 4 | /-! |
| 5 | # Spatial contacts in the initial tensor metric |
| 6 | |
| 7 | Isometric Ricci transport preserves the Hamilton--Ivey carrier, its supporting |
| 8 | normals, and distance to it. The slice contact estimate therefore gives the |
| 9 | rough-Laplacian sign on the fixed initial tensor bundle. |
| 10 | |
| 11 | Reference: Morgan--Tian, Claim 4.2, p. 64; Theorem 4.8, p. 66. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Bundle |
| 20 | open scoped Manifold ContDiff Topology InnerProductSpace |
| 21 | open Poincare.HamiltonIvey |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.LeviCivitaData |
| 26 | |
| 27 | variable {M : Type u} [TopologicalSpace M] [T2Space M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 29 | {g : RiemannianMetric 3 M} |
| 30 | |
| 31 | private instance tangentFiniteDimensional_transportContact (x : M) : |
| 32 | FiniteDimensional ℝ (TangentSpace (𝓡 3) x) := by |
| 33 | unfold TangentSpace |
| 34 | infer_instance |
| 35 | |
| 36 | omit [T2Space M] in |
| 37 | private theorem finrank_tangent_contact (x : M) : |
| 38 | Module.finrank ℝ (TangentSpace (𝓡 3) x) = 3 := by |
| 39 | change Module.finrank ℝ (EuclideanSpace ℝ (Fin 3)) = 3 |
| 40 | simp |
| 41 | |
| 42 | /-- The slice contact estimate is unchanged after a fiberwise isometric |
| 43 | pullback. No spatial regularity of the isometries is needed for this transfer. -/ |
| 44 | theorem tensorLaplacian_pullback_nonpos_at_pinching_contact |
| 45 | {E : M → Type*} [∀ x, NormedAddCommGroup (E x)] |
| 46 | [∀ x, InnerProductSpace ℝ (E x)] [∀ x, FiniteDimensional ℝ (E x)] |
| 47 | (hn : ∀ x, Module.finrank ℝ (E x) = 3) |
| 48 | (D : LeviCivitaData g) |
| 49 | (e : ∀ x, E x ≃ₗ[ℝ] TangentSpace (𝓡 3) x) |
| 50 | (he : ∀ x v w, g.inner x (e x v) (e x w) = inner ℝ v w) |
| 51 | (T : (x : M) → TensorFiber (TangentSpace (𝓡 3) x) 2) |
| 52 | (hT : IsSmoothCovariantTensor (fun x v => T x v)) |
| 53 | (p : M) {s : ℝ} (hs : 0 ≤ s) |
| 54 | (q : TensorFiber (E p) 2 × TensorFiber (E p) 2) |
| 55 | (hq : q ∈ Poincare.Parabolic.unitSupportSet (tensorRegion (hn p) s)) |
| 56 | (hactive : ⟪q.2, TensorFiber.toMultilinear.symm |
| 57 | ((TensorFiber.toMultilinear (T p)).compLinearMap (fun _ => (e p).toLinearMap)) - |
| 58 | q.1⟫_ℝ = Metric.infDist |
| 59 | (TensorFiber.toMultilinear.symm |
| 60 | ((TensorFiber.toMultilinear (T p)).compLinearMap (fun _ => (e p).toLinearMap))) |
| 61 | (tensorRegion (hn p) s)) |
| 62 | (hmax : IsLocalMax (fun x => Metric.infDist |
| 63 | (TensorFiber.toMultilinear.symm |
| 64 | ((TensorFiber.toMultilinear (T x)).compLinearMap (fun _ => (e x).toLinearMap))) |
| 65 | (tensorRegion (hn x) s)) p) : |
| 66 | ⟪q.2, TensorFiber.toMultilinear.symm |
| 67 | ((TensorFiber.toMultilinear (D.tensorLaplacianFiber hT p)).compLinearMap |
| 68 | (fun _ => (e p).toLinearMap))⟫_ℝ ≤ 0 := by |
| 69 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 70 | ⟨g.toRiemannianMetric⟩ |
| 71 | let L (x : M) : E x ≃ₗᵢ[ℝ] TangentSpace (𝓡 3) x := (e x).isometryOfInner (he x) |
| 72 | let P (x : M) := TensorFiber.transport (L x) 2 |
| 73 | have hpull (x : M) : (P x).symm (T x) = |
| 74 | TensorFiber.toMultilinear.symm |
| 75 | ((TensorFiber.toMultilinear (T x)).compLinearMap (fun _ => (e x).toLinearMap)) := by |
| 76 | apply TensorFiber.ext |
| 77 | intro v |
| 78 | change T x (fun i => L x (v i)) = T x (fun i => e x (v i)) |
| 79 | congr 1 |
| 80 | have hmap (x : M) : P x '' tensorRegion (hn x) s = |
| 81 | tensorRegion (finrank_tangent_contact x) s := |
| 82 | tensorRegion_transport_image (hn x) (finrank_tangent_contact x) (L x) hs |
| 83 | have hdist (x : M) : Metric.infDist (T x) (tensorRegion (finrank_tangent_contact x) s) = |
| 84 | Metric.infDist ((P x).symm (T x)) (tensorRegion (hn x) s) := |
| 85 | Poincare.Parabolic.infDist_pullback_carrier (P x) (hmap x) (T x) |
| 86 | have hq' := Poincare.Parabolic.unitSupport_map (P p) hq |
| 87 | rw [hmap] at hq' |
| 88 | have hactive' : ⟪P p q.2, T p - P p q.1⟫_ℝ = |
| 89 | Metric.infDist (T p) (tensorRegion (finrank_tangent_contact p) s) := by |
| 90 | rw [Poincare.Parabolic.support_eval_pullback, hdist] |
| 91 | exact hactive |
| 92 | have hmax' : IsLocalMax |
| 93 | (fun x => Metric.infDist (T x) (tensorRegion (finrank_tangent_contact x) s)) p := by |
| 94 | rw [show (fun x => Metric.infDist |
| 95 | (TensorFiber.toMultilinear.symm |
| 96 | ((TensorFiber.toMultilinear (T x)).compLinearMap (fun _ => (e x).toLinearMap))) |
| 97 | (tensorRegion (hn x) s)) = |
| 98 | (fun x => Metric.infDist ((P x).symm (T x)) (tensorRegion (hn x) s)) by |
| 99 | funext x; rw [hpull]] at hmax |
| 100 | simpa only [hdist] using hmax |
| 101 | have h := D.tensorLaplacian_nonpos_at_pinching_contact p hs T hT |
| 102 | (P p q.1, P p q.2) hq' hactive' hmax' |
| 103 | have hinner := (P p).inner_map_map q.2 ((P p).symm (D.tensorLaplacianFiber hT p)) |
| 104 | rw [(P p).apply_symm_apply] at hinner |
| 105 | rw [hinner] at h |
| 106 | exact h |
| 107 | |
| 108 | end PoincareMT.LeviCivitaData |