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.AncientKappa.Compactness.Boundedness.Projective.Levels.Capture |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Boundedness.Projective.Levels.GraphMetric |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Boundedness.Projective.Levels.Transport |
| 4 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Boundedness.Geometry.Smoothing.ComponentDiameter.Exhaustion |
| 5 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Boundedness.Geometry.TransportComponentDiameter |
| 6 | |
| 7 | /-! |
| 8 | # A positive scale bound for remote projective cylinder covers |
| 9 | |
| 10 | The even level graph covers one whole ambient level component. Its metric |
| 11 | differential and contracting transport force that component to be small at |
| 12 | the fixed low level, contradicting the uniform component diameter bound. |
| 13 | |
| 14 | Reference: Kleiner--Lott, Theorem 46.1, pp. 2687-2688. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set Metric Function |
| 22 | open Poincare.Riemannian.Soul Poincare.Geometry.Riemannian.SpaceForm |
| 23 | open scoped Topology Manifold ContDiff Bundle ENNReal |
| 24 | |
| 25 | namespace PoincareMT.RiemannianMetric |
| 26 | |
| 27 | variable {M : Type*} [TopologicalSpace M] [T2Space M] [T3Space M] |
| 28 | [ConnectedSpace M] [NoncompactSpace M] [MeasurableSpace M] [BorelSpace M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 30 | |
| 31 | /-- Complete nonnegative sectional geometry supplies a uniform positive |
| 32 | scale for every sufficiently precise remote antipodal cylinder cover. -/ |
| 33 | theorem exists_remote_projective_neck_scale_lower_bound |
| 34 | (g : RiemannianMetric 3 M) (D : LeviCivitaData g) |
| 35 | (hc : MetricComplete g) (hsec : D.NonnegativeSectionalCurvature) (p : M) : |
| 36 | letI := g.toMetricSpace |
| 37 | ∃ ε₀ : ℝ, 0 < ε₀ ∧ ∃ s₀ : ℝ, 0 < s₀ ∧ |
| 38 | ∀ (ε r : ℝ), 0 < ε → 0 < r → ε ≤ ε₀ → ∀ (Φ : RoundCylinderSpace → M), |
| 39 | IsLocalDiffeomorphOn ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ Φ |
| 40 | (univ ×ˢ Ioo (-ε⁻¹) ε⁻¹) → |
| 41 | (∀ z ∈ univ ×ˢ Icc (-ε⁻¹) ε⁻¹, ∀ w ∈ univ ×ˢ Icc (-ε⁻¹) ε⁻¹, |
| 42 | Φ z = Φ w ↔ w = z ∨ w = (-z.1, z.2)) → |
| 43 | RoundCylinderClose ε 0 (fun z v w => r⁻¹ ^ 2 * roundCylinderPullback g Φ z v w) → |
| 44 | ∀ q₀ : UnitTwoSphere, 2 ≤ busemannExhaustion p (Φ (q₀, 0)) → |
| 45 | p ∉ Φ '' (univ ×ˢ Icc (-ε⁻¹ / 2) (ε⁻¹ / 2)) → s₀ ≤ r := by |
| 46 | let := g.toMetricSpace |
| 47 | let f := busemannExhaustion p |
| 48 | obtain ⟨d, hd, hlow⟩ := |
| 49 | g.exists_uniform_exhaustion_low_level_component_diameter D hc hsec p |
| 50 | obtain ⟨l, hl, hsmooth⟩ := g.exists_smooth_projective_neck_level_transport D hc hsec p |
| 51 | let W := (8 * (Real.pi + 1) + 6) / l |
| 52 | have hW : 0 < W := by dsimp [W]; positivity |
| 53 | have hWl : l * W = 8 * (Real.pi + 1) + 6 := by dsimp [W]; field_simp |
| 54 | obtain ⟨ε₁, hε₁, hεquarter, htransport⟩ := hsmooth W hW.le |
| 55 | let K := 4 * Real.pi * (1 + 8 / l) |
| 56 | have hK : 0 < K := by dsimp [K]; positivity |
| 57 | let s₀ := min (1 / (2 * (2 * W + 4 * (Real.pi + 1)))) (d / K) |
| 58 | have hs₀ : 0 < s₀ := lt_min (by positivity) (div_pos hd hK) |
| 59 | refine ⟨min ε₁ (1 / (W + 1)), lt_min hε₁ (by positivity), s₀, hs₀, ?_⟩ |
| 60 | intro ε r hε hr hεsmall Φ hΦ hfiber hclose q₀ hremote hpout |
| 61 | have hεsmall₁ := hεsmall.trans (min_le_left _ _) |
| 62 | have hεone : ε ≤ 1 := by linarith [hεsmall₁.trans hεquarter] |
| 63 | have hWdom : W < ε⁻¹ := by |
| 64 | have hh := (le_div_iff₀ (by positivity : 0 < W + 1)).mp |
| 65 | (hεsmall.trans (min_le_right _ _)) |
| 66 | rw [← one_div] |
| 67 | apply (lt_div_iff₀ hε).mpr |
| 68 | nlinarith |
| 69 | by_contra! hsmall |
| 70 | have hscale : (2 * W + 4 * (Real.pi + 1)) * r ≤ 1 / 2 := by |
| 71 | have hh := (lt_div_iff₀ (by positivity : 0 < 2 * (2 * W + 4 * (Real.pi + 1)))).mp |
| 72 | (hsmall.trans_le (min_le_left _ _)) |
| 73 | nlinarith |
| 74 | have hKscale : K * r < d := by |
| 75 | have hh := (lt_div_iff₀ hK).mp (hsmall.trans_le (min_le_right _ _)) |
| 76 | nlinarith |
| 77 | obtain ⟨u, V, Q, hu, herror, hcpos, hcb, hreg, hband, hV, hAV, hVU, |
| 78 | hQ, hmaps, honto, hinj, hQbound, hslab⟩ := |
| 79 | htransport ε r hε hr hεsmall₁ hWdom Φ hΦ hfiber hclose q₀ hremote hscale hpout |
| 80 | let U := {x | 1 / 2 < f x ∧ f x < f (Φ (q₀, 0)) + 1 + 1 / 2} |
| 81 | have hdom {t : ℝ} (ht : t ∈ Icc (-W) W) : t ∈ Ioo (-ε⁻¹) ε⁻¹ := |
| 82 | ⟨(neg_lt_neg hWdom).trans_le ht.1, ht.2.trans_lt hWdom⟩ |
| 83 | have hderiv (q : UnitTwoSphere) (t : ℝ) (ht : t ∈ Icc (-W) W) : |
| 84 | (l / 2) * r ≤ |deriv (fun a : ℝ => u (Φ (q, a))) t| := by |
| 85 | rw [(hasDerivAt_cylinderCover_comp_axis Φ hΦ.contMDiffOn hu q (hdom ht)).deriv] |
| 86 | exact (hslab q t ht).2.2 |
| 87 | have hU : Φ '' (univ ×ˢ Ioo (-W) W) ⊆ U := by |
| 88 | rintro _ ⟨⟨q, t⟩, ht, rfl⟩ |
| 89 | exact (hslab q t ⟨ht.2.1.le, ht.2.2.le⟩).1 |
| 90 | have hcenter (q : UnitTwoSphere) : |
| 91 | |u (Φ (q, 0)) - u (Φ (q₀, 0))| < ((l / 2) * r) * W := by |
| 92 | let x := Φ (q, 0) |
| 93 | let x₀ := Φ (q₀, 0) |
| 94 | have hxU : x ∈ U := (hslab q 0 (by constructor <;> linarith)).1 |
| 95 | have hxC : x ∈ horoballIntersection p (f x₀ + 2) := by |
| 96 | apply (busemannExhaustion_le_iff (by linarith : 0 ≤ f x₀ + 2)).mp |
| 97 | linarith [hxU.2] |
| 98 | have hx₀C : x₀ ∈ horoballIntersection p (f x₀ + 2) := by |
| 99 | apply (busemannExhaustion_le_iff (by linarith : 0 ≤ f x₀ + 2)).mp |
| 100 | linarith |
| 101 | have hex := (herror x hxC (by linarith [hxU.1])).trans (min_le_left _ _) |
| 102 | have hep := (herror x₀ hx₀C (by linarith)).trans (min_le_left _ _) |
| 103 | have hdist : dist x x₀ ≤ (4 * (Real.pi + 1)) * r := by |
| 104 | have hh := CylinderCover.toReal_edist_center_le g Φ hε hεone hr |
| 105 | hΦ.contMDiffOn hclose q₀ (z := (q, 0)) (hdom (by constructor <;> linarith)) |
| 106 | simp only [abs_zero, mul_zero, zero_add] at hh |
| 107 | exact hh |
| 108 | have hosc₀ : |f x - f x₀| ≤ dist x x₀ := by |
| 109 | simpa only [Real.dist_eq, NNReal.coe_one, one_mul] using |
| 110 | (lipschitz_busemannExhaustion p).dist_le_mul x x₀ |
| 111 | have hosc := hosc₀.trans hdist |
| 112 | have hb : |u x - u x₀| ≤ (4 * (Real.pi + 1) + 2) * r := by |
| 113 | apply abs_le.mpr |
| 114 | constructor <;> nlinarith [(abs_le.mp hex).1, (abs_le.mp hex).2, |
| 115 | (abs_le.mp hep).1, (abs_le.mp hep).2, (abs_le.mp hosc).1, (abs_le.mp hosc).2] |
| 116 | have hw : ((l / 2) * r) * W = (4 * (Real.pi + 1) + 3) * r := by |
| 117 | nlinarith [congrArg (fun z : ℝ => z * r) hWl] |
| 118 | exact hb.trans_lt (by rw [hw]; nlinarith) |
| 119 | have hfiber' : ∀ z ∈ univ ×ˢ Ioo (-ε⁻¹) ε⁻¹, |
| 120 | ∀ w ∈ univ ×ˢ Ioo (-ε⁻¹) ε⁻¹, Φ z = Φ w ↔ w = z ∨ w = (-z.1, z.2) := |
| 121 | fun z hz w hw => hfiber z ⟨hz.1, hz.2.1.le, hz.2.2.le⟩ |
| 122 | w ⟨hw.1, hw.2.1.le, hw.2.2.le⟩ |
| 123 | obtain ⟨h, hh, hheight, _, hlevel, hP, hcomponent⟩ := |
| 124 | exists_projective_level_component_parametrization Φ hΦ hfiber' hu U hW hWdom |
| 125 | (mul_pos (by positivity) hr) hU hderiv hcenter |
| 126 | let P := fun q => Φ (q, h q) |
| 127 | have hparam (q : UnitTwoSphere) (v : TangentSpace (𝓡 2) q) : |
| 128 | g.tangentNorm (P q) (mfderiv (𝓡 2) (𝓡 3) P q v) ≤ |
| 129 | (2 * r * (1 + 8 / l)) * (roundSphereMetric 2).tangentNorm q v := by |
| 130 | have hhbound := cylinderCover_levelGraph_tangentNorm_mfderiv_le g D Φ |
| 131 | hε.le hεone hr hΦ.contMDiffOn hclose hu hh |
| 132 | (fun q => hdom ⟨(hheight q).1.le, (hheight q).2.le⟩) |
| 133 | (by positivity : 0 < l / 2) (by norm_num : (0 : ℝ) ≤ 2) hlevel |
| 134 | (fun q => (hslab q _ ⟨(hheight q).1.le, (hheight q).2.le⟩).2.1) |
| 135 | (fun q => (hslab q _ ⟨(hheight q).1.le, (hheight q).2.le⟩).2.2) q v |
| 136 | have heq : 2 * (2 : ℝ) / (l / 2) = 8 / l := by ring |
| 137 | simpa only [heq] using hhbound |
| 138 | let A := {x | x ∈ U ∧ u x = u (Φ (q₀, 0))} |
| 139 | have hA : IsCompact A := by |
| 140 | have heq : A = {x | x ∈ U ∧ u x ∈ Icc 1 (u (Φ (q₀, 0)))} ∩ |
| 141 | u ⁻¹' {u (Φ (q₀, 0))} := by |
| 142 | ext x |
| 143 | simp only [A, mem_ofPred_eq, mem_inter_iff, mem_preimage, mem_singleton_iff, mem_Icc] |
| 144 | constructor |
| 145 | · rintro ⟨hx, heq⟩ |
| 146 | exact ⟨⟨hx, heq ▸ hcpos.le, heq.le⟩, heq⟩ |
| 147 | · exact fun hx => ⟨hx.1.1, hx.2⟩ |
| 148 | rw [heq] |
| 149 | exact hband.inter_right (isClosed_singleton.preimage hu.continuous) |
| 150 | have hx : P q₀ ∈ A := ⟨hU ⟨(q₀, h q₀), ⟨mem_univ _, hheight q₀⟩, rfl⟩, hlevel q₀⟩ |
| 151 | have herror' (x : M) (hx : x ∈ horoballIntersection p (f (Φ (q₀, 0)) + 1 + 1)) |
| 152 | (hpos : 0 < f x) : |u x - f x| ≤ 1 / 8 := by |
| 153 | apply (herror x ?_ hpos).trans (min_le_right _ _) |
| 154 | simpa only [f, add_assoc, one_add_one_eq_two] using hx |
| 155 | obtain ⟨y, hy, z, hz, hdiam⟩ := hlow (f (Φ (q₀, 0)) + 1) (by linarith) u hu hreg |
| 156 | herror' (Q (P q₀)) (hmaps hx) |
| 157 | have hupper := g.edist_transport_component_of_spherical_parametrization_le hu |
| 158 | hA hV hAV hQ ⟨hmaps, hinj, honto⟩ hx hP (hcomponent q₀) hlevel |
| 159 | (by norm_num : (0 : ℝ) < 2) (by positivity : 0 < 2 * r * (1 + 8 / l)) |
| 160 | (fun x hx v hv => hQbound x hx.1 hx.2 v hv) hparam hy hz |
| 161 | have hupper' : dist y z ≤ K * r := by |
| 162 | have ht := ENNReal.toReal_mono (by simp) hupper |
| 163 | rw [ENNReal.toReal_ofReal (by positivity)] at ht |
| 164 | change dist y z ≤ _ at ht |
| 165 | convert ht using 1 <;> dsimp [K] <;> ring |
| 166 | exact (not_lt_of_ge (hdiam.trans hupper')) hKscale |
| 167 | |
| 168 | end PoincareMT.RiemannianMetric |