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.StaticLimit.StaticNullCover |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.ShortTime.Nullity.NullCoverFlow |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.ShortTime.LiftedNeckSphere |
| 4 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.ShortTime.CompactFlowoutBound |
| 5 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.CurvatureDefect.CurvatureNorm |
| 6 | import Mathlib.Algebra.Order.Archimedean.Real.Basic |
| 7 | |
| 8 | /-! |
| 9 | # A static null-neck curvature bound |
| 10 | |
| 11 | Prescribed local parallel sections of a one-dimensional Ricci kernel |
| 12 | produce the actual two-sheeted unit-null cover and its all-time isometric |
| 13 | flow. A sufficiently accurate neck supplies a compact transverse sphere. |
| 14 | The complete projected flowout bounds scalar curvature on the original |
| 15 | manifold, and nonnegative sectional curvature gives the actual full |
| 16 | curvature bound through the retained factor-13 estimate. |
| 17 | |
| 18 | This assembles the static null branch of Morgan--Tian Claim 11.7, |
| 19 | pp. 270-271. The exact statement and retained objects were independently |
| 20 | reviewed in the null-neck-curvature-bound derivation. No common Ricci-flow |
| 21 | interval, covering witness, or global curvature bound is assumed. |
| 22 | -/ |
| 23 | |
| 24 | set_option autoImplicit false |
| 25 | set_option backward.isDefEq.respectTransparency false |
| 26 | |
| 27 | open Set PoincareMT.RicciFlow.Splitting |
| 28 | open scoped Manifold ContDiff Bundle |
| 29 | |
| 30 | universe u |
| 31 | |
| 32 | namespace PoincareMT.M30 |
| 33 | |
| 34 | /-- A sufficiently small actual neck and prescribed local parallel null |
| 35 | sections give scalar and full-curvature bounds on the original complete |
| 36 | three-manifold (Claim 11.7, pp. 270-271). -/ |
| 37 | theorem exists_neck_scalar_and_curvature_bound_of_local_parallel_null_sections : |
| 38 | ∃ epsilon0 : ℝ, 0 < epsilon0 ∧ epsilon0 ≤ 1 / 200 ∧ |
| 39 | ∀ {M : Type u} [TopologicalSpace M] |
| 40 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 41 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 42 | [T3Space M] [PreconnectedSpace M] {g : RiemannianMetric 3 M}, |
| 43 | ∀ (D : LeviCivitaData g), D.CurvatureTensorCalculus → |
| 44 | MetricComplete g → D.NonnegativeSectionalCurvature → |
| 45 | (∀ x : M, ricciNullity D x = 1) → |
| 46 | (∀ p : UnitRicciKernel D, |
| 47 | ∃ (U : Set M) (V : (y : M) → TangentSpace (𝓡 3) y), |
| 48 | IsOpen U ∧ p.1.proj ∈ U ∧ |
| 49 | ContMDiffOn (𝓡 3) ((𝓡 3).prod (𝓡 3)) ∞ (T% V) U ∧ |
| 50 | V p.1.proj = p.1.snd ∧ |
| 51 | ∀ y ∈ U, g.inner y (V y) (V y) = 1 ∧ |
| 52 | (∀ w : TangentSpace (𝓡 3) y, D.ricci y (V y) w = 0) ∧ |
| 53 | ∀ w : TangentSpace (𝓡 3) y, D.connection V y w = 0) → |
| 54 | ∀ N : EpsilonNeck g, N.epsilon ≤ epsilon0 → |
| 55 | ∃ B : ℝ, 0 < B ∧ (∀ x : M, |D.scalarCurvature x| ≤ B) ∧ |
| 56 | ∀ x : M, |D.curvatureTensorNorm x| ≤ 13 * B := by |
| 57 | classical |
| 58 | obtain ⟨epsilon0, hepsilon0, hsmall, hlift⟩ := |
| 59 | exists_neck_lifted_sphere_transverse_unitRicciKernelField.{u} |
| 60 | refine ⟨epsilon0, hepsilon0, hsmall, ?_⟩ |
| 61 | intro M _ _ _ _ _ _ _ g D hD hcomplete hsec hdim hlocal N hN |
| 62 | let : T25Space M := T3Space.t25Space |
| 63 | let : T2Space M := T25Space.t2Space |
| 64 | have hsections (x : M) : |
| 65 | ∃ (U : Set M) (V : (y : M) → TangentSpace (𝓡 3) y), |
| 66 | IsOpen U ∧ x ∈ U ∧ |
| 67 | ContMDiffOn (𝓡 3) ((𝓡 3).prod (𝓡 3)) ∞ (T% V) U ∧ |
| 68 | ∀ y ∈ U, g.inner y (V y) (V y) = 1 ∧ |
| 69 | ∀ w : TangentSpace (𝓡 3) y, D.ricci y (V y) w = 0 := by |
| 70 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 71 | ⟨g.toRiemannianMetric⟩ |
| 72 | let : FiniteDimensional ℝ (TangentSpace (𝓡 3) x) := by |
| 73 | unfold TangentSpace |
| 74 | infer_instance |
| 75 | obtain ⟨z, hz⟩ := Module.finrank_pos_iff_exists_ne_zero.mp |
| 76 | (show 0 < ricciNullity D x by rw [hdim]; norm_num) |
| 77 | have hz' : (z : TangentSpace (𝓡 3) x) ≠ 0 := fun he => hz (Subtype.ext he) |
| 78 | let q := g.inner x z z |
| 79 | have hq : 0 < q := g.pos x z hz' |
| 80 | let v : TangentSpace (𝓡 3) x := (Real.sqrt q)⁻¹ • (z : TangentSpace (𝓡 3) x) |
| 81 | have hv : ∀ w, D.ricci x v w = 0 := |
| 82 | (mem_ricciKernel _ _ _).mp ((ricciKernel D x).smul_mem _ z.property) |
| 83 | have hu : g.inner x v v = 1 := by |
| 84 | simp only [v, map_smul, smul_apply, smul_eq_mul] |
| 85 | change (Real.sqrt q)⁻¹ * ((Real.sqrt q)⁻¹ * q) = 1 |
| 86 | field_simp [(Real.sqrt_pos.mpr hq).ne'] |
| 87 | exact (Real.sq_sqrt hq.le).symm |
| 88 | let p : UnitRicciKernel D := ⟨⟨x, v⟩, hu, hv⟩ |
| 89 | obtain ⟨U, V, hU, hx, hV, _, hn⟩ := hlocal p |
| 90 | exact ⟨U, V, hU, hx, hV, fun y hy => ⟨(hn y hy).1, (hn y hy).2.1⟩⟩ |
| 91 | obtain ⟨hc, hcard⟩ := unitRicciKernel_doubleCover_of_local_unit_sections g D hdim hsections |
| 92 | let := unitRicciKernelChartedSpace D hc |
| 93 | let := unitRicciKernelIsManifold D hc |
| 94 | let gQ := unitRicciKernelMetric D hc |
| 95 | let X := unitRicciKernelField D hc |
| 96 | obtain ⟨Phi, hs, hcurve, h0, hact, hmetric⟩ := |
| 97 | exists_unitRicciKernel_isometric_globalFlow_of_local_parallel_sections |
| 98 | D hc hcard hcomplete hdim hlocal |
| 99 | obtain ⟨j, hj, _, hj_inj, htrans⟩ := hlift N D hN hc hcard |
| 100 | let : Nonempty UnitTwoSphere := ⟨(N.coordinate_inverse N.center).1⟩ |
| 101 | have hpi := unitRicciKernelProjection_isLocalDiffeomorph D hc |
| 102 | obtain ⟨B, hB, hR⟩ := scalar_bounded_of_compact_transverse_isometric_flowout |
| 103 | (n := 2) gQ g D hcomplete (unitRicciKernelProjection D) hpi.contMDiff |
| 104 | (fun _ _ _ => rfl) j hj hj_inj X Phi hs hcurve h0 hact hmetric htrans |
| 105 | refine ⟨B, hB, hR, ?_⟩ |
| 106 | intro x |
| 107 | have hleast : 0 ≤ D.leastSectionalCurvature x := by |
| 108 | apply Real.sInf_nonneg |
| 109 | rintro k ⟨v, w, _, rfl⟩ |
| 110 | exact hsec x v w |
| 111 | have hdefect : D.negativeCurvaturePart x = 0 := |
| 112 | max_eq_right (neg_nonpos.mpr hleast) |
| 113 | exact curvatureTensorNorm_le_of_scalar_negativeDefect_le D hD x hB.le |
| 114 | ((le_abs_self _).trans (hR x)) (hdefect.trans_le hB.le) |
| 115 | |
| 116 | end PoincareMT.M30 |