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.ReaderMetric |
| 2 | |
| 3 | /-! |
| 4 | # Centered inverse coordinates from the actual chart reader |
| 5 | |
| 6 | The existing finite observation reads a genuine target chart near every |
| 7 | point. Centering its linear reader gives a smooth target reconstruction |
| 8 | at zero and the actual local inverse identity. No boundary regularity is |
| 9 | needed. Source: Morrey ICM pp. 183-185; M64 phase-cone normalization. |
| 10 | |
| 11 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 12 | 447-449. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | set_option warningAsError true |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Topology Manifold ContDiff |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | /-- A genuine linear chart reader gives centered smooth inverse coordinates for the original |
| 25 | target, before any competitor is chosen. Proof expansion for Morgan-Tian (2007), Lemma |
| 26 | 19.15, pp. 447-449; M64 derivation 2026-09-26-phase-cone-normalization.md. -/ |
| 27 | theorem m64ChartReadable_centered_inverse {n m : ℕ} {M : Type*} |
| 28 | [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 29 | [IsManifold (𝓡 n) ∞ M] {e : M → EuclideanSpace ℝ (Fin m)} |
| 30 | (hread : M60.SUChartReadable (n := n) e) (p : M) : |
| 31 | ∃ (T : EuclideanSpace ℝ (Fin m) →L[ℝ] EuclideanSpace ℝ (Fin n)) |
| 32 | (P : EuclideanSpace ℝ (Fin n) → M), |
| 33 | P 0 = p ∧ ContMDiffAt (𝓡 n) (𝓡 n) ∞ P 0 ∧ |
| 34 | ∀ᶠ q in 𝓝 p, P (T (e q - e p)) = q := by |
| 35 | obtain ⟨b, hb, T, hT⟩ := hread p |
| 36 | let c := extChartAt (𝓡 n) b |
| 37 | have hTp : T (e p) = c p := hT.self_of_nhds |
| 38 | have hp : p ∈ c.source := hb |
| 39 | have hcp : c p ∈ c.target := c.map_source hp |
| 40 | let P : EuclideanSpace ℝ (Fin n) → M := fun y => c.symm (y + T (e p)) |
| 41 | have hP0 : P 0 = p := by |
| 42 | simp only [P, zero_add, hTp, c.left_inv hp] |
| 43 | have hi : ContMDiffAt (𝓡 n) (𝓡 n) ∞ c.symm (c p) := |
| 44 | (contMDiffOn_extChartAt_symm (n := ∞) b).contMDiffAt |
| 45 | ((isOpen_extChartAt_target b).mem_nhds hcp) |
| 46 | refine ⟨T, P, hP0, ?_, ?_⟩ |
| 47 | · have hi' : ContMDiffAt (𝓡 n) (𝓡 n) ∞ c.symm (0 + T (e p)) := by |
| 48 | simpa only [zero_add, hTp] using hi |
| 49 | exact hi'.comp 0 (contDiff_id.add contDiff_const).contMDiff.contMDiffAt |
| 50 | · filter_upwards [hT, (isOpen_extChartAt_source b).mem_nhds hp] with q hq hqs |
| 51 | change c.symm (T (e q - e p) + T (e p)) = q |
| 52 | rw [map_sub, sub_add_cancel, hq, c.left_inv hqs] |
| 53 | |
| 54 | end PoincareMT |