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.CurveShortening.Comparison.AnnularEvolution.Plateau.Chart.ReaderCenteredInverse |
| 2 | |
| 3 | /-! Both local inverse identities of the actual centered chart reader. |
| 4 | They retain the original manifold chart, so later finite C2 boundary |
| 5 | coordinates have a genuine inverse on both neighborhoods. Source: |
| 6 | Morrey ICM pp. 183-185; M64 finite-boundary-regularity derivation. |
| 7 | |
| 8 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 9 | 447-449. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | set_option autoImplicit false |
| 14 | set_option warningAsError true |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Topology Manifold ContDiff |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | /-- The actual observed chart reader and its centered reconstruction are local inverses in |
| 22 | both directions. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 23 | theorem m64ChartReadable_centered_inverse_two_sided {n m : ℕ} {M : Type*} |
| 24 | [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 25 | [IsManifold (𝓡 n) ∞ M] {e : M → EuclideanSpace ℝ (Fin m)} |
| 26 | (hread : M60.SUChartReadable (n := n) e) (p : M) : |
| 27 | ∃ (T : EuclideanSpace ℝ (Fin m) →L[ℝ] EuclideanSpace ℝ (Fin n)) |
| 28 | (P : EuclideanSpace ℝ (Fin n) → M), |
| 29 | P 0 = p ∧ ContMDiffAt (𝓡 n) (𝓡 n) ∞ P 0 ∧ |
| 30 | (∀ᶠ q in 𝓝 p, P (T (e q - e p)) = q) ∧ |
| 31 | ∀ᶠ y in 𝓝 0, T (e (P y) - e p) = y := by |
| 32 | obtain ⟨b, hb, T, hT⟩ := hread p |
| 33 | let c := extChartAt (𝓡 n) b |
| 34 | have hTp : T (e p) = c p := hT.self_of_nhds |
| 35 | have hp : p ∈ c.source := hb |
| 36 | have hcp : c p ∈ c.target := c.map_source hp |
| 37 | let P : EuclideanSpace ℝ (Fin n) → M := fun y => c.symm (y + T (e p)) |
| 38 | have hP0 : P 0 = p := by |
| 39 | simp only [P, zero_add, hTp, c.left_inv hp] |
| 40 | have hi : ContMDiffAt (𝓡 n) (𝓡 n) ∞ c.symm (c p) := |
| 41 | (contMDiffOn_extChartAt_symm (n := ∞) b).contMDiffAt |
| 42 | ((isOpen_extChartAt_target b).mem_nhds hcp) |
| 43 | have hP : ContMDiffAt (𝓡 n) (𝓡 n) ∞ P 0 := by |
| 44 | have hi' : ContMDiffAt (𝓡 n) (𝓡 n) ∞ c.symm (0 + T (e p)) := by |
| 45 | simpa only [zero_add, hTp] using hi |
| 46 | exact hi'.comp 0 (contDiff_id.add contDiff_const).contMDiff.contMDiffAt |
| 47 | refine ⟨T, P, hP0, hP, ?_, ?_⟩ |
| 48 | · filter_upwards [hT, (isOpen_extChartAt_source b).mem_nhds hp] with q hq hqs |
| 49 | change c.symm (T (e q - e p) + T (e p)) = q |
| 50 | rw [map_sub, sub_add_cancel, hq, c.left_inv hqs] |
| 51 | · have hlim : Tendsto P (𝓝 0) (𝓝 p) := hP0 ▸ hP.continuousAt |
| 52 | have htarget : ∀ᶠ y in 𝓝 (0 : EuclideanSpace ℝ (Fin n)), y + T (e p) ∈ c.target := by |
| 53 | have hz : 0 + T (e p) ∈ c.target := by simpa only [zero_add, hTp] using hcp |
| 54 | exact ((continuous_id.add continuous_const).tendsto 0).eventually |
| 55 | ((isOpen_extChartAt_target b).mem_nhds hz) |
| 56 | filter_upwards [hlim.eventually hT, htarget] with y hy hyt |
| 57 | rw [map_sub, hy] |
| 58 | change c (c.symm (y + T (e p))) - T (e p) = y |
| 59 | rw [c.right_inv hyt, add_sub_cancel_right] |
| 60 | |
| 61 | end PoincareMT |