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.Soliton.ThreeDimensional.Splitting.NullPlane |
| 2 | |
| 3 | /-! |
| 4 | # Terminal null planes on finite closed slabs |
| 5 | |
| 6 | At the terminal time of a nonnegatively curved flow, a zero sectional |
| 7 | component has nonpositive backward-endpoint evolution. Its nonnegative |
| 8 | diffusion term then forces nonpositive reaction. These are the local |
| 9 | endpoint inputs to Morgan--Tian Claim 11.7, pp. 270-271, and Corollary 4.19, |
| 10 | pp. 71-72. The argument adapts the legal Horizon ancient null-plane lemmas |
| 11 | to the literal finite interval; see finite-terminal-null-plane.md. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M30 |
| 22 | |
| 23 | /-- A null plane at the terminal endpoint of a nontrivial finite slab has |
| 24 | nonpositive curvature evolution (Claim 11.7, pp. 270-271). This is the |
| 25 | finite version of RicciFlow.curvatureEvolution_nonpos_on_terminal_null_plane. -/ |
| 26 | theorem curvatureEvolution_nonpos_on_finite_terminal_null_plane |
| 27 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 29 | {a b : ℝ} (hab : a < b) (hC : RicciFlowCurvatureTheory.{u}) |
| 30 | (F : RicciFlow n M (Icc a b)) |
| 31 | (hoperator : ∀ t ∈ Icc a b, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 32 | (x : M) (v w : TangentSpace (𝓡 n) x) |
| 33 | (hzero : (F.connection b).curvatureTensor x v w v w = 0) : |
| 34 | (F.connection b).tensorLaplacian (F.connection b).riemannEvaluation x ![v, w, v, w] + |
| 35 | (F.connection b).curvatureReaction x v w v w ≤ 0 := by |
| 36 | have hb : b ∈ Icc a b := ⟨hab.le, le_rfl⟩ |
| 37 | have hmin : IsMinOn (fun t => (F.connection t).curvatureTensor x v w v w) |
| 38 | (Icc a b) b := by |
| 39 | intro t ht |
| 40 | change (F.connection b).curvatureTensor x v w v w ≤ _ |
| 41 | rw [hzero] |
| 42 | exact (F.connection t).curvatureTensor_self_nonneg_of_nonnegative_curvatureOperator |
| 43 | x (hoperator t ht x) v w |
| 44 | have hcone : a - b ∈ posTangentConeAt (Icc a b) b := |
| 45 | sub_mem_posTangentConeAt_of_segment_subset |
| 46 | ((convex_Icc a b).segment_subset hb ⟨le_rfl, hab.le⟩) |
| 47 | have h := hmin.localize.hasFDerivWithinAt_nonneg |
| 48 | (hC.curvature_evolution n M (Icc a b) F b hb x v w v w).hasFDerivWithinAt hcone |
| 49 | change 0 ≤ (a - b) * (_ + _) at h |
| 50 | nlinarith |
| 51 | |
| 52 | /-- Nonnegative diffusion forces nonpositive reaction at a finite terminal |
| 53 | null plane (Claim 11.7, pp. 270-271; Corollary 4.19, pp. 71-72). This uses |
| 54 | the existing static null-plane Laplacian theorem on the same connection. -/ |
| 55 | theorem curvatureReaction_nonpos_on_finite_terminal_null_plane |
| 56 | {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] |
| 57 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 58 | {a b : ℝ} (hab : a < b) (hC : RicciFlowCurvatureTheory.{u}) |
| 59 | (F : RicciFlow n M (Icc a b)) |
| 60 | (hoperator : ∀ t ∈ Icc a b, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 61 | (x : M) (v w : TangentSpace (𝓡 n) x) |
| 62 | (hzero : (F.connection b).curvatureTensor x v w v w = 0) : |
| 63 | (F.connection b).curvatureReaction x v w v w ≤ 0 := by |
| 64 | have hb : b ∈ Icc a b := ⟨hab.le, le_rfl⟩ |
| 65 | have hlap := (F.connection b).tensorLaplacian_nonneg_on_null_plane |
| 66 | (hC.tensor_calculus n M (F.metric b) (F.connection b)) |
| 67 | (fun y u z => (F.connection b).curvatureTensor_self_nonneg_of_nonnegative_curvatureOperator |
| 68 | y (hoperator b hb y) u z) x v w hzero |
| 69 | have hevol := curvatureEvolution_nonpos_on_finite_terminal_null_plane |
| 70 | hab hC F hoperator x v w hzero |
| 71 | linarith |
| 72 | |
| 73 | end PoincareMT.M30 |