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 | /-! |
| 4 | # Regularity of continuous polar boundary lifts |
| 5 | |
| 6 | A continuous lift of the intrinsic boundary through a regular smooth polar |
| 7 | map is smooth within its parameter set, including one-sided endpoints. |
| 8 | This supplies the regularity step after the continuous direction map in |
| 9 | Morgan--Tian, Remark 19.42, p. 472; see |
| 10 | `derivations/2026-09-26-continuous-polar-focusing.md`. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Topology Manifold ContDiff Bundle |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace |
| 23 | normedSpaceTangentSpaceVectorSpace |
| 24 | |
| 25 | /-- Smooth inverse charts give relative smoothness of a continuous boundary |
| 26 | lift. The parameter set need not be open, and no extension of the lift is |
| 27 | assumed. Source: Morgan--Tian, Remark 19.42, p. 472. -/ |
| 28 | theorem m64Intrinsic_contDiffOn_boundary_lift |
| 29 | {e : AnnulusCoordinates → AnnulusCoordinates} {U : Set AnnulusCoordinates} |
| 30 | (hU : IsOpen U) (he : ContMDiffOn (𝓡 2) (𝓡 2) ∞ e U) |
| 31 | {u : ℝ → AnnulusCoordinates} {J : Set ℝ} {radius : ℝ} |
| 32 | (hu : ContinuousOn u J) (humap : MapsTo u J U) |
| 33 | (hboundary : ∀ s ∈ J, e (u s) = intrinsicAnnulusBoundary radius s) |
| 34 | (hi : ∀ s ∈ J, Function.Injective (mfderiv (𝓡 2) (𝓡 2) e (u s))) : |
| 35 | ContDiffOn ℝ ∞ u J := by |
| 36 | intro s hs |
| 37 | obtain ⟨F, hsF, _, hF, _, hFi⟩ := |
| 38 | m64Intrinsic_exists_smooth_polar_inverse hU he (humap hs) (hi s hs) |
| 39 | have htarget : intrinsicAnnulusBoundary radius s ∈ F.target := by |
| 40 | rw [← hboundary s hs, ← hF] |
| 41 | exact F.map_source hsF |
| 42 | have hlocal : ContDiffAt ℝ ∞ (F.symm ∘ intrinsicAnnulusBoundary radius) s := |
| 43 | (hFi.contDiffAt (F.open_target.mem_nhds htarget)).comp s |
| 44 | (m64Intrinsic_contDiff_boundary radius).contDiffAt |
| 45 | have hsource : ∀ᶠ t in 𝓝[J] s, u t ∈ F.source := |
| 46 | (hu s hs).preimage_mem_nhdsWithin (F.open_source.mem_nhds hsF) |
| 47 | have heq : u =ᶠ[𝓝[J] s] F.symm ∘ intrinsicAnnulusBoundary radius := by |
| 48 | filter_upwards [hsource, self_mem_nhdsWithin] with t ht htJ |
| 49 | change u t = F.symm (intrinsicAnnulusBoundary radius t) |
| 50 | rw [← hboundary t htJ, ← hF, F.left_inv ht] |
| 51 | apply hlocal.contDiffWithinAt.congr_of_eventuallyEq heq |
| 52 | change u s = F.symm (intrinsicAnnulusBoundary radius s) |
| 53 | rw [← hboundary s hs, ← hF, F.left_inv hsF] |
| 54 | |
| 55 | end PoincareMT |