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.InitialAxialJets |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.InitialAxialScale |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.InitialClockScalar |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.UniquenessData |
| 6 | |
| 7 | /-! |
| 8 | # Full initial-neck comparison at the actual center scalar |
| 9 | |
| 10 | Morgan-Tian Theorem 12.32, pp. 326-327. The original fixed spatial |
| 11 | patch is shortened and axially rescaled once. Compactness of original |
| 12 | center times, normalized clock times and the closed axial interval |
| 13 | turns the actual moving-point jet limit into one strict frozen bound. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | namespace PoincareMT.M35 |
| 23 | |
| 24 | local notation "V" => StandardCapSpace |
| 25 | |
| 26 | /-- The actual shortened original patch with its literal scalar |
| 27 | normalization and the entire initial backward time interval. -/ |
| 28 | def InitialNormalizedPatchComparison {g₀ : StandardInitialMetric} |
| 29 | (E : RepairedStandardCapExistenceData g₀) (t epsilon : ℝ) (he : 0 < epsilon) |
| 30 | {d : ℝ} {x : V} (N : StandardCylinderPatch d⁻¹ x) : Prop := |
| 31 | let Q := (E.flow.connection t).scalarCurvature x |
| 32 | let c := (Real.sqrt Q)⁻¹ |
| 33 | ∃ hc : 0 < c, c < 2 ∧ ∃ hcl : c * epsilon⁻¹ ≤ d⁻¹, |
| 34 | StandardSpacetimeCylinderClose E.atlas E.flow.metric epsilon t Q (Icc (-t * Q) 0) |
| 35 | (N.axialRescale c epsilon⁻¹ hc (inv_pos.mpr he) hcl) |
| 36 | |
| 37 | /-- A single original comparison accuracy gives the full actual |
| 38 | initial normalized neck for every center time in the closed slab. -/ |
| 39 | theorem exists_initial_normalized_patch_comparison {g₀ : StandardInitialMetric} |
| 40 | (E : RepairedStandardCapExistenceData g₀) {theta epsilon : ℝ} |
| 41 | (htheta : theta ∈ Ico 0 E.flow.base.lifetime) (he : 0 < epsilon) : |
| 42 | ∃ delta : ℝ, 0 < delta ∧ ∀ d : ℝ, 0 < d → d ≤ delta → |
| 43 | ∀ (x : V) (N : StandardCylinderPatch d⁻¹ x), |
| 44 | StandardSpacetimeCylinderClose E.atlas E.flow.metric d 0 1 (Icc 0 theta) N → |
| 45 | ∀ t ∈ Icc 0 theta, InitialNormalizedPatchComparison E t epsilon he N := by |
| 46 | classical |
| 47 | have htone : theta < 1 := E.lifetime_one ▸ htheta.2 |
| 48 | obtain ⟨dscale, hdscale, hscale⟩ := exists_initial_axial_scale_control htone he |
| 49 | by_contra hnone |
| 50 | push Not at hnone |
| 51 | choose d hd hdmax x N hfamily t ht hbad using fun k : ℕ => |
| 52 | hnone (min dscale (1 / ((k : ℝ) + 1))) (lt_min hdscale (by positivity)) |
| 53 | let Q (k : ℕ) := (E.flow.connection (t k)).scalarCurvature (x k) |
| 54 | let c (k : ℕ) := (Real.sqrt (Q k))⁻¹ |
| 55 | have hfamily' (k : ℕ) : RoundCylinderFamilyClose (d k) (Icc 0 theta) |
| 56 | (fun v => roundCylinderPullback (E.flow.metric v) (N k).coordinate) := by |
| 57 | simpa only [StandardSpacetimeCylinderClose, div_one, zero_add, one_mul] using hfamily k |
| 58 | have hstatic (k : ℕ) {v : ℝ} (hv : v ∈ Icc 0 theta) : |
| 59 | RoundCylinderClose (d k) v (roundCylinderPullback (E.flow.metric v) (N k).coordinate) := |
| 60 | ⟨(hfamily' k).1 v hv, (hfamily' k).2.choose, (hfamily' k).2.choose_spec.1, |
| 61 | (hfamily' k).2.choose_spec.2 v hv⟩ |
| 62 | have hcontrols (k : ℕ) := hscale (d k) (hd k) |
| 63 | ((hdmax k).trans (min_le_left _ _)) (t k) (ht k) |
| 64 | (E.flow.metric (t k)) (E.flow.connection (t k)) (x k) (N k) (hstatic k (ht k)) |
| 65 | have hQlo (k : ℕ) : 1 / 2 < Q k := (hcontrols k).1 |
| 66 | have hQhi (k : ℕ) : Q k < 3 / (2 * (1 - theta)) := (hcontrols k).2.1 |
| 67 | have hQ (k : ℕ) : 0 < Q k := (by norm_num : (0 : ℝ) < 1 / 2).trans (hQlo k) |
| 68 | have hc (k : ℕ) : 0 < c k := (hcontrols k).2.2.1 |
| 69 | have hcsmall (k : ℕ) : c k < 2 := (hcontrols k).2.2.2.1 |
| 70 | have hcl (k : ℕ) : c k * epsilon⁻¹ ≤ (d k)⁻¹ := (hcontrols k).2.2.2.2.1 |
| 71 | have hdegree (k : ℕ) : ⌊epsilon⁻¹⌋₊ ≤ ⌊(d k)⁻¹⌋₊ := (hcontrols k).2.2.2.2.2 |
| 72 | let M k := (N k).axialRescale (c k) epsilon⁻¹ (hc k) (inv_pos.mpr he) (hcl k) |
| 73 | let B (k : ℕ) (u : ℝ) : RoundCylinderTwoTensor := fun z a b => Q k * |
| 74 | roundCylinderPullback (E.flow.metric (t k + u / Q k)) (M k).coordinate z a b |
| 75 | have hbadpoint (k : ℕ) : ∃ u ∈ Icc (-t k * Q k) 0, |
| 76 | ∃ z : RoundCylinderSpace, z.2 ∈ Ioo (-epsilon⁻¹) epsilon⁻¹ ∧ |
| 77 | epsilon ^ 2 / 2 < roundCylinderJetErrorSquared u (B k u) ⌊epsilon⁻¹⌋₊ z := by |
| 78 | by_contra hn |
| 79 | push Not at hn |
| 80 | apply hbad k |
| 81 | refine ⟨hc k, hcsmall k, hcl k, ?_, epsilon ^ 2 / 2, |
| 82 | by nlinarith only [sq_pos_of_pos he], ?_⟩ |
| 83 | · intro u _hu |
| 84 | exact roundCylinderPullback_scaled_smoothOn _ (M k).coordinate epsilon |
| 85 | (Q k) (M k).coordinate_smooth |
| 86 | · exact hn |
| 87 | choose u hu z hz herror using hbadpoint |
| 88 | let H := 3 / (2 * (1 - theta)) |
| 89 | have hucompact (k : ℕ) : u k ∈ Icc (-theta * H) 0 := by |
| 90 | have hprod : t k * Q k ≤ theta * H := |
| 91 | mul_le_mul (ht k).2 (hQhi k).le (hQ k).le htheta.1 |
| 92 | exact ⟨by linarith only [hprod, (hu k).1], (hu k).2⟩ |
| 93 | have hzcompact (k : ℕ) : (z k).2 ∈ Icc (-epsilon⁻¹) epsilon⁻¹ := |
| 94 | ⟨(hz k).1.le, (hz k).2.le⟩ |
| 95 | obtain ⟨p₀, hp₀, phi, hphi, hlim⟩ := |
| 96 | (isCompact_Icc.prod (isCompact_Icc.prod isCompact_Icc)).tendsto_subseq |
| 97 | (fun k => show (t k, u k, (z k).2) ∈ |
| 98 | Icc 0 theta ×ˢ (Icc (-theta * H) 0 ×ˢ Icc (-epsilon⁻¹) epsilon⁻¹) from |
| 99 | ⟨ht k, hucompact k, hzcompact k⟩) |
| 100 | have htlim : Tendsto (t ∘ phi) atTop (𝓝 p₀.1) := |
| 101 | (continuous_fst.tendsto p₀).comp hlim |
| 102 | have hulim : Tendsto (u ∘ phi) atTop (𝓝 p₀.2.1) := |
| 103 | ((continuous_fst.comp continuous_snd).tendsto p₀).comp hlim |
| 104 | have hslim : Tendsto (fun k => (z (phi k)).2) atTop (𝓝 p₀.2.2) := |
| 105 | ((continuous_snd.comp continuous_snd).tendsto p₀).comp hlim |
| 106 | have hdlim : Tendsto d atTop (𝓝 0) := |
| 107 | squeeze_zero (fun k => (hd k).le) |
| 108 | (fun k => (hdmax k).trans (min_le_right _ _)) |
| 109 | tendsto_one_div_add_atTop_nhds_zero_nat |
| 110 | have hnormal := initial_cylinder_center_normalization_tendsto htone d t |
| 111 | (fun k => E.flow.metric (t k)) (fun k => E.flow.connection (t k)) x N hd ht |
| 112 | (fun k => hstatic k (ht k)) hdlim |
| 113 | have hQlim : Tendsto (Q ∘ phi) atTop (𝓝 (1 / (1 - p₀.1))) := |
| 114 | initial_cylinder_center_scalar_tendsto htone (d ∘ phi) (t ∘ phi) |
| 115 | (fun k => E.flow.metric (t (phi k))) (fun k => E.flow.connection (t (phi k))) |
| 116 | (x ∘ phi) (fun k => N (phi k)) (fun k => hd (phi k)) (fun k => ht (phi k)) |
| 117 | (fun k => hstatic (phi k) (ht (phi k))) (hdlim.comp hphi.tendsto_atTop) |
| 118 | (hp₀.1.2.trans_lt htone) htlim |
| 119 | have hclim : Tendsto (c ∘ phi) atTop |
| 120 | (𝓝 ((Real.sqrt (1 / (1 - p₀.1)))⁻¹)) := |
| 121 | ((Real.continuous_sqrt.tendsto _).comp hQlim).inv₀ |
| 122 | (Real.sqrt_pos.mpr (one_div_pos.mpr (sub_pos.mpr (hp₀.1.2.trans_lt htone)))).ne' |
| 123 | let v (k : ℕ) := t k + u k / Q k |
| 124 | have hv (k : ℕ) : v k ∈ Icc 0 theta := (initial_affine_clock (ht k) (hQ k) (hu k)).1 |
| 125 | have hunit (k : ℕ) : Q k * c k ^ 2 = 1 := by |
| 126 | dsimp only [c] |
| 127 | rw [inv_pow, Real.sq_sqrt (hQ k).le, mul_inv_cancel₀ (hQ k).ne'] |
| 128 | have hclockerror : Tendsto (fun k => Q (phi k) * (1 - v (phi k)) - |
| 129 | (1 - u (phi k))) atTop (𝓝 0) := by |
| 130 | have hh := (hnormal.comp hphi.tendsto_atTop).sub_const 1 |
| 131 | simp only [sub_self] at hh |
| 132 | apply hh.congr' |
| 133 | exact Eventually.of_forall fun k => |
| 134 | (initial_affine_clock (ht (phi k)) (hQ (phi k)) (hu (phi k))).2.symm |
| 135 | have hjet := initial_axial_jetError_tendsto_zero (d ∘ phi) (u ∘ phi) (v ∘ phi) |
| 136 | (Q ∘ phi) (c ∘ phi) (fun k => (z (phi k)).2) |
| 137 | (fun k => E.flow.metric (v (phi k))) (x ∘ phi) (fun k => N (phi k)) epsilon he |
| 138 | (fun k => hc (phi k)) (fun k => hcl (phi k)) (fun k => (z (phi k)).1) |
| 139 | ⌊epsilon⁻¹⌋₊ (fun k => hd (phi k)) |
| 140 | (fun k => (by norm_num : (-1 : ℝ) ≤ 0).trans (hv (phi k)).1) |
| 141 | (fun k => (hv (phi k)).2.trans_lt htone) (fun k => hz (phi k)) |
| 142 | (fun k => hstatic (phi k) (hv (phi k))) (fun k => hdegree (phi k)) |
| 143 | (fun k => hunit (phi k)) (fun k => (hu (phi k)).2.trans_lt zero_lt_one) |
| 144 | (hp₀.2.1.2.trans_lt zero_lt_one) (hdlim.comp hphi.tendsto_atTop) hulim hQlim hclim |
| 145 | hslim hclockerror |
| 146 | obtain ⟨k, hk⟩ := (hjet.eventually |
| 147 | (eventually_lt_nhds (by positivity : (0 : ℝ) < epsilon ^ 2 / 2))).exists |
| 148 | exact (not_lt_of_ge (herror (phi k)).le) hk |
| 149 | |
| 150 | end PoincareMT.M35 |