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.PartialLimits.RegularSets.CompactStageRegularity |
| 3 | |
| 4 | /-! |
| 5 | # One fixed stage captures uniformly regular source paths |
| 6 | |
| 7 | A path starts in a fixed stage image and stays uniformly regular. |
| 8 | Compact-stage base-component control and connectedness place the whole |
| 9 | path in a single regular base component before applying coverage. |
| 10 | Source: Morgan--Tian Theorem 5.6 and Proposition 10.7, pp. 85-87 and |
| 11 | 253-254; M28 derivation 92, varying sphere endpoint audit. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M28.RegularPointedMetricConvergence |
| 22 | |
| 23 | variable {M : ℕ → Type u} [∀ k, TopologicalSpace (M k)] [∀ k, T2Space (M k)] |
| 24 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin 3)) (M k)] |
| 25 | [∀ k, IsManifold (𝓡 3) ∞ (M k)] |
| 26 | {g : ∀ k, RiemannianMetric 3 (M k)} {p : ∀ k, M k} |
| 27 | |
| 28 | /-- The exhaustion stage and eventual tail precede every tested path and |
| 29 | its possibly varying start point in the fixed original stage. |
| 30 | Source: Theorem 5.6 and Proposition 10.7; M28 derivation 92. -/ |
| 31 | theorem exists_eventually_regular_path_capture |
| 32 | (G : RegularPointedMetricConvergence g p) : |
| 33 | letI := G.limitCarrier.topologicalSpace |
| 34 | ∀ (j : ℕ) (delta : ℝ), 0 < delta → |
| 35 | ∃ ell : ℕ, ∀ᶠ k in atTop, ell ≤ k ∧ |
| 36 | ∀ (gamma : ℝ → M (G.subsequence k)) (a b : ℝ), a ≤ b → |
| 37 | ContinuousOn gamma (Icc a b) → |
| 38 | MapsTo gamma (Icc a b) (regularPoints (g (G.subsequence k)) delta) → |
| 39 | gamma a ∈ G.embedding k '' G.exhaustion j → |
| 40 | MapsTo gamma (Icc a b) (G.embedding k '' G.exhaustion ell) := by |
| 41 | let := G.limitCarrier.topologicalSpace |
| 42 | intro j delta hdelta |
| 43 | obtain ⟨rho, hrho, hstage⟩ := G.exists_eventual_compact_stage_regularComponent j |
| 44 | let eta := min delta rho |
| 45 | have heta : 0 < eta := lt_min hdelta hrho |
| 46 | obtain ⟨ell, hcoverage⟩ := G.regular_component_coverage eta heta |
| 47 | refine ⟨ell, ?_⟩ |
| 48 | filter_upwards [hstage, hcoverage] with k hkstage hkcover |
| 49 | refine ⟨hkcover.1, ?_⟩ |
| 50 | intro gamma a b hab hgamma hregular hstart |
| 51 | obtain ⟨x, hx, hxstart⟩ := hstart |
| 52 | have hanchor : gamma a ∈ regularComponent |
| 53 | (g (G.subsequence k)) (p (G.subsequence k)) eta := |
| 54 | regularComponent_antitone _ _ (min_le_right _ _) |
| 55 | (hkstage ⟨x, subset_closure hx, hxstart⟩) |
| 56 | have hreg : gamma '' Icc a b ⊆ regularPoints (g (G.subsequence k)) eta := by |
| 57 | rintro _ ⟨t, ht, rfl⟩ |
| 58 | exact regularPoints_antitone _ (min_le_left _ _) (hregular ht) |
| 59 | have hconn := isPreconnected_Icc.image gamma hgamma |
| 60 | have hcomp : gamma '' Icc a b ⊆ regularComponent |
| 61 | (g (G.subsequence k)) (p (G.subsequence k)) eta := by |
| 62 | change gamma '' Icc a b ⊆ connectedComponentIn _ _ |
| 63 | rw [connectedComponentIn_eq hanchor] |
| 64 | exact hconn.subset_connectedComponentIn |
| 65 | (mem_image_of_mem gamma (left_mem_Icc.mpr hab)) hreg |
| 66 | intro t ht |
| 67 | exact hkcover.2 (hcomp (mem_image_of_mem gamma ht)) |
| 68 | |
| 69 | end PoincareMT.M28.RegularPointedMetricConvergence |