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.Blowup.Construction.PartialLimits.CompactBalls |
| 2 | import PoincareLib.Topology.MetricSpace.Completeness |
| 3 | |
| 4 | /-! |
| 5 | # Completeness from all-radius source coverage |
| 6 | |
| 7 | Morgan--Tian Theorem 5.9 and Corollary 5.10, pp. 88--89. The retained |
| 8 | spatial maps and fixed-stage coverage at every radius confine each limit |
| 9 | ball to a compact exhaustion stage. No common flow interval is involved. |
| 10 | See the complete-static-coordinate-limit derivation for the construction. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M30.PartialPointedMetricConvergence |
| 22 | |
| 23 | /-- All-radius source coverage makes the actual terminal metric complete |
| 24 | (Theorem 5.9, pp. 88--89), without completeness of the approximating metrics. -/ |
| 25 | theorem metricComplete_of_source_ball_coverage |
| 26 | {n : ℕ} {M : ℕ → Type u} [∀ k, TopologicalSpace (M k)] |
| 27 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin n)) (M k)] |
| 28 | [∀ k, IsManifold (𝓡 n) ∞ (M k)] |
| 29 | {g : ∀ k, RiemannianMetric n (M k)} {p : ∀ k, M k} {A : ℝ} |
| 30 | (G : PartialPointedMetricConvergence g p A) |
| 31 | (hcover : ∀ R : ℝ, 0 < R → ∃ l : ℕ, ∀ᶠ k in atTop, |
| 32 | (g (G.subsequence k)).ball (p (G.subsequence k)) R ⊆ |
| 33 | G.embedding k '' G.exhaustion l) : |
| 34 | G.limitCarrier.metricComplete G.limitMetric := by |
| 35 | let : TopologicalSpace G.limitCarrier.carrier := G.limitCarrier.topologicalSpace |
| 36 | let : ChartedSpace (EuclideanSpace ℝ (Fin n)) G.limitCarrier.carrier := |
| 37 | G.limitCarrier.chartedSpace |
| 38 | let : IsManifold (𝓡 n) ∞ G.limitCarrier.carrier := G.limitCarrier.isManifold |
| 39 | let : EMetricSpace G.limitCarrier.carrier := |
| 40 | G.limitCarrier.metricEMetricSpace G.limitMetric |
| 41 | let : PreconnectedSpace G.limitCarrier.carrier := |
| 42 | FlowCarrier.preconnected_metricEMetricSpace G.limitCarrier G.limitMetric |
| 43 | have hcompact (R : ℝ) (hR : 0 < R) : |
| 44 | IsCompact (closure (G.limitMetric.ball G.base R)) := by |
| 45 | obtain ⟨l, hl⟩ := hcover (2 * R) (by positivity) |
| 46 | exact (G.exhaustion_compactClosure l).of_isClosed_subset isClosed_closure |
| 47 | (closure_mono (G.ball_subset_exhaustion_of_source_ball_coverage hl)) |
| 48 | change CompleteSpace G.limitCarrier.carrier |
| 49 | apply EMetric.complete_of_cauchySeq_tendsto |
| 50 | intro s hs |
| 51 | obtain ⟨N, hN⟩ := EMetric.cauchySeq_iff'.mp hs 1 zero_lt_one |
| 52 | let d := edist (s N) G.base |
| 53 | have hd : d ≠ ⊤ := Poincare.edist_ne_top_of_preconnected _ _ |
| 54 | let R : ℝ := d.toReal + 2 |
| 55 | have hR : 0 < R := by dsimp [R]; positivity |
| 56 | have htail : ∀ᶠ k in atTop, s k ∈ closure (G.limitMetric.ball G.base R) := by |
| 57 | filter_upwards [eventually_ge_atTop N] with k hk |
| 58 | apply subset_closure |
| 59 | change edist G.base (s k) < ENNReal.ofReal R |
| 60 | rw [edist_comm] |
| 61 | calc |
| 62 | edist (s k) G.base ≤ edist (s k) (s N) + d := edist_triangle _ _ _ |
| 63 | _ < 1 + d := ENNReal.add_lt_add_right hd (hN k hk) |
| 64 | _ ≤ ENNReal.ofReal R := by |
| 65 | dsimp [R] |
| 66 | rw [ENNReal.ofReal_add ENNReal.toReal_nonneg (by norm_num), |
| 67 | ENNReal.ofReal_toReal hd] |
| 68 | norm_num |
| 69 | simpa only [add_comm d] using |
| 70 | add_le_add_left (by norm_num : (1 : ℝ≥0∞) ≤ 2) d |
| 71 | obtain ⟨x, _, hx⟩ := (hcompact R hR).isComplete (map s atTop) hs |
| 72 | (le_principal_iff.mpr htail) |
| 73 | exact ⟨x, hx⟩ |
| 74 | |
| 75 | end PoincareMT.M30.PartialPointedMetricConvergence |