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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Persistence.NeckAnalysis.TensorNorms |
| 3 | |
| 4 | /-! |
| 5 | # Restricting the actual round-cylinder comparisons |
| 6 | |
| 7 | Morgan--Tian Definitions 2.16 and 2.18, pp. 30-31, and Proposition 9.79, |
| 8 | pp. 232-234. Increasing epsilon shortens the coordinate strip, drops |
| 9 | derivative orders, and retains the original uniform strict witness. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle BigOperators |
| 15 | open Set |
| 16 | |
| 17 | namespace PoincareMT.Proofs.M28.NeckAnalysis |
| 18 | |
| 19 | /-- Increasing a positive epsilon restricts the actual axial strip. -/ |
| 20 | theorem cylinderStrip_mono {epsilon eta : ℝ} (hepsilon : 0 < epsilon) |
| 21 | (h : epsilon ≤ eta) : Ioo (-eta⁻¹) eta⁻¹ ⊆ Ioo (-epsilon⁻¹) epsilon⁻¹ := by |
| 22 | have hinv : eta⁻¹ ≤ epsilon⁻¹ := inv_anti₀ hepsilon h |
| 23 | intro s hs |
| 24 | exact ⟨(neg_le_neg hinv).trans_lt hs.1, hs.2.trans_le hinv⟩ |
| 25 | |
| 26 | /-- The finite derivative order decreases under the same restriction. -/ |
| 27 | theorem cylinderOrder_mono {epsilon eta : ℝ} (hepsilon : 0 < epsilon) |
| 28 | (h : epsilon ≤ eta) : ⌊eta⁻¹⌋₊ ≤ ⌊epsilon⁻¹⌋₊ := |
| 29 | Nat.floor_mono (inv_anti₀ hepsilon h) |
| 30 | |
| 31 | end PoincareMT.Proofs.M28.NeckAnalysis |
| 32 | |
| 33 | namespace PoincareMT |
| 34 | |
| 35 | open Proofs.M28.NeckAnalysis |
| 36 | |
| 37 | /-- Spatial smoothness is preserved on the actual smaller cylinder. -/ |
| 38 | theorem RoundCylinderTensorSmoothOn.mono_epsilon_m28 {epsilon eta : ℝ} |
| 39 | {B : RoundCylinderTwoTensor} (hB : RoundCylinderTensorSmoothOn epsilon B) |
| 40 | (hepsilon : 0 < epsilon) (h : epsilon ≤ eta) : |
| 41 | RoundCylinderTensorSmoothOn eta B := by |
| 42 | intro q a b |
| 43 | apply (hB q a b).mono |
| 44 | exact Set.prod_mono_right (cylinderStrip_mono hepsilon h) |
| 45 | |
| 46 | /-- The frozen strict metric comparison restricts with unchanged total |
| 47 | tensor and unchanged uniform bound. -/ |
| 48 | theorem RoundCylinderClose.mono_epsilon_m28 {epsilon eta u : ℝ} |
| 49 | {B : RoundCylinderTwoTensor} (hB : RoundCylinderClose epsilon u B) |
| 50 | (hepsilon : 0 < epsilon) (h : epsilon ≤ eta) (hu : u < 1) : |
| 51 | RoundCylinderClose eta u B := by |
| 52 | rcases hB with ⟨hsmooth, bound, hbound, hjet⟩ |
| 53 | refine ⟨hsmooth.mono_epsilon_m28 hepsilon h, bound, |
| 54 | hbound.trans_le (sq_le_sq₀ hepsilon.le (hepsilon.le.trans h) |>.mpr h), ?_⟩ |
| 55 | intro z hz |
| 56 | exact (roundCylinderJetErrorSquared_mono_order hu B |
| 57 | (cylinderOrder_mono hepsilon h) z).trans (hjet z (cylinderStrip_mono hepsilon h hz)) |
| 58 | |
| 59 | /-- A family comparison restricts in epsilon and time, retaining one |
| 60 | uniform bound for all retained space-time points. -/ |
| 61 | theorem RoundCylinderFamilyClose.mono {epsilon eta : ℝ} {I J : Set ℝ} |
| 62 | {B : ℝ → RoundCylinderTwoTensor} (hB : RoundCylinderFamilyClose epsilon I B) |
| 63 | (hepsilon : 0 < epsilon) (h : epsilon ≤ eta) (hJI : J ⊆ I) |
| 64 | (hJ : ∀ u ∈ J, u < 1) : RoundCylinderFamilyClose eta J B := by |
| 65 | rcases hB with ⟨hsmooth, bound, hbound, hjet⟩ |
| 66 | refine ⟨fun u hu => (hsmooth u (hJI hu)).mono_epsilon_m28 hepsilon h, bound, |
| 67 | hbound.trans_le (sq_le_sq₀ hepsilon.le (hepsilon.le.trans h) |>.mpr h), ?_⟩ |
| 68 | intro u hu z hz |
| 69 | exact (roundCylinderJetErrorSquared_mono_order (hJ u hu) (B u) |
| 70 | (cylinderOrder_mono hepsilon h) z).trans |
| 71 | (hjet u (hJI hu) z (cylinderStrip_mono hepsilon h hz)) |
| 72 | |
| 73 | /-- A fixed epsilon gap supplies one positive perturbation tolerance before |
| 74 | the model time and tensors. The input controls the difference of actual |
| 75 | error jets on the retained strip, through exactly the retained order. -/ |
| 76 | theorem exists_roundCylinderClose_perturbation_tolerance {epsilon eta : ℝ} |
| 77 | (hepsilon : 0 < epsilon) (heta : epsilon < eta) : |
| 78 | ∃ delta : ℝ, 0 < delta ∧ ∀ (u : ℝ), u < 1 → |
| 79 | ∀ (B C : RoundCylinderTwoTensor), RoundCylinderClose epsilon u C → |
| 80 | RoundCylinderTensorSmoothOn eta B → |
| 81 | (∀ z : RoundCylinderSpace, z.2 ∈ Ioo (-eta⁻¹) eta⁻¹ → |
| 82 | cylinderJetDifferenceSquared u B C ⌊eta⁻¹⌋₊ z ≤ delta) → |
| 83 | RoundCylinderClose eta u B := by |
| 84 | have hsquare : epsilon ^ 2 < eta ^ 2 := |
| 85 | (sq_lt_sq₀ hepsilon.le (hepsilon.trans heta).le).mpr heta |
| 86 | obtain ⟨theta, htheta, hgap⟩ := exists_pos_mul_lt (sub_pos.mpr hsquare) (epsilon ^ 2) |
| 87 | have hremaining : 0 < eta ^ 2 - (1 + theta) * epsilon ^ 2 := by nlinarith |
| 88 | obtain ⟨delta, hdelta, hbudget⟩ := exists_pos_mul_lt hremaining (1 + theta⁻¹) |
| 89 | refine ⟨delta, hdelta, ?_⟩ |
| 90 | intro u hu B C hC hB hdifference |
| 91 | rcases hC with ⟨_, bound, hbound, hjet⟩ |
| 92 | refine ⟨hB, (1 + theta) * bound + (1 + theta⁻¹) * delta, ?_, ?_⟩ |
| 93 | · have hweighted := mul_lt_mul_of_pos_left hbound (show 0 < 1 + theta by linarith) |
| 94 | linarith |
| 95 | · intro z hz |
| 96 | apply (roundCylinderJetErrorSquared_perturbation hu B C ⌊eta⁻¹⌋₊ z htheta).trans |
| 97 | apply add_le_add |
| 98 | · apply mul_le_mul_of_nonneg_left _ (by linarith) |
| 99 | exact (roundCylinderJetErrorSquared_mono_order hu C |
| 100 | (cylinderOrder_mono hepsilon heta.le) z).trans |
| 101 | (hjet z (cylinderStrip_mono hepsilon heta.le hz)) |
| 102 | · exact mul_le_mul_of_nonneg_left (hdifference z hz) (by positivity) |
| 103 | |
| 104 | end PoincareMT |