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.Blowup.Construction.ShortTime.Terminal.TerminalNullPlane |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Splitting.Rank |
| 3 | |
| 4 | /-! |
| 5 | # A terminal Ricci-null line on a finite connected slab |
| 6 | |
| 7 | A genuine terminal null sectional plane gives a nonzero Ricci-null |
| 8 | vector. A nonflat point bounds the nullity by one, and finite-slab |
| 9 | propagation makes it one everywhere. This supplies the local parallel-line |
| 10 | input in Morgan--Tian Claim 11.7, pp. 270-271, and Corollary 4.19, pp. 71-72. |
| 11 | It adapts the ancient Rank theorem using its generic static lemmas and |
| 12 | the actual finite flow; see finite-terminal-ricci-kernel.md. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M30 |
| 24 | |
| 25 | open RicciFlow.Splitting |
| 26 | |
| 27 | /-- A nonflat connected terminal slice with a null sectional plane has |
| 28 | Ricci nullity one everywhere, using only its actual finite backward flow |
| 29 | (Claim 11.7 and Corollary 4.19, pp. 270-271 and 71-72). -/ |
| 30 | theorem ricciNullity_eq_one_of_finite_terminal_null_plane |
| 31 | {M : Type u} [TopologicalSpace M] [T2Space M] [ConnectedSpace M] |
| 32 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 33 | {a b : ℝ} (hab : a < b) (hC : RicciFlowCurvatureTheory.{u}) |
| 34 | (F : RicciFlow 3 M (Icc a b)) |
| 35 | (hoperator : ∀ t ∈ Icc a b, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 36 | (hnonflat : ∃ p, (F.connection b).curvatureTensorNorm p ≠ 0) |
| 37 | (x : M) (v w : TangentSpace (𝓡 3) x) |
| 38 | (hv : (F.metric b).inner x v v = 1) |
| 39 | (hw : (F.metric b).inner x w w = 1) |
| 40 | (hvw : (F.metric b).inner x v w = 0) |
| 41 | (hzero : (F.connection b).curvatureTensor x v w v w = 0) : |
| 42 | ∀ y : M, ricciNullity (F.connection b) y = 1 := by |
| 43 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 44 | ⟨(F.metric b).toRiemannianMetric⟩ |
| 45 | let : FiniteDimensional ℝ (TangentSpace (𝓡 3) x) := by |
| 46 | unfold TangentSpace |
| 47 | infer_instance |
| 48 | have hvw' : inner ℝ v w = 0 := hvw |
| 49 | have hwv : inner ℝ w v = 0 := by rw [real_inner_comm, hvw'] |
| 50 | have hframe : Orthonormal ℝ (({1, 2} : Set (Fin 3)).domRestrict ![0, v, w]) := by |
| 51 | apply orthonormal_iff_ite.mpr |
| 52 | rintro ⟨i, hi⟩ ⟨j, hj⟩ |
| 53 | have hi' : i = 1 ∨ i = 2 := by |
| 54 | simpa only [Set.mem_insert_iff, Set.mem_singleton_iff] using hi |
| 55 | have hj' : j = 1 ∨ j = 2 := by |
| 56 | simpa only [Set.mem_insert_iff, Set.mem_singleton_iff] using hj |
| 57 | rcases hi' with rfl | rfl <;> rcases hj' with rfl | rfl |
| 58 | · change inner ℝ v v = 1 |
| 59 | exact hv |
| 60 | · simpa using hvw' |
| 61 | · simpa using hwv |
| 62 | · change inner ℝ w w = 1 |
| 63 | exact hw |
| 64 | obtain ⟨frame, hframe⟩ := hframe.exists_orthonormalBasis_extension_of_card_eq |
| 65 | (show Module.finrank ℝ (TangentSpace (𝓡 3) x) = Fintype.card (Fin 3) from |
| 66 | finrank_euclideanSpace_fin) |
| 67 | have hframe1 : frame 1 = v := by simpa using hframe 1 (by simp) |
| 68 | have hframe2 : frame 2 = w := by simpa using hframe 2 (by simp) |
| 69 | have hb : b ∈ Icc a b := ⟨hab.le, le_rfl⟩ |
| 70 | have hsec : ∀ t ∈ Icc a b, (F.connection t).NonnegativeSectionalCurvature := by |
| 71 | intro t ht y u z |
| 72 | exact (F.connection t).curvatureTensor_self_nonneg_of_nonnegative_curvatureOperator |
| 73 | y (hoperator t ht y) u z |
| 74 | have hD := hC.tensor_calculus 3 M (F.metric b) (F.connection b) |
| 75 | have hreaction := curvatureReaction_nonpos_on_finite_terminal_null_plane |
| 76 | hab hC F hoperator x v w hzero |
| 77 | obtain ⟨z, hz, hzn⟩ := |
| 78 | (F.connection b).exists_ricci_null_vector_of_null_frame_plane hD x (hsec b hb x) |
| 79 | frame (by simpa only [hframe1, hframe2] using hzero) |
| 80 | (by simpa only [hframe1, hframe2] using hreaction) |
| 81 | have hpos : 0 < ricciNullity (F.connection b) x := by |
| 82 | apply Module.finrank_pos_iff_exists_ne_zero.mpr |
| 83 | refine ⟨⟨z, (mem_ricciKernel _ _ _).mpr hzn⟩, ?_⟩ |
| 84 | intro heq |
| 85 | exact hz (congrArg Subtype.val heq) |
| 86 | obtain ⟨p, hp⟩ := hnonflat |
| 87 | have hupper := (F.connection b).ricciNullity_le_one_of_nonflat |
| 88 | hD p (hoperator b hb p) hp |
| 89 | have hxp := ricciNullity_eq_on_positive_slice hC hab F hsec |
| 90 | (show b ∈ Ioc a b from ⟨hab, le_rfl⟩) x p |
| 91 | intro y |
| 92 | have hxy := ricciNullity_eq_on_positive_slice hC hab F hsec |
| 93 | (show b ∈ Ioc a b from ⟨hab, le_rfl⟩) x y |
| 94 | omega |
| 95 | |
| 96 | end PoincareMT.M30 |