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.IntrinsicAnnulusJets |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.ScalarOperators.CompactScalarConvergence |
| 4 | |
| 5 | /-! |
| 6 | # Full prescribed comparison on the actual radial annulus |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327. Compactness of the full closed |
| 9 | axial interval upgrades the actual intrinsic profile limits to the one |
| 10 | strict bound required by the frozen neck. The requested epsilon and |
| 11 | the whole open collar remain unchanged. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.Uniqueness |
| 21 | |
| 22 | /-- Theorem 12.32: all actual moving intrinsic-profile limits yield |
| 23 | the exact requested comparison on the full radial annulus. -/ |
| 24 | theorem intrinsic_annulus_eventually_close |
| 25 | (g : ℕ → RiemannianMetric 3 StandardCapSpace) |
| 26 | (hrotation : ∀ k, ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 27 | ∀ x u v : StandardCapSpace, |
| 28 | (g k).inner (standardRotation A x) |
| 29 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 30 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = (g k).inner x u v) |
| 31 | (hcomplete : ∀ k, MetricComplete (g k)) (a b : ℕ → ℝ) |
| 32 | {epsilon : ℝ} (hepsilon : 0 < epsilon) (hb : Tendsto b atTop (𝓝 1)) |
| 33 | (hjet : ∀ (idx : ℕ → ℕ), Tendsto idx atTop atTop → |
| 34 | ∀ (s : ℕ → ℝ), (∀ k, s k ∈ Icc (-epsilon⁻¹) epsilon⁻¹) → ∀ m : ℕ, |
| 35 | Tendsto (fun k => iteratedDeriv m |
| 36 | (fun r => intrinsicWarpingRadius (g (idx k)) (hrotation (idx k)) |
| 37 | (hcomplete (idx k)) r ^ 2) (a (idx k) + b (idx k) * s k)) |
| 38 | atTop (𝓝 (if m = 0 then 2 else 0))) : |
| 39 | ∀ᶠ k in atTop, RoundCylinderClose epsilon 0 |
| 40 | (radialCylinderTensor |
| 41 | (fun u => intrinsicWarpingRadius (g k) (hrotation k) (hcomplete k) |
| 42 | (a k + b k * u) ^ 2) (b k)) := by |
| 43 | let B (k : ℕ) := radialCylinderTensor |
| 44 | (fun u => intrinsicWarpingRadius (g k) (hrotation k) (hcomplete k) |
| 45 | (a k + b k * u) ^ 2) (b k) |
| 46 | let K : Set RoundCylinderSpace := univ ×ˢ Icc (-epsilon⁻¹) epsilon⁻¹ |
| 47 | have hK : IsCompact K := isCompact_univ.prod isCompact_Icc |
| 48 | have hseq : ∀ (idx : ℕ → ℕ), Tendsto idx atTop atTop → |
| 49 | ∀ (z : ℕ → RoundCylinderSpace), (∀ k, z k ∈ K) → |
| 50 | ∀ z₀ ∈ K, Tendsto z atTop (𝓝 z₀) → |
| 51 | Tendsto (fun k => roundCylinderJetErrorSquared 0 (B (idx k)) |
| 52 | ⌊epsilon⁻¹⌋₊ (z k)) atTop (𝓝 0) := by |
| 53 | intro idx hidx z hz z₀ _hz₀ hlim |
| 54 | exact intrinsic_annulus_jetError_tendsto_zero |
| 55 | (fun k => g (idx k)) (fun k => hrotation (idx k)) (fun k => hcomplete (idx k)) |
| 56 | (a ∘ idx) (b ∘ idx) (fun k => (z k).2) z₀.2 (fun k => (z k).1) |
| 57 | ⌊epsilon⁻¹⌋₊ (hb.comp hidx) (continuous_snd.tendsto z₀ |>.comp hlim) |
| 58 | (hjet idx hidx (fun k => (z k).2) (fun k => (hz k).2)) |
| 59 | obtain ⟨n, hn⟩ := OrdinaryRealization.uniform_of_moving_point_limits |
| 60 | (F := fun k z => roundCylinderJetErrorSquared 0 (B k) ⌊epsilon⁻¹⌋₊ z) |
| 61 | (G := fun _ => 0) hK continuousOn_const hseq |
| 62 | (by positivity : 0 < epsilon ^ 2 / 2) |
| 63 | filter_upwards [eventually_ge_atTop n] with k hk |
| 64 | refine ⟨?_, epsilon ^ 2 / 2, by nlinarith only [sq_pos_of_pos hepsilon], ?_⟩ |
| 65 | · intro q i j p _hp |
| 66 | apply (radialCylinderTensor_coefficient_contDiffAt (b k) q ?_ i j).contDiffWithinAt |
| 67 | exact (((intrinsicWarpingRadius_contDiff (g k) (hrotation k) (hcomplete k)).pow 2).comp |
| 68 | (contDiff_const.add (contDiff_const.mul contDiff_id))).contDiffAt |
| 69 | · intro z hz |
| 70 | have h := hn k hk z ⟨mem_univ _, ⟨hz.1.le, hz.2.le⟩⟩ |
| 71 | rw [sub_zero] at h |
| 72 | exact le_of_lt ((le_abs_self _).trans_lt h) |
| 73 | |
| 74 | end PoincareMT.M35.Uniqueness |