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.MetricConvergence |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.GeometricLimit.BoundaryCoverage |
| 3 | |
| 4 | /-! |
| 5 | # Source-ball coverage below the partial cutoff |
| 6 | |
| 7 | Morgan--Tian Theorem 5.6 and Section 5.1, pp. 85-89. Boundary control below |
| 8 | a fixed spatial cutoff gives coverage by a fixed compact exhaustion stage. |
| 9 | This is the static counterpart of M07's |
| 10 | `SmoothSpacetimeEmbedding.ball_subset_spatial_image_of_boundary_avoided`. |
| 11 | It uses the actual partial-limit maps and does not assert completeness. |
| 12 | See the independently reviewed M30 partial-boundary-coverage derivation. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Topology ENNReal Bundle |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M30.PartialPointedMetricConvergence |
| 23 | |
| 24 | /-- Escape at a single radius gives coverage of that source ball by one |
| 25 | fixed exhaustion stage (Theorem 5.9, pp. 88--89). The sources may be |
| 26 | incomplete or disconnected. -/ |
| 27 | theorem source_ball_coverage_of_boundary_control |
| 28 | {n : ℕ} {M : ℕ → Type u} [∀ k, TopologicalSpace (M k)] |
| 29 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin n)) (M k)] |
| 30 | [∀ k, IsManifold (𝓡 n) ∞ (M k)] [∀ k, T2Space (M k)] |
| 31 | {g : ∀ k, RiemannianMetric n (M k)} {p : ∀ k, M k} {A : ℝ} |
| 32 | (G : PartialPointedMetricConvergence g p A) {R : ℝ} (hR : 0 < R) |
| 33 | (hboundary : letI := G.limitCarrier.topologicalSpace |
| 34 | ∃ l : ℕ, ∀ᶠ j in atTop, ∀ q ∈ frontier (G.exhaustion l), |
| 35 | ENNReal.ofReal R ≤ (g (G.subsequence j)).edist |
| 36 | (p (G.subsequence j)) (G.embedding j q)) : |
| 37 | ∃ l : ℕ, ∀ᶠ j in atTop, |
| 38 | (g (G.subsequence j)).ball (p (G.subsequence j)) R ⊆ |
| 39 | G.embedding j '' G.exhaustion l := by |
| 40 | let : TopologicalSpace G.limitCarrier.carrier := G.limitCarrier.topologicalSpace |
| 41 | let : ChartedSpace (EuclideanSpace ℝ (Fin n)) G.limitCarrier.carrier := |
| 42 | G.limitCarrier.chartedSpace |
| 43 | have hmono : Monotone G.exhaustion := monotone_nat_of_le_succ |
| 44 | (fun i => subset_closure.trans (G.exhaustion_step i)) |
| 45 | obtain ⟨l, hboundary⟩ := hboundary |
| 46 | refine ⟨l, ?_⟩ |
| 47 | filter_upwards [hboundary, eventually_ge_atTop (l + 1)] with j hj hlj |
| 48 | have hbuffer : closure (G.exhaustion l) ⊆ G.exhaustion j := |
| 49 | (G.exhaustion_step l).trans (hmono hlj) |
| 50 | let f := G.embedding j |
| 51 | have himage : f '' G.exhaustion l = |
| 52 | (fun x : G.exhaustion j => f x) '' |
| 53 | ((Subtype.val : G.exhaustion j → G.limitCarrier.carrier) ⁻¹' G.exhaustion l) := by |
| 54 | ext y |
| 55 | constructor |
| 56 | · rintro ⟨x, hx, hxy⟩ |
| 57 | exact ⟨⟨x, hbuffer (subset_closure hx)⟩, hx, hxy⟩ |
| 58 | · rintro ⟨x, hx, hxy⟩ |
| 59 | exact ⟨x.val, hx, hxy⟩ |
| 60 | have hopen : IsOpen (f '' G.exhaustion l) := by |
| 61 | rw [himage] |
| 62 | exact (G.embedding_open j).isOpenMap _ |
| 63 | ((G.exhaustion_open l).preimage continuous_subtype_val) |
| 64 | have hcontinuous : ContinuousOn f (closure (G.exhaustion l)) := by |
| 65 | intro x hx |
| 66 | exact (G.embedding_smooth j ⟨x, hbuffer hx⟩).contMDiffAt.continuousAt.continuousWithinAt |
| 67 | have hclosed : IsClosed (f '' closure (G.exhaustion l)) := |
| 68 | ((G.exhaustion_compactClosure l).image_of_continuousOn hcontinuous).isClosed |
| 69 | have hclosure : closure (f '' G.exhaustion l) ⊆ f '' closure (G.exhaustion l) := |
| 70 | closure_minimal (image_mono subset_closure) hclosed |
| 71 | apply IsPreconnected.subset_of_closure_inter_subset |
| 72 | ((g (G.subsequence j)).isPreconnected_ball (p (G.subsequence j)) R) hopen |
| 73 | · refine ⟨p (G.subsequence j), ?_, G.base, G.base_in_exhaustion l, |
| 74 | G.base_preserving j⟩ |
| 75 | change (g (G.subsequence j)).edist (p (G.subsequence j)) (p (G.subsequence j)) < |
| 76 | ENNReal.ofReal R |
| 77 | have hself : (g (G.subsequence j)).edist |
| 78 | (p (G.subsequence j)) (p (G.subsequence j)) = 0 := by |
| 79 | let : Bundle.RiemannianBundle |
| 80 | (TangentSpace (𝓡 n) : M (G.subsequence j) → Type _) := |
| 81 | ⟨(g (G.subsequence j)).toRiemannianMetric⟩ |
| 82 | exact Manifold.riemannianEDist_self |
| 83 | rw [hself] |
| 84 | exact ENNReal.ofReal_pos.mpr hR |
| 85 | · rintro y ⟨hyclosure, hyball⟩ |
| 86 | obtain ⟨x, hx, rfl⟩ := hclosure hyclosure |
| 87 | have hxV : x ∈ G.exhaustion l := by |
| 88 | by_contra hxV |
| 89 | have hfront : x ∈ frontier (G.exhaustion l) := by |
| 90 | rw [frontier, (G.exhaustion_open l).interior_eq] |
| 91 | exact ⟨hx, hxV⟩ |
| 92 | exact (not_lt_of_ge (hj x hfront)) hyball |
| 93 | exact mem_image_of_mem f hxV |
| 94 | |
| 95 | /-- Every source ball strictly below the partial cutoff is eventually |
| 96 | covered by one fixed exhaustion stage (Theorem 5.6, pp. 85--87). The sources |
| 97 | may be incomplete or disconnected; no conclusion at the cutoff is claimed. -/ |
| 98 | theorem source_ball_coverage |
| 99 | {n : ℕ} {M : ℕ → Type u} [∀ k, TopologicalSpace (M k)] |
| 100 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin n)) (M k)] |
| 101 | [∀ k, IsManifold (𝓡 n) ∞ (M k)] [∀ k, T2Space (M k)] |
| 102 | {g : ∀ k, RiemannianMetric n (M k)} {p : ∀ k, M k} {A : ℝ} |
| 103 | (G : PartialPointedMetricConvergence g p A) {R : ℝ} (hR : 0 < R) (hRA : R < A) : |
| 104 | ∃ l : ℕ, ∀ᶠ j in atTop, |
| 105 | (g (G.subsequence j)).ball (p (G.subsequence j)) R ⊆ |
| 106 | G.embedding j '' G.exhaustion l := |
| 107 | G.source_ball_coverage_of_boundary_control hR (G.boundary_control R hRA) |
| 108 | |
| 109 | end PoincareMT.M30.PartialPointedMetricConvergence |