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.Geometry.Smoothing.ControlledTransport |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Boundedness.Projective.Geometry.GapRate |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Boundedness.Projective.Geometry.SlabDistance |
| 4 | |
| 5 | /-! |
| 6 | # Axially regular levels and transport in projective cylinders |
| 7 | |
| 8 | The actual smooth exhaustion and its transport are constructed on the |
| 9 | original metric. The covering's signed axial estimate supplies regularity |
| 10 | on the whole central slab, with no orientability assumption. |
| 11 | |
| 12 | Reference: Kleiner--Lott, Theorem 46.1, pp. 2687-2688. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Metric |
| 20 | open Poincare.Riemannian.Soul |
| 21 | open scoped Topology Manifold ContDiff Bundle ENNReal |
| 22 | |
| 23 | namespace PoincareMT.RiemannianMetric |
| 24 | |
| 25 | variable {M : Type*} [TopologicalSpace M] [T2Space M] [T3Space M] |
| 26 | [ConnectedSpace M] [NoncompactSpace M] [MeasurableSpace M] [BorelSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 28 | |
| 29 | /-- Smooth level transport with a uniform axial derivative bound on the |
| 30 | actual projective covering slab. -/ |
| 31 | theorem exists_smooth_projective_neck_level_transport |
| 32 | (g : RiemannianMetric 3 M) (D : LeviCivitaData g) |
| 33 | (hc : MetricComplete g) (hsec : D.NonnegativeSectionalCurvature) (p : M) : |
| 34 | letI := g.toMetricSpace |
| 35 | let f := busemannExhaustion p |
| 36 | ∃ l : ℝ, 0 < l ∧ ∀ W : ℝ, 0 ≤ W → |
| 37 | ∃ ε₀ : ℝ, 0 < ε₀ ∧ ε₀ ≤ 1 / 4 ∧ |
| 38 | ∀ (ε r : ℝ), 0 < ε → 0 < r → ε ≤ ε₀ → W < ε⁻¹ → |
| 39 | ∀ Φ : RoundCylinderSpace → M, |
| 40 | IsLocalDiffeomorphOn ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ Φ |
| 41 | (univ ×ˢ Ioo (-ε⁻¹) ε⁻¹) → |
| 42 | (∀ z ∈ univ ×ˢ Icc (-ε⁻¹) ε⁻¹, ∀ w ∈ univ ×ˢ Icc (-ε⁻¹) ε⁻¹, |
| 43 | Φ z = Φ w ↔ w = z ∨ w = (-z.1, z.2)) → |
| 44 | RoundCylinderClose ε 0 |
| 45 | (fun z v w => r⁻¹ ^ 2 * roundCylinderPullback g Φ z v w) → |
| 46 | ∀ q₀ : UnitTwoSphere, 2 ≤ f (Φ (q₀, 0)) → |
| 47 | (2 * W + 4 * (Real.pi + 1)) * r ≤ 1 / 2 → |
| 48 | p ∉ Φ '' (univ ×ˢ Icc (-ε⁻¹ / 2) (ε⁻¹ / 2)) → |
| 49 | let U := {x | 1 / 2 < f x ∧ f x < f (Φ (q₀, 0)) + 1 + 1 / 2} |
| 50 | ∃ (u : M → ℝ) (V : Set M) (Q : M → M), |
| 51 | ContMDiff (𝓡 3) 𝓘(ℝ, ℝ) ∞ u ∧ |
| 52 | (∀ x ∈ horoballIntersection p (f (Φ (q₀, 0)) + 2), 0 < f x → |
| 53 | |u x - f x| ≤ min r (1 / 8)) ∧ |
| 54 | 1 < u (Φ (q₀, 0)) ∧ u (Φ (q₀, 0)) < f (Φ (q₀, 0)) + 1 ∧ |
| 55 | (∀ x ∈ U, mfderiv (𝓡 3) 𝓘(ℝ, ℝ) u x ≠ 0) ∧ |
| 56 | IsCompact {x | x ∈ U ∧ u x ∈ Icc 1 (u (Φ (q₀, 0)))} ∧ |
| 57 | IsOpen V ∧ {x | x ∈ U ∧ u x = u (Φ (q₀, 0))} ⊆ V ∧ V ⊆ U ∧ |
| 58 | ContMDiffOn (𝓡 3) (𝓡 3) ∞ Q V ∧ |
| 59 | MapsTo Q {x | x ∈ U ∧ u x = u (Φ (q₀, 0))} {x | x ∈ U ∧ u x = 1} ∧ |
| 60 | SurjOn Q {x | x ∈ U ∧ u x = u (Φ (q₀, 0))} {x | x ∈ U ∧ u x = 1} ∧ |
| 61 | InjOn Q {x | x ∈ U ∧ u x = u (Φ (q₀, 0))} ∧ |
| 62 | (∀ x ∈ U, u x = u (Φ (q₀, 0)) → ∀ v : TangentSpace (𝓡 3) x, |
| 63 | mvfderiv (𝓡 3) u x v = 0 → |
| 64 | g.tangentNorm (Q x) (mfderiv (𝓡 3) (𝓡 3) Q x v) ≤ |
| 65 | 2 * g.tangentNorm x v) ∧ |
| 66 | ∀ (q : UnitTwoSphere) (t : ℝ), t ∈ Icc (-W) W → |
| 67 | Φ (q, t) ∈ U ∧ g.tangentNorm (Φ (q, t)) (D.gradient u (Φ (q, t))) ≤ 2 ∧ |
| 68 | (l / 2) * r ≤ |mvfderiv (𝓡 3) u (Φ (q, t)) |
| 69 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) Φ (q, t) (0, 1))| := by |
| 70 | let := g.toMetricSpace |
| 71 | let f := busemannExhaustion p |
| 72 | obtain ⟨l, hl, hsmooth⟩ := g.exists_smooth_exhaustion_level_transport D hc hsec p |
| 73 | refine ⟨l, hl, ?_⟩ |
| 74 | intro W hW |
| 75 | obtain ⟨ε₀, hε₀, hεquarter, haxial⟩ := |
| 76 | CylinderCover.exists_axial_differential_lower_bound_of_gap_rate |
| 77 | (G := 2) hl (by norm_num) hW |
| 78 | refine ⟨ε₀, hε₀, hεquarter, ?_⟩ |
| 79 | intro ε r hε hr hεsmall hWdom Φ hΦ hfiber hclose q₀ hcenter hscale hpout |
| 80 | let x₀ := Φ (q₀, 0) |
| 81 | let C := horoballIntersection p (f x₀ + 2) |
| 82 | let U := {x | 1 / 2 < f x ∧ f x < f x₀ + 1 + 1 / 2} |
| 83 | obtain ⟨u, H, V, Q, _, hu, herror, hupper, hhess, hradial, hcpos, hcb, |
| 84 | hregular, hcompact, hV, htopV, hVU, hQ, hmaps, honto, hinj, hbound⟩ := |
| 85 | hsmooth x₀ hcenter (min r (1 / 8)) (lt_min hr (by norm_num)) (min_le_right _ _) |
| 86 | refine ⟨u, V, Q, hu, herror, hcpos, hcb, hregular, hcompact, hV, htopV, hVU, |
| 87 | hQ, hmaps, honto, hinj, hbound, ?_⟩ |
| 88 | intro q t ht |
| 89 | have hz : t ∈ Ioo (-ε⁻¹) ε⁻¹ := |
| 90 | ⟨(neg_lt_neg hWdom).trans_le ht.1, ht.2.trans_lt hWdom⟩ |
| 91 | have hd := CylinderCover.toReal_edist_center_le g Φ hε |
| 92 | ((hεsmall.trans hεquarter).trans (by norm_num)) hr hΦ.contMDiffOn hclose q₀ (z := (q, t)) hz |
| 93 | have hdhalf : dist (Φ (q, t)) x₀ ≤ 1 / 2 := |
| 94 | hd.trans ((mul_le_mul_of_nonneg_right (by linarith [(abs_le.mpr ht : |t| ≤ W)]) hr.le).trans hscale) |
| 95 | have hosc0 : |f (Φ (q, t)) - f x₀| ≤ dist (Φ (q, t)) x₀ := by |
| 96 | simpa only [Real.dist_eq, NNReal.coe_one, one_mul] using |
| 97 | (lipschitz_busemannExhaustion p).dist_le_mul (Φ (q, t)) x₀ |
| 98 | have hosc := hosc0.trans hdhalf |
| 99 | have hxone : 1 ≤ f (Φ (q, t)) := by linarith [(abs_le.mp hosc).1] |
| 100 | have hxU : Φ (q, t) ∈ U := by |
| 101 | constructor |
| 102 | · linarith |
| 103 | · linarith [(abs_le.mp hosc).2] |
| 104 | have hxC : Φ (q, t) ∈ C := |
| 105 | (busemannExhaustion_le_iff (by linarith : 0 ≤ f x₀ + 2)).mp (by linarith [hxU.2]) |
| 106 | have hpC : p ∈ C := closedBall_subset_horoballIntersection p (f x₀ + 2) |
| 107 | (by simp only [mem_closedBall, dist_self]; linarith) |
| 108 | have hconvex (γ : ℝ → M) (L : ℝ) (hγ : g.IsGeodesicOn γ (Icc 0 L)) |
| 109 | (h0 : γ 0 ∈ C) (hL : γ L ∈ C) : MapsTo γ (Icc 0 L) C := |
| 110 | mapsTo_horoballIntersection_of_concaveOn |
| 111 | (fun ray hray _ => g.concaveOn_busemann_of_nonnegativeSectional |
| 112 | D hc hsec (fun _ _ => rfl) hray hγ) h0 hL |
| 113 | have ha := haxial g D hc Φ hε hr hεsmall hΦ hfiber hclose hu hpC hconvex hhess hpout |
| 114 | (z := (q, t)) hz (abs_le.mpr ht) hxC (hradial _ hxC hxone).1 |
| 115 | (hradial _ hxC hxone).2 (hupper _ hxC) |
| 116 | refine ⟨hxU, hupper _ hxC, ?_⟩ |
| 117 | rw [map_smul, smul_eq_mul, abs_mul, abs_of_pos (inv_pos.mpr hr)] at ha |
| 118 | have hmul := mul_le_mul_of_nonneg_right ha hr.le |
| 119 | simpa only [mul_assoc, inv_mul_cancel₀ hr.ne', mul_one, mul_left_comm r⁻¹] using hmul |
| 120 | |
| 121 | end PoincareMT.RiemannianMetric |