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.Surgery.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Neck.Geometry.NeckBall |
| 3 | |
| 4 | /-! |
| 5 | # Larger actual balls inside the long cap boundary collar |
| 6 | |
| 7 | Morgan-Tian Remark 9.73, pp. 230-231, in Theorem 12.28, |
| 8 | pp. 323-324. A variable axial exit level retains a ball of half that |
| 9 | radius. The cutoff can be larger than the scalar curvature scale while |
| 10 | remaining strictly inside the longer neck. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle ENNReal |
| 17 | |
| 18 | namespace PoincareMT.StandardCylinderPatch |
| 19 | |
| 20 | /-- Remark 9.73 in Theorem 12.28: the actual metric ball with |
| 21 | radius half any retained axial cutoff lies inside the neck carrier. -/ |
| 22 | theorem center_ball_subset_carrier_of_axial_cutoff {epsilon u ell : ℝ} |
| 23 | {x : StandardCapSpace} (N : StandardCylinderPatch epsilon⁻¹ x) |
| 24 | (g : RiemannianMetric 3 StandardCapSpace) (he : 0 < epsilon) |
| 25 | (hesmall : epsilon ≤ 1 / 24) (hu : u ∈ Icc (-1) 0) |
| 26 | (hell : 0 < ell) (hlong : ell < epsilon⁻¹) |
| 27 | (hclose : RoundCylinderClose epsilon u (roundCylinderPullback g N.coordinate)) : |
| 28 | g.ball x (ell / 2) ⊆ N.carrier := by |
| 29 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : StandardCapSpace → Type _) := |
| 30 | ⟨g.toRiemannianMetric⟩ |
| 31 | have hcenter : (N.inverse x).2 = 0 := by |
| 32 | obtain ⟨q, hq⟩ := N.center_sphere |
| 33 | have hdom : (q, (0 : ℝ)) ∈ univ ×ˢ Ioo (-epsilon⁻¹) epsilon⁻¹ := |
| 34 | ⟨mem_univ _, ⟨neg_neg_of_pos N.length_pos, N.length_pos⟩⟩ |
| 35 | have hi := N.coordinate_left_inverse hdom |
| 36 | rw [hq] at hi |
| 37 | exact congrArg Prod.snd hi |
| 38 | intro y hy |
| 39 | by_contra hout |
| 40 | obtain ⟨gamma, hzero, hone, hsmooth, hlength⟩ := |
| 41 | Manifold.exists_lt_of_riemannianEDist_lt hy |
| 42 | obtain ⟨t, ht, hslab, hexit⟩ := N.exists_first_axial_exit hell hlong |
| 43 | gamma hsmooth.continuousOn hzero (hone ▸ hout) |
| 44 | let clock : ℝ → ℝ := fun s => t * s |
| 45 | let eta := gamma ∘ clock |
| 46 | have hclock : ContDiff ℝ 1 clock := contDiff_const.mul contDiff_id |
| 47 | have hclockmap : MapsTo clock (Icc (0 : ℝ) 1) (Icc 0 t) := by |
| 48 | intro s hs |
| 49 | exact ⟨mul_nonneg ht.1.le hs.1, |
| 50 | (mul_le_mul_of_nonneg_left hs.2 ht.1.le).trans_eq (mul_one t)⟩ |
| 51 | have hsmall : Icc (0 : ℝ) t ⊆ Icc 0 1 := Icc_subset_Icc le_rfl ht.2 |
| 52 | have heta : ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 3) 1 eta (Icc 0 1) := |
| 53 | (hsmooth.mono hsmall).comp hclock.contMDiff.contMDiffOn hclockmap |
| 54 | have himage : MapsTo eta (Icc (0 : ℝ) 1) N.carrier := |
| 55 | fun s hs => N.closed_axial_slab_subset_carrier hlong (hslab _ (hclockmap hs)) |
| 56 | have hmon : MonotoneOn clock (Icc (0 : ℝ) 1) := by |
| 57 | intro a _ b _ hab |
| 58 | exact mul_le_mul_of_nonneg_left hab ht.1.le |
| 59 | have hd : MDifferentiableOn 𝓘(ℝ, ℝ) (𝓡 3) gamma (Icc (clock 0) (clock 1)) := by |
| 60 | simpa only [clock, mul_zero, mul_one] using |
| 61 | (hsmooth.mono hsmall).mdifferentiableOn one_ne_zero |
| 62 | have hparam : g.pathELength eta 0 1 = g.pathELength gamma 0 t := by |
| 63 | have h := Manifold.pathELength_comp_of_monotoneOn (I := 𝓡 3) zero_le_one |
| 64 | hmon (hclock.differentiable one_ne_zero).differentiableOn hd |
| 65 | convert! h using 1 |
| 66 | simp only [clock, mul_zero, mul_one] |
| 67 | rfl |
| 68 | have hlenle : g.pathELength eta 0 1 ≤ g.pathELength gamma 0 1 := |
| 69 | hparam.le.trans (Manifold.pathELength_mono le_rfl ht.2) |
| 70 | have hax := N.axial_edist_le_pathELength g he hesmall hu hclose eta heta himage |
| 71 | have hax0 : eta 0 = x := by simpa only [eta, Function.comp_apply, clock, mul_zero] using hzero |
| 72 | have hax1 : eta 1 = gamma t := by simp only [eta, Function.comp_apply, clock, mul_one] |
| 73 | rw [hax0, hax1, hcenter, edist_dist, Real.dist_eq, zero_sub, abs_neg, hexit] at hax |
| 74 | have hstrict : 2 * g.pathELength eta 0 1 < ENNReal.ofReal ell := by |
| 75 | calc |
| 76 | 2 * g.pathELength eta 0 1 ≤ 2 * g.pathELength gamma 0 1 := mul_le_mul_right hlenle 2 |
| 77 | _ < 2 * ENNReal.ofReal (ell / 2) := |
| 78 | ENNReal.mul_lt_mul_right (by norm_num) (by norm_num) hlength |
| 79 | _ = ENNReal.ofReal (2 * (ell / 2)) := by |
| 80 | rw [ENNReal.ofReal_mul (by norm_num : (0 : ℝ) ≤ 2), ENNReal.ofReal_ofNat] |
| 81 | _ = ENNReal.ofReal ell := by congr 1; ring |
| 82 | exact (not_lt_of_ge hax) hstrict |
| 83 | |
| 84 | /-- Remark 9.73 in Theorem 12.28: every central-sphere point, |
| 85 | not only the designated center, has the same retained collar ball. -/ |
| 86 | theorem central_sphere_ball_subset_carrier_of_axial_cutoff {epsilon u ell : ℝ} |
| 87 | {x : StandardCapSpace} (N : StandardCylinderPatch epsilon⁻¹ x) |
| 88 | (g : RiemannianMetric 3 StandardCapSpace) (he : 0 < epsilon) |
| 89 | (hesmall : epsilon ≤ 1 / 24) (hu : u ∈ Icc (-1) 0) |
| 90 | (hell : 0 < ell) (hlong : ell < epsilon⁻¹) |
| 91 | (hclose : RoundCylinderClose epsilon u (roundCylinderPullback g N.coordinate)) |
| 92 | (q : UnitTwoSphere) : g.ball (N.coordinate (q, 0)) (ell / 2) ⊆ N.carrier := by |
| 93 | let N' : StandardCylinderPatch epsilon⁻¹ (N.coordinate (q, 0)) := |
| 94 | { N with center_sphere := ⟨q, rfl⟩ } |
| 95 | exact N'.center_ball_subset_carrier_of_axial_cutoff g he hesmall hu hell hlong hclose |
| 96 | |
| 97 | end PoincareMT.StandardCylinderPatch |