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.MetricConvergence |
| 3 | import PoincareLib.Geometry.Manifold.LocalDiffeomorph |
| 4 | |
| 5 | /-! |
| 6 | # Local diffeomorphisms on captured spatial limit charts |
| 7 | |
| 8 | The retained source embedding is used only where the inverse limit chart |
| 9 | lands in its genuine exhaustion domain. Restricting to an open Euclidean |
| 10 | domain gives the actual local coordinate map used for backward flows. |
| 11 | Morgan--Tian Theorem 5.6 and Proposition 5.14, pp. 85-87 and 90-91; |
| 12 | M28 derivation 74. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M28.RegularPointedMetricConvergence |
| 25 | |
| 26 | /-- Restricting the retained embedding to a captured inverse limit chart |
| 27 | gives a local diffeomorphism on the canonical domain. There is no assertion |
| 28 | about the total embedding outside its exhaustion (derivation 74). -/ |
| 29 | theorem chart_embedding_localDiffeomorph |
| 30 | {n : ℕ} {M : ℕ → Type u} [∀ k, TopologicalSpace (M k)] |
| 31 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin n)) (M k)] |
| 32 | [∀ k, IsManifold (𝓡 n) ∞ (M k)] |
| 33 | {g : ∀ k, RiemannianMetric n (M k)} {p : ∀ k, M k} |
| 34 | (G : RegularPointedMetricConvergence g p) : |
| 35 | letI := G.limitCarrier.topologicalSpace |
| 36 | letI := G.limitCarrier.chartedSpace |
| 37 | letI := G.limitCarrier.isManifold |
| 38 | ∀ (q : G.limitCarrier.carrier) (k : ℕ) |
| 39 | (U : Set (EuclideanSpace ℝ (Fin n))) (hU : IsOpen U) [Nonempty U], |
| 40 | U ⊆ (extChartAt (𝓡 n) q).target → |
| 41 | (extChartAt (𝓡 n) q).symm '' U ⊆ G.exhaustion k → |
| 42 | letI := hU.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 43 | IsLocalDiffeomorph (𝓡 n) (𝓡 n) ∞ |
| 44 | (fun x : U => G.embedding k ((extChartAt (𝓡 n) q).symm x.val)) := by |
| 45 | let := G.limitCarrier.topologicalSpace |
| 46 | let := G.limitCarrier.chartedSpace |
| 47 | let := G.limitCarrier.isManifold |
| 48 | intro q k U hU _ htarget hcapture |
| 49 | let := hU.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 50 | let d : PartialDiffeomorph (𝓡 n) (𝓡 n) |
| 51 | (EuclideanSpace ℝ (Fin n)) G.limitCarrier.carrier ∞ := { |
| 52 | toPartialEquiv := (extChartAt (𝓡 n) q).symm |
| 53 | open_source := isOpen_extChartAt_target q |
| 54 | open_target := isOpen_extChartAt_source q |
| 55 | contMDiffOn_toFun := contMDiffOn_extChartAt_symm q |
| 56 | contMDiffOn_invFun := by |
| 57 | change ContMDiffOn (𝓡 n) (𝓡 n) ∞ (extChartAt (𝓡 n) q) |
| 58 | (extChartAt (𝓡 n) q).source |
| 59 | simpa only [extChartAt_source] using |
| 60 | (contMDiffOn_extChartAt (I := 𝓡 n) (n := ∞) (x := q)) } |
| 61 | intro x |
| 62 | have hval := Poincare.isLocalDiffeomorph_subtypeVal (𝓡 n) U hU ∞ x |
| 63 | have hchart := d.isLocalDiffeomorphAt (𝓡 n) (𝓡 n) ∞ (htarget x.property) |
| 64 | have hsource := G.embedding_smooth k |
| 65 | ⟨(extChartAt (𝓡 n) q).symm x.val, hcapture ⟨x.val, x.property, rfl⟩⟩ |
| 66 | exact (hval.comp (𝓡 n) G.limitCarrier.carrier hchart).comp |
| 67 | (𝓡 n) (M (G.subsequence k)) hsource |
| 68 | |
| 69 | end PoincareMT.M28.RegularPointedMetricConvergence |