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.CapGeometry.IntrinsicRadialPatch |
| 3 | |
| 4 | /-! |
| 5 | # The exact second neck at the actual radial core boundary |
| 6 | |
| 7 | Morgan-Tian Theorem 12.32, pp. 326-327, and Definition 9.72. The end |
| 8 | neck and boundary neck are distinct literal radial annuli. The boundary |
| 9 | neck is centered at the end's inner radius, with its own positive speed. |
| 10 | Their actual set identities supply the frozen frontier clause without |
| 11 | changing either requested neck length. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Metric |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.Uniqueness |
| 21 | |
| 22 | variable (g : RiemannianMetric 3 StandardCapSpace) |
| 23 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 24 | ∀ x u v : StandardCapSpace, |
| 25 | g.inner (standardRotation A x) |
| 26 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 27 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 28 | (hcomplete : MetricComplete g) (P : M35StandardCapPredecessors) |
| 29 | |
| 30 | include hrotation hcomplete P |
| 31 | |
| 32 | /-- Theorem 12.32, pp. 326-327: the second literal radial neck has central |
| 33 | sphere exactly equal to the frontier of the actual closed metric-ball core. -/ |
| 34 | theorem radial_boundary_neck_frontier (q₀ : UnitTwoSphere) (a b length : ℝ) |
| 35 | (hb : 0 < b) (hl : 0 < length) (hinner : 0 < a - b * length) : |
| 36 | frontier (closure (g.ball 0 a)) = |
| 37 | (intrinsicRadialAnnulusPatch g hrotation hcomplete q₀ a b length |
| 38 | hb hl hinner).centralSphere := by |
| 39 | have ha : 0 < a := by nlinarith only [hinner, mul_pos hb hl] |
| 40 | have hr : 0 < (radialArclengthOrderIso g hrotation hcomplete).symm a := by |
| 41 | simpa only [radialArclengthOrderIso_symm_zero] using |
| 42 | (radialArclengthOrderIso g hrotation hcomplete).symm.strictMono ha |
| 43 | rw [closure_ball_zero_eq_radial_closedBall g hrotation hcomplete P ha, |
| 44 | frontier_closedBall 0 hr.ne', intrinsicRadialAnnulusPatch_centralSphere] |
| 45 | |
| 46 | /-- Theorem 12.32, pp. 326-327: a boundary speed below twice the end speed |
| 47 | keeps the full second neck strictly inside the same actual cap carrier. -/ |
| 48 | theorem radial_boundary_neck_subset_outer_ball (q₀ : UnitTwoSphere) |
| 49 | (a b b' length : ℝ) (hb' : 0 < b') (hl : 0 < length) |
| 50 | (hinner : 0 < (a - b * length) - b' * length) (hspeed : b' < 2 * b) : |
| 51 | (intrinsicRadialAnnulusPatch g hrotation hcomplete q₀ |
| 52 | (a - b * length) b' length hb' hl hinner).carrier ⊆ g.ball 0 (a + b * length) := by |
| 53 | rw [intrinsicRadialAnnulusPatch_carrier] |
| 54 | intro x hx |
| 55 | have hs : 0 ≤ radialArclength g ‖x‖ := by |
| 56 | simpa only [radialArclength_zero] using |
| 57 | (radialArclength_strictMono g).monotone (norm_nonneg x) |
| 58 | change g.edist 0 x < ENNReal.ofReal (a + b * length) |
| 59 | rw [edist_zero_eq_radialArclength g hrotation hcomplete P, |
| 60 | ENNReal.ofReal_lt_ofReal_iff_of_nonneg hs] |
| 61 | have hwidth := mul_lt_mul_of_pos_right hspeed hl |
| 62 | linarith only [hx.2, hwidth] |
| 63 | |
| 64 | /-- Theorem 12.32, pp. 326-327: every point strictly inside the chosen |
| 65 | actual inner radius belongs to the interior of its literal closed core. -/ |
| 66 | theorem mem_interior_radial_core {s : ℝ} (hs : 0 < s) |
| 67 | {x : StandardCapSpace} (hx : radialArclength g ‖x‖ < s) : |
| 68 | x ∈ interior (closure (g.ball 0 s)) := by |
| 69 | have hr : 0 < (radialArclengthOrderIso g hrotation hcomplete).symm s := by |
| 70 | simpa only [radialArclengthOrderIso_symm_zero] using |
| 71 | (radialArclengthOrderIso g hrotation hcomplete).symm.strictMono hs |
| 72 | rw [closure_ball_zero_eq_radial_closedBall g hrotation hcomplete P hs, |
| 73 | interior_closedBall 0 hr.ne', mem_ball, dist_zero_right] |
| 74 | change (radialArclengthOrderIso g hrotation hcomplete) ‖x‖ < s at hx |
| 75 | have h := (radialArclengthOrderIso g hrotation hcomplete).symm.strictMono hx |
| 76 | simpa only [OrderIso.symm_apply_apply] using h |
| 77 | |
| 78 | end PoincareMT.M35.Uniqueness |