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.IntrinsicComparison.Polar.Inverse |
| 2 | |
| 3 | /-! A concrete local lift of the fixed second geodesic through a polar inverse. |
| 4 | Source: MT Claim 19.41, p. 471; short-geodesic-digons derivation, Section 8. |
| 5 | This constructs the local perturbation map but does not assert confinement. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | set_option autoImplicit false |
| 9 | set_option backward.isDefEq.respectTransparency false |
| 10 | |
| 11 | open Set Filter |
| 12 | open scoped Topology ContDiff Manifold |
| 13 | |
| 14 | namespace PoincareMT |
| 15 | |
| 16 | /-- A regular polar preimage gives an actual smooth local lift of any |
| 17 | smooth curve through its image, retaining the chosen preimage and equality |
| 18 | on a full parameter neighborhood. |
| 19 | Source: MT Claim 19.41, p. 471; digon derivation, Section 8. -/ |
| 20 | theorem m64Intrinsic_exists_local_polar_curve_lift |
| 21 | {e : AnnulusCoordinates → AnnulusCoordinates} {Omega : Set AnnulusCoordinates} |
| 22 | (hOmega : IsOpen Omega) (he : ContMDiffOn (𝓡 2) (𝓡 2) ∞ e Omega) |
| 23 | {v : AnnulusCoordinates} (hv : v ∈ Omega) |
| 24 | (hreg : Function.Injective (mfderiv (𝓡 2) (𝓡 2) e v)) |
| 25 | {beta : ℝ → AnnulusCoordinates} {s : ℝ} (hb : ContDiffAt ℝ ∞ beta s) |
| 26 | (hpoint : e v = beta s) : |
| 27 | ∃ u : ℝ → AnnulusCoordinates, |
| 28 | ContDiffAt ℝ ∞ u s ∧ u s = v ∧ |
| 29 | (∀ᶠ a in 𝓝 s, u a ∈ Omega ∧ e (u a) = beta a) := by |
| 30 | obtain ⟨F, hvF, hFO, hF, _, hFi⟩ := |
| 31 | m64Intrinsic_exists_smooth_polar_inverse hOmega he hv hreg |
| 32 | have hsF : beta s ∈ F.target := by |
| 33 | rw [← hpoint, ← hF] |
| 34 | exact F.map_source hvF |
| 35 | let u : ℝ → AnnulusCoordinates := F.symm ∘ beta |
| 36 | have hu : ContDiffAt ℝ ∞ u s := |
| 37 | (hFi.contDiffAt (F.open_target.mem_nhds hsF)).comp s hb |
| 38 | have hu0 : u s = v := by |
| 39 | change F.symm (beta s) = v |
| 40 | rw [← hpoint, ← hF, F.left_inv hvF] |
| 41 | refine ⟨u, hu, hu0, ?_⟩ |
| 42 | filter_upwards [hb.continuousAt.preimage_mem_nhds (F.open_target.mem_nhds hsF)] with a ha |
| 43 | refine ⟨hFO (F.map_target ha), ?_⟩ |
| 44 | change e (F.symm (beta a)) = beta a |
| 45 | rw [← hF] |
| 46 | exact F.right_inv ha |
| 47 | |
| 48 | end PoincareMT |