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.Riemannian.Compactness.IntrinsicMetric |
| 2 | import Mathlib.Topology.OpenPartialHomeomorph.Constructions |
| 3 | |
| 4 | /-! |
| 5 | # A fixed actual coordinate buffer away from two endpoints |
| 6 | |
| 7 | Only the topology chart is translated. The convergence atlas and all |
| 8 | source maps remain unchanged. MT Proposition 17.1; |
| 9 | limit-finite-actual-low-point.md, U2. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Metric |
| 15 | open scoped Manifold ContDiff Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M47 |
| 20 | |
| 21 | /-- One actual chart and positive metric buffer contain the middle |
| 22 | point while their closed coordinate buffer avoids both fixed endpoints. -/ |
| 23 | theorem limitFinite_exists_chart_buffer |
| 24 | {M : Type u} [TopologicalSpace M] [T3Space M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 26 | [ConnectedSpace M] (g : RiemannianMetric 3 M) (y o z : M) |
| 27 | (hyo : y ≠ o) (hyz : y ≠ z) : |
| 28 | ∃ (c : OpenPartialHomeomorph M (EuclideanSpace ℝ (Fin 3))) (r eta : ℝ), |
| 29 | 0 < r ∧ 0 < eta ∧ |
| 30 | closedBall (0 : EuclideanSpace ℝ (Fin 3)) r ⊆ c.target ∧ |
| 31 | o ∉ c.symm '' ball 0 r ∧ z ∉ c.symm '' ball 0 r ∧ |
| 32 | g.ball y eta ⊆ c.source ∩ c ⁻¹' ball 0 r := by |
| 33 | let := g.toMetricSpace |
| 34 | let c := (chartAt (EuclideanSpace ℝ (Fin 3)) y).transHomeomorph |
| 35 | (Homeomorph.addRight (-(chartAt (EuclideanSpace ℝ (Fin 3)) y) y)) |
| 36 | have hyc : y ∈ c.source := mem_chart_source _ y |
| 37 | have hcy : c y = 0 := by simp [c] |
| 38 | have hzero : (0 : EuclideanSpace ℝ (Fin 3)) ∈ c.target := hcy ▸ c.map_source hyc |
| 39 | have hinverse : c.symm 0 = y := by simpa only [hcy] using c.left_inv hyc |
| 40 | let V : Set M := {o}ᶜ ∩ {z}ᶜ |
| 41 | have hV : IsOpen V := isClosed_singleton.isOpen_compl.inter |
| 42 | isClosed_singleton.isOpen_compl |
| 43 | have hyV : y ∈ V := ⟨hyo, hyz⟩ |
| 44 | have hU : IsOpen (c.target ∩ c.symm ⁻¹' V) := |
| 45 | c.symm.continuousOn.isOpen_inter_preimage c.open_target hV |
| 46 | have hzeroU : (0 : EuclideanSpace ℝ (Fin 3)) ∈ c.target ∩ c.symm ⁻¹' V := |
| 47 | ⟨hzero, by simpa only [mem_preimage, hinverse] using hyV⟩ |
| 48 | obtain ⟨r, hr, hclosed⟩ := Metric.nhds_basis_closedBall.mem_iff.mp |
| 49 | (hU.mem_nhds hzeroU) |
| 50 | have hsmallOpen : IsOpen (c.source ∩ c ⁻¹' ball 0 r) := |
| 51 | c.continuousOn.isOpen_inter_preimage c.open_source isOpen_ball |
| 52 | have hsmallY : y ∈ c.source ∩ c ⁻¹' ball 0 r := |
| 53 | ⟨hyc, by simpa only [mem_preimage, hcy, mem_ball, dist_self] using hr⟩ |
| 54 | obtain ⟨eta, heta, hmetric⟩ := Metric.mem_nhds_iff.mp (hsmallOpen.mem_nhds hsmallY) |
| 55 | refine ⟨c, r, eta, hr, heta, fun x hx => (hclosed hx).1, ?_, ?_, ?_⟩ |
| 56 | · rintro ⟨x, hx, hxo⟩ |
| 57 | exact (hclosed (ball_subset_closedBall hx)).2.1 hxo |
| 58 | · rintro ⟨x, hx, hxz⟩ |
| 59 | exact (hclosed (ball_subset_closedBall hx)).2.2 hxz |
| 60 | · simpa only [g.toMetricSpace_ball y eta] using hmetric |
| 61 | |
| 62 | end PoincareMT.M47 |