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.ParallelSections.LocalParallelTransport |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Splitting.Global.CoverCoordinate |
| 3 | |
| 4 | /-! |
| 5 | # A prescribed parallel null section from a finite terminal flow |
| 6 | |
| 7 | An actual local isometry pulls a prescribed target unit Ricci-null vector |
| 8 | back to the terminal slice of the supplied finite flow. The existing |
| 9 | prescribed-section theorem extends that vector to a parallel null section, |
| 10 | which is transported back using the actual target connection. |
| 11 | |
| 12 | This is the local terminal step in Morgan--Tian Corollary 4.19, |
| 13 | pp. 71-73, and Claim 11.7, pp. 270-271. The strict finite slab and its |
| 14 | terminal nullity remain inputs; no common interval across spatial |
| 15 | domains, completeness, or target flow is assumed. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set Manifold PoincareMT.RicciFlow.Splitting |
| 22 | open scoped Manifold ContDiff Bundle |
| 23 | |
| 24 | universe u v |
| 25 | |
| 26 | namespace PoincareMT.M30 |
| 27 | |
| 28 | /-- A finite terminal flow produces the prescribed target unit parallel |
| 29 | full-Ricci-null section through an actual local isometry (Corollary 4.19 |
| 30 | and Claim 11.7, pp. 71-73 and 270-271). -/ |
| 31 | theorem exists_prescribed_parallel_null_section_of_finite_terminal_local_isometry |
| 32 | {n : ℕ} {N : Type u} {M : Type v} |
| 33 | [TopologicalSpace N] [TopologicalSpace M] |
| 34 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) N] |
| 35 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 36 | [IsManifold (𝓡 n) ∞ N] [IsManifold (𝓡 n) ∞ M] |
| 37 | (hC : RicciFlowCurvatureTheory.{u}) {a b : ℝ} (hab : a < b) |
| 38 | (F : RicciFlow n N (Icc a b)) |
| 39 | (hsec : ∀ t ∈ Icc a b, (F.connection t).NonnegativeSectionalCurvature) |
| 40 | (hdim : ∀ y : N, ricciNullity (F.connection b) y = 1) |
| 41 | {gM : RiemannianMetric n M} (DM : LeviCivitaData gM) |
| 42 | {f : N → M} (hf : IsLocalDiffeomorph (𝓡 n) (𝓡 n) ∞ f) |
| 43 | (hmetric : ∀ y : N, ∀ v1 v2 : TangentSpace (𝓡 n) y, |
| 44 | (F.metric b).inner y v1 v2 = gM.inner (f y) |
| 45 | (mfderiv (𝓡 n) (𝓡 n) f y v1) (mfderiv (𝓡 n) (𝓡 n) f y v2)) |
| 46 | (x : N) (v : TangentSpace (𝓡 n) (f x)) |
| 47 | (hunit : gM.inner (f x) v v = 1) |
| 48 | (hnull : ∀ w : TangentSpace (𝓡 n) (f x), DM.ricci (f x) v w = 0) : |
| 49 | ∃ (W : Set M) (Z : (y : M) → TangentSpace (𝓡 n) y), |
| 50 | IsOpen W ∧ f x ∈ W ∧ |
| 51 | ContMDiffOn (𝓡 n) ((𝓡 n).prod (𝓡 n)) ∞ (T% Z) W ∧ Z (f x) = v ∧ |
| 52 | ∀ y ∈ W, gM.inner y (Z y) (Z y) = 1 ∧ |
| 53 | (∀ w : TangentSpace (𝓡 n) y, DM.ricci y (Z y) w = 0) ∧ |
| 54 | ∀ w : TangentSpace (𝓡 n) y, DM.connection Z y w = 0 := by |
| 55 | let L := mfderiv (𝓡 n) (𝓡 n) f x |
| 56 | have hL : L.IsInvertible := |
| 57 | ⟨(hf x).mfderivToContinuousLinearEquiv (by simp), rfl⟩ |
| 58 | let vN := L.inverse v |
| 59 | have hvN : L vN = v := hL.self_apply_inverse v |
| 60 | have hunitN : (F.metric b).inner x vN vN = 1 := by |
| 61 | calc |
| 62 | (F.metric b).inner x vN vN = gM.inner (f x) (L vN) (L vN) := hmetric x vN vN |
| 63 | _ = 1 := by rw [hvN]; exact hunit |
| 64 | have hnullN : ∀ w : TangentSpace (𝓡 n) x, (F.connection b).ricci x vN w = 0 := by |
| 65 | intro w |
| 66 | calc |
| 67 | (F.connection b).ricci x vN w = DM.ricci (f x) (L vN) (L w) := |
| 68 | (F.connection b).ricci_eq_of_local_isometry DM isOpen_univ hf.contMDiff.contMDiffOn |
| 69 | (fun y _ v1 v2 => hmetric y v1 v2) (mem_univ x) vN w |
| 70 | _ = 0 := by rw [hvN]; exact hnull _ |
| 71 | let pN : UnitRicciKernel (F.connection b) := ⟨⟨x, vN⟩, hunitN, hnullN⟩ |
| 72 | obtain ⟨U, V, hU, hx, hV, hVx, hn⟩ := |
| 73 | exists_local_parallel_unit_ricci_null_section_through hC hab F hsec hdim pN |
| 74 | obtain ⟨W, Z, hW, hfx, hZ, hZfx, hgeometry⟩ := |
| 75 | exists_local_parallel_unit_null_section_of_local_isometry |
| 76 | (F.connection b) DM hf hmetric hU hx V hV hn |
| 77 | refine ⟨W, Z, hW, hfx, hZ, ?_, hgeometry⟩ |
| 78 | exact hZfx.trans ((congrArg L hVx).trans hvN) |
| 79 | |
| 80 | end PoincareMT.M30 |