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.Regularity |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.GeometricLimit.Overlap.FlowCarrier |
| 4 | |
| 5 | /-! |
| 6 | # Pointed metric convergence with regular-component capture |
| 7 | |
| 8 | The spatial output for the total-volume specialization of Morgan--Tian |
| 9 | Theorem 5.6, printed pp. 85-87, retains the actual smooth metric, compact |
| 10 | exhaustion, pointed source maps and all metric jets. Every fixed regular |
| 11 | base component is eventually covered by one fixed compact stage. There is |
| 12 | no radial frontier, global properness or completeness field. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M28 |
| 23 | |
| 24 | /-- The actual nonradial spatial conclusion of Theorem 5.6 for regular |
| 25 | base components, with arbitrary source universe and a countable limit. -/ |
| 26 | structure RegularPointedMetricConvergence {n : ℕ} {M : ℕ → Type u} |
| 27 | [∀ k, TopologicalSpace (M k)] |
| 28 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin n)) (M k)] |
| 29 | [∀ k, IsManifold (𝓡 n) ∞ (M k)] |
| 30 | (g : ∀ k, RiemannianMetric n (M k)) (p : ∀ k, M k) where |
| 31 | /-- The countable smooth quotient. -/ |
| 32 | limitCarrier : FlowCarrier.{0} n |
| 33 | /-- The glued positive smooth metric. -/ |
| 34 | limitMetric : limitCarrier.metric |
| 35 | /-- The limit of the retained source basepoints. -/ |
| 36 | base : limitCarrier.carrier |
| 37 | /-- A single strict selection for all charts and derivatives. -/ |
| 38 | subsequence : ℕ → ℕ |
| 39 | /-- Strictness preserves every earlier source tail. -/ |
| 40 | subsequence_strictMono : StrictMono subsequence |
| 41 | /-- The actual open domains of the source embeddings. -/ |
| 42 | exhaustion : ℕ → Set limitCarrier.carrier |
| 43 | /-- Each stage is open. -/ |
| 44 | exhaustion_open : letI := limitCarrier.topologicalSpace |
| 45 | ∀ j, IsOpen (exhaustion j) |
| 46 | /-- Each stage is connected. -/ |
| 47 | exhaustion_connected : letI := limitCarrier.topologicalSpace |
| 48 | ∀ j, IsConnected (exhaustion j) |
| 49 | /-- Each stage contains the distinguished point. -/ |
| 50 | base_in_exhaustion : ∀ j, base ∈ exhaustion j |
| 51 | /-- The closures of the stages are compact. -/ |
| 52 | exhaustion_compactClosure : letI := limitCarrier.topologicalSpace |
| 53 | ∀ j, IsCompact (closure (exhaustion j)) |
| 54 | /-- The next stage contains the preceding closure. -/ |
| 55 | exhaustion_step : letI := limitCarrier.topologicalSpace |
| 56 | ∀ j, closure (exhaustion j) ⊆ exhaustion (j + 1) |
| 57 | /-- The stages exhaust the limit carrier. -/ |
| 58 | exhaustion_covers : (⋃ j, exhaustion j) = univ |
| 59 | /-- Total extensions, used geometrically only on their stated domains. -/ |
| 60 | embedding : ∀ j, limitCarrier.carrier → M (subsequence j) |
| 61 | /-- Each restricted source map is an open embedding. -/ |
| 62 | embedding_open : letI := limitCarrier.topologicalSpace |
| 63 | ∀ j, Topology.IsOpenEmbedding (fun x : exhaustion j => embedding j x) |
| 64 | /-- Each source map is a smooth local diffeomorphism on its domain. -/ |
| 65 | embedding_smooth : letI := limitCarrier.topologicalSpace |
| 66 | letI := limitCarrier.chartedSpace |
| 67 | ∀ j, IsLocalDiffeomorphOn (𝓡 n) (𝓡 n) ∞ (embedding j) (exhaustion j) |
| 68 | /-- The actual retained basepoints are preserved. -/ |
| 69 | base_preserving : ∀ j, embedding j base = p (subsequence j) |
| 70 | /-- All ordinary jets of actual pulled-back metric coefficients converge. -/ |
| 71 | metric_jets : letI := limitCarrier.topologicalSpace |
| 72 | letI := limitCarrier.chartedSpace |
| 73 | letI := limitCarrier.isManifold |
| 74 | ∀ q m K, IsCompact K → K ⊆ (extChartAt (𝓡 n) q).target → |
| 75 | TendstoUniformlyOn |
| 76 | (fun j => iteratedFDeriv ℝ m ((g (subsequence j)).pullbackCoefficients |
| 77 | (embedding j ∘ (extChartAt (𝓡 n) q).symm))) |
| 78 | (iteratedFDeriv ℝ m (limitMetric.pullbackCoefficients |
| 79 | (extChartAt (𝓡 n) q).symm)) atTop K |
| 80 | /-- The stage is chosen before the source index and every point of the |
| 81 | literal Definition 5.1 regular base component. -/ |
| 82 | regular_component_coverage : ∀ δ : ℝ, 0 < δ → ∃ j : ℕ, ∀ᶠ k in atTop, |
| 83 | j ≤ k ∧ regularComponent (g (subsequence k)) (p (subsequence k)) δ ⊆ |
| 84 | embedding k '' exhaustion j |
| 85 | |
| 86 | /-- A strict earlier extraction is retained literally in the final |
| 87 | source index. Theorem 5.6, printed pp. 86-87. -/ |
| 88 | noncomputable def RegularPointedMetricConvergence.reindex |
| 89 | {n : ℕ} {M : ℕ → Type u} [∀ k, TopologicalSpace (M k)] |
| 90 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin n)) (M k)] |
| 91 | [∀ k, IsManifold (𝓡 n) ∞ (M k)] |
| 92 | {g : ∀ k, RiemannianMetric n (M k)} {p : ∀ k, M k} |
| 93 | {φ : ℕ → ℕ} (hφ : StrictMono φ) |
| 94 | (G : RegularPointedMetricConvergence (fun k => g (φ k)) (fun k => p (φ k))) : |
| 95 | RegularPointedMetricConvergence g p where |
| 96 | limitCarrier := G.limitCarrier |
| 97 | limitMetric := G.limitMetric |
| 98 | base := G.base |
| 99 | subsequence := φ ∘ G.subsequence |
| 100 | subsequence_strictMono := hφ.comp G.subsequence_strictMono |
| 101 | exhaustion := G.exhaustion |
| 102 | exhaustion_open := G.exhaustion_open |
| 103 | exhaustion_connected := G.exhaustion_connected |
| 104 | base_in_exhaustion := G.base_in_exhaustion |
| 105 | exhaustion_compactClosure := G.exhaustion_compactClosure |
| 106 | exhaustion_step := G.exhaustion_step |
| 107 | exhaustion_covers := G.exhaustion_covers |
| 108 | embedding := G.embedding |
| 109 | embedding_open := G.embedding_open |
| 110 | embedding_smooth := G.embedding_smooth |
| 111 | base_preserving := G.base_preserving |
| 112 | metric_jets := G.metric_jets |
| 113 | regular_component_coverage := G.regular_component_coverage |
| 114 | |
| 115 | end PoincareMT.M28 |