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.Transport.TransportedCapBall |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.CurvatureRadius |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialNormalization |
| 5 | |
| 6 | /-! |
| 7 | # Every fixed normalized ambient ball is retained |
| 8 | |
| 9 | Morgan-Tian Theorem 12.32, pp. 326-327. Completeness of the actual |
| 10 | limit gives a compact larger ball. The genuine cylinder inverse then |
| 11 | retains the entire normalized ambient ball with one common index. This |
| 12 | allows moving points of a true radial collar to use the selected jets. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 20 | |
| 21 | namespace PoincareMT.M35.OrdinaryRealization |
| 22 | |
| 23 | /-- Theorem 12.32: every fixed normalized ambient ball lies in the |
| 24 | selected image of the limit ball of twice its radius. -/ |
| 25 | theorem blowupSequence_normalized_ball_retained |
| 26 | (P : M35StandardCapPredecessors) |
| 27 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 28 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 29 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 30 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 31 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 32 | (blowupBackwardInterval ⊤)) {r : ℝ} (hr : 0 < r) : |
| 33 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 34 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.limit.carrier.carrier := |
| 35 | L.limit.carrier.chartedSpace |
| 36 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 37 | ∀ᶠ k in atTop, |
| 38 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 39 | let hQ := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 40 | let G : RiemannianMetric 3 StandardCapSpace := |
| 41 | M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence k))) Q hQ |
| 42 | let phi : L.limit.sliceCarrier.carrier → StandardCapSpace := |
| 43 | fun z => ((L.embedding k).forward 0 |
| 44 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 45 | G.ball (x (L.subsequence k)) r ⊆ |
| 46 | phi '' (L.limit.flow.metric 0).ball L.limit.base (2 * r) := by |
| 47 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 48 | let : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.limit.carrier.carrier := |
| 49 | L.limit.carrier.chartedSpace |
| 50 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 51 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 52 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 53 | let g := L.limit.flow.metric 0 |
| 54 | let K : Set L.limit.sliceCarrier.carrier := closure (g.ball L.limit.base (3 * r)) |
| 55 | have hK : IsCompact K := Proofs.M09.isCompact_closure_metric_ball g |
| 56 | (L.limit.complete 0 L.limit.zero_mem) L.limit.base (3 * r) |
| 57 | obtain ⟨j, hj⟩ := hK.elim_directed_cover L.exhaustion.space L.exhaustion.space_open |
| 58 | (fun z _ => by rw [L.exhaustion.space_covers]; exact mem_univ z) |
| 59 | (fun i j => ⟨max i j, L.exhaustion.space_increasing (le_max_left _ _), |
| 60 | L.exhaustion.space_increasing (le_max_right _ _)⟩) |
| 61 | have hball : closure (g.ball L.limit.base (2 * r)) ⊆ interior K := by |
| 62 | let : MetricSpace L.limit.carrier.carrier := Proofs.M09.selectedMetricSpace g |
| 63 | have hopen : IsOpen (g.ball L.limit.base (3 * r)) := by |
| 64 | change IsOpen {z | edist L.limit.base z < ENNReal.ofReal (3 * r)} |
| 65 | exact isOpen_lt (continuous_const.edist continuous_id) continuous_const |
| 66 | have hinner : g.ball L.limit.base (3 * r) ⊆ interior K := |
| 67 | hopen.subset_interior_iff.mpr subset_closure |
| 68 | apply Subset.trans _ hinner |
| 69 | rw [riemannian_closure_ball g L.limit.base (by positivity : 0 < 2 * r)] |
| 70 | intro z hz |
| 71 | change g.edist L.limit.base z < ENNReal.ofReal (3 * r) |
| 72 | rw [← Proofs.M09.selectedMetricSpace_edist g, edist_dist, dist_comm, |
| 73 | ENNReal.ofReal_lt_ofReal_iff (by positivity : 0 < 3 * r)] |
| 74 | exact (Metric.mem_closedBall.mp hz).trans_lt (by linarith only [hr]) |
| 75 | obtain ⟨N, _hjN, hretain⟩ := blowupSequence_ball_retention |
| 76 | P E t x ht hR L j K hK hj (by norm_num : (0 : ℝ) < 1 / 2) (by norm_num) |
| 77 | filter_upwards [eventually_ge_atTop N] with k hk |
| 78 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 79 | have hQ : 0 < Q := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 80 | let gk := E.flow.metric (t (L.subsequence k)) |
| 81 | let G : RiemannianMetric 3 StandardCapSpace := M13.scaleSmoothMetric gk Q hQ |
| 82 | let phi (z : L.limit.sliceCarrier.carrier) := ((L.embedding k).forward 0 |
| 83 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 84 | have hbase : phi L.limit.base = x (L.subsequence k) := |
| 85 | congrArg (fun p : (generalizedFlow E.flow.base.flow).point => p.2.val) |
| 86 | (L.base_preserving k _) |
| 87 | have hscaled := M13.homothety_ball_image gk G |
| 88 | (Diffeomorph.refl (𝓡 3) StandardCapSpace ∞) Q hQ |
| 89 | (M13.identity_metricHomothety gk Q hQ) (x (L.subsequence k)) (r / Real.sqrt Q) |
| 90 | have hroot : Real.sqrt Q ≠ 0 := (Real.sqrt_pos.mpr hQ).ne' |
| 91 | have hradius : Real.sqrt Q * (r / Real.sqrt Q) = r := by field_simp |
| 92 | change id '' gk.ball (x (L.subsequence k)) (r / Real.sqrt Q) = |
| 93 | G.ball (x (L.subsequence k)) (Real.sqrt Q * (r / Real.sqrt Q)) at hscaled |
| 94 | rw [image_id, hradius] at hscaled |
| 95 | have hsmall : r / Real.sqrt Q ≤ 2 * r / Real.sqrt (Q / (1 - 1 / 2)) := by |
| 96 | rw [show Q / (1 - 1 / 2) = 2 * Q by ring, |
| 97 | Real.sqrt_mul (by norm_num : (0 : ℝ) ≤ 2)] |
| 98 | apply (div_le_div_iff₀ (Real.sqrt_pos.mpr hQ) |
| 99 | (mul_pos (Real.sqrt_pos.mpr (by norm_num : (0 : ℝ) < 2)) |
| 100 | (Real.sqrt_pos.mpr hQ))).mpr |
| 101 | have htwo : Real.sqrt 2 ≤ 2 := by |
| 102 | nlinarith [Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 2), Real.sqrt_nonneg 2] |
| 103 | nlinarith only [mul_le_mul_of_nonneg_right htwo (mul_nonneg hr.le (Real.sqrt_nonneg Q))] |
| 104 | change G.ball (x (L.subsequence k)) r ⊆ phi '' g.ball L.limit.base (2 * r) |
| 105 | intro y hy |
| 106 | apply hretain k hk L.limit.base (2 * r) (by positivity) hball |
| 107 | change y ∈ gk.ball (phi L.limit.base) (2 * r / Real.sqrt (Q / (1 - 1 / 2))) |
| 108 | rw [hbase] |
| 109 | have hy' : y ∈ gk.ball (x (L.subsequence k)) (r / Real.sqrt Q) := by |
| 110 | rw [hscaled] |
| 111 | exact hy |
| 112 | exact hy'.trans_le (ENNReal.ofReal_le_ofReal hsmall) |
| 113 | |
| 114 | end PoincareMT.M35.OrdinaryRealization |