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.Harnack.Noncompact.AncientVolume.ScalarRatio.Cone.NullPlane |
| 2 | import PoincareLib.Geometry.Riemannian.Tensor.MaximumPrinciple.SupportingLaplacian |
| 3 | import PoincareLib.Geometry.Riemannian.Tensor.MaximumPrinciple.Transport.Isometry |
| 4 | import PoincareLib.Geometry.Riemannian.Curvature.Reaction |
| 5 | import Mathlib.LinearAlgebra.SesquilinearForm.Basic |
| 6 | |
| 7 | /-! |
| 8 | # Diffusion and reaction at a null sectional plane |
| 9 | |
| 10 | Radial parallel fields turn a null sectional plane into a scalar local |
| 11 | minimum, so its rough curvature Laplacian is nonnegative. At a terminal |
| 12 | time of an ancient nonnegatively curved flow, the curvature reaction on |
| 13 | that plane is therefore nonpositive. |
| 14 | |
| 15 | This is the local analytic input to the null-curvature case in |
| 16 | Morgan--Tian, Claim 9.45, pp. 208--209. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | open Set Filter |
| 23 | open scoped Manifold ContDiff Bundle Topology BigOperators |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT.LeviCivitaData |
| 28 | |
| 29 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 31 | {g : RiemannianMetric n M} |
| 32 | |
| 33 | omit [T2Space M] in |
| 34 | /-- Polarization annihilates a nonnegative radial curvature form on |
| 35 | every vector in its null cone. -/ |
| 36 | theorem curvatureTensor_radial_eq_zero_of_null_plane |
| 37 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 38 | (x : M) (hsec : ∀ u z : TangentSpace (𝓡 n) x, |
| 39 | 0 ≤ D.curvatureTensor x u z u z) |
| 40 | {v w : TangentSpace (𝓡 n) x} |
| 41 | (hzero : D.curvatureTensor x v w v w = 0) |
| 42 | (z : TangentSpace (𝓡 n) x) : D.curvatureTensor x z w v w = 0 := by |
| 43 | let B : LinearMap.BilinForm ℝ (TangentSpace (𝓡 n) x) := |
| 44 | D.curvatureTensor_bilinear_first_third x w w |
| 45 | have hsym : LinearMap.IsSymm B := ⟨fun u z => (hD.2.2.2.1 x u w z w).2.1⟩ |
| 46 | have hk := (B.apply_apply_same_eq_zero_iff (fun u => hsec u w) hsym).mp hzero |
| 47 | have h := LinearMap.congr_fun (LinearMap.mem_ker.mp hk) z |
| 48 | change D.curvatureTensor x v w z w = 0 at h |
| 49 | rwa [(hD.2.2.2.1 x v w z w).2.1] at h |
| 50 | |
| 51 | omit [T2Space M] in |
| 52 | /-- The Ricci corrections vanish on a null sectional plane, so the |
| 53 | fixed-input and moving-input curvature reactions agree there. -/ |
| 54 | theorem curvatureReaction_null_plane_eq_curvatureB |
| 55 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 56 | (x : M) (hsec : ∀ u z : TangentSpace (𝓡 n) x, |
| 57 | 0 ≤ D.curvatureTensor x u z u z) |
| 58 | {v w : TangentSpace (𝓡 n) x} |
| 59 | (hzero : D.curvatureTensor x v w v w = 0) : |
| 60 | D.curvatureReaction x v w v w = |
| 61 | 2 * (D.curvatureB x v w v w - D.curvatureB x v w w v - |
| 62 | D.curvatureB x v w w v + D.curvatureB x v v w w) := by |
| 63 | have hswap : D.curvatureTensor x w v w v = 0 := by |
| 64 | rw [D.curvatureTensor_swap_first, D.curvatureTensor_swap_last, neg_neg, hzero] |
| 65 | have hfirst (z) := D.curvatureTensor_radial_eq_zero_of_null_plane hD x hsec hzero z |
| 66 | have hthird (z) : D.curvatureTensor x v w z w = 0 := by |
| 67 | rw [(hD.2.2.2.1 x v w z w).2.1, hfirst] |
| 68 | have hsecond (z) : D.curvatureTensor x v z v w = 0 := by |
| 69 | rw [D.curvatureTensor_swap_first, D.curvatureTensor_swap_last, neg_neg] |
| 70 | exact D.curvatureTensor_radial_eq_zero_of_null_plane hD x hsec hswap z |
| 71 | have hlast (z) : D.curvatureTensor x v w v z = 0 := by |
| 72 | rw [(hD.2.2.2.1 x v w v z).2.1, hsecond] |
| 73 | have h := D.movingInput_curvatureB_reaction hD x v w v w |
| 74 | simpa only [hfirst, hsecond, hthird, hlast, add_zero] using h |
| 75 | |
| 76 | /-- A null plane has nonnegative rough curvature Laplacian under |
| 77 | nonnegative sectional curvature. The radial test fields are constructed. -/ |
| 78 | theorem tensorLaplacian_nonneg_on_null_plane |
| 79 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 80 | (hsec : D.NonnegativeSectionalCurvature) |
| 81 | (x : M) (v w : TangentSpace (𝓡 n) x) |
| 82 | (hzero : D.curvatureTensor x v w v w = 0) : |
| 83 | 0 ≤ D.tensorLaplacian D.riemannEvaluation x ![v, w, v, w] := by |
| 84 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 85 | ⟨g.toRiemannianMetric⟩ |
| 86 | obtain ⟨r, Y, hr, -, hY, hinit, -, hfirst, hsecond, -⟩ := |
| 87 | D.exists_radialParallelIsometries_with_jets x |
| 88 | let U := LeviCivitaData.radialNeighborhood (n := n) x r |
| 89 | let V : (y : M) → TangentSpace (𝓡 n) y := |
| 90 | LeviCivitaData.fieldFromCenteredCoordinates x (Y v) |
| 91 | let W : (y : M) → TangentSpace (𝓡 n) y := |
| 92 | LeviCivitaData.fieldFromCenteredCoordinates x (Y w) |
| 93 | have hU : IsOpen U := LeviCivitaData.isOpen_radialNeighborhood x r |
| 94 | have hxU : x ∈ U := LeviCivitaData.mem_radialNeighborhood x hr |
| 95 | have hs (z : TangentSpace (𝓡 n) x) : |
| 96 | ContMDiffOn (𝓡 n) ((𝓡 n).prod (𝓡 n)) ∞ |
| 97 | (T% (LeviCivitaData.fieldFromCenteredCoordinates x (Y z))) U := by |
| 98 | intro y hy |
| 99 | exact (LeviCivitaData.contMDiffAt_fieldFromCenteredCoordinates x |
| 100 | (hY z).contDiffAt hy.1).contMDiffWithinAt |
| 101 | have hmax : IsLocalMax (fun y => ∑ _j : Fin 1, (-1 : ℝ) * |
| 102 | D.riemannEvaluation y (fun i => ![V, W, V, W] i y)) x := by |
| 103 | filter_upwards [] with y |
| 104 | simp only [Fin.sum_univ_one, neg_one_mul] |
| 105 | change -D.curvatureTensor y (V y) (W y) (V y) (W y) ≤ |
| 106 | -D.curvatureTensor x (V x) (W x) (V x) (W x) |
| 107 | rw [show V x = v from hinit v, show W x = w from hinit w, hzero, neg_zero] |
| 108 | exact neg_nonpos.mpr (hsec y _ _) |
| 109 | have h := D.sum_tensorLaplacian_nonpos_of_isLocalMax |
| 110 | (J := Fin 1) (k := 4) hD.1 (fun _ => (-1 : ℝ)) |
| 111 | (fun _ => ![V, W, V, W]) hU |
| 112 | (by intro j i; fin_cases i <;> exact hs _) hxU |
| 113 | (by intro j i a; fin_cases i <;> exact hfirst _ a) |
| 114 | (by intro j i a; fin_cases i <;> exact hsecond _ a) hmax |
| 115 | have htuple : (fun i => ![V, W, V, W] i x) = ![v, w, v, w] := by |
| 116 | ext i |
| 117 | fin_cases i <;> exact hinit _ |
| 118 | simpa only [Fin.sum_univ_one, htuple, neg_one_mul, neg_nonpos] using h |
| 119 | |
| 120 | end PoincareMT.LeviCivitaData |
| 121 | |
| 122 | namespace PoincareMT.RicciFlow |
| 123 | |
| 124 | /-- Diffusion cannot cancel a strictly positive reaction at a terminal |
| 125 | null plane of an ancient flow with nonnegative curvature operator. -/ |
| 126 | theorem curvatureReaction_nonpos_on_terminal_null_plane |
| 127 | {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] |
| 128 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 129 | (hC : RicciFlowCurvatureTheory.{u}) (F : RicciFlow n M (Iic 0)) |
| 130 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 131 | (x : M) (v w : TangentSpace (𝓡 n) x) |
| 132 | (hzero : (F.connection 0).curvatureTensor x v w v w = 0) : |
| 133 | (F.connection 0).curvatureReaction x v w v w ≤ 0 := by |
| 134 | have hlap := (F.connection 0).tensorLaplacian_nonneg_on_null_plane |
| 135 | (hC.tensor_calculus n M (F.metric 0) (F.connection 0)) |
| 136 | (fun y u z => (F.connection 0).curvatureTensor_self_nonneg_of_nonnegative_curvatureOperator |
| 137 | y (hoperator 0 le_rfl y) u z) x v w hzero |
| 138 | have hevol := F.curvatureEvolution_nonpos_on_terminal_null_plane hC hoperator x v w hzero |
| 139 | linarith |
| 140 | |
| 141 | end PoincareMT.RicciFlow |