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.Compatibility.SourceNames |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Local.ConeDiskMap |
| 3 | |
| 4 | /-! |
| 5 | # Literal continuous cone maps and their limits |
| 6 | |
| 7 | The cutoff cone is continuous for a continuous periodic target circle. |
| 8 | Pointwise convergence of both its center and boundary circle passes |
| 9 | through the actual interpolator, retaining the literal limiting map. |
| 10 | |
| 11 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 12 | 447-449. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter Metric |
| 19 | open scoped Topology Manifold ContDiff |
| 20 | |
| 21 | namespace PoincareMT |
| 22 | |
| 23 | open Proofs.M58 |
| 24 | |
| 25 | variable {M : Type*} [TopologicalSpace M] |
| 26 | |
| 27 | /-- A continuous periodic target circle yields a continuous literal cutoff cone. Proof |
| 28 | expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 29 | theorem m64LocalConeDiskMap_continuous |
| 30 | (H : ℝ × (M × M) → M) (center : M) (gamma : ℝ → M) |
| 31 | (hgamma : Continuous gamma) (hperiod : Function.Periodic gamma curvePeriod) |
| 32 | (h0 : ∀ x, H (0, center, gamma x) = center) |
| 33 | (hH : ∀ t ∈ Icc (0 : ℝ) 1, ∀ x, ContinuousAt H (t, center, gamma x)) : |
| 34 | Continuous (m64LocalConeDiskMap H center gamma) := by |
| 35 | classical |
| 36 | apply continuous_iff_continuousAt.mpr |
| 37 | intro z |
| 38 | by_cases hz : z = 0 |
| 39 | · subst z |
| 40 | have hc : ContinuousAt (fun _ : LoopPlane => center) 0 := continuousAt_const |
| 41 | apply hc.congr_of_eventuallyEq |
| 42 | filter_upwards [Metric.ball_mem_nhds (0 : LoopPlane) |
| 43 | (by norm_num : (0 : ℝ) < 1 / 2)] with w hw |
| 44 | exact m64LocalConeDiskMap_inner H center gamma h0 (mem_ball_zero_iff.mp hw).le |
| 45 | · obtain ⟨theta, htheta, hpolar⟩ := m60_exists_contDiffAt_planeAngle hz |
| 46 | have htime : ContinuousAt (fun w : LoopPlane => 1 - diskTimeProfile ‖w‖) z := |
| 47 | continuousAt_const.sub (contDiff_diskTimeProfile.continuous.continuousAt.comp |
| 48 | continuous_norm.continuousAt) |
| 49 | have ht : 1 - diskTimeProfile ‖z‖ ∈ Icc (0 : ℝ) 1 := by |
| 50 | obtain ⟨hlo, hhi⟩ := diskTimeProfile_mem_Icc ‖z‖ |
| 51 | constructor <;> linarith |
| 52 | have harg : ContinuousAt (fun w : LoopPlane => |
| 53 | (1 - diskTimeProfile ‖w‖, center, gamma (theta w))) z := |
| 54 | htime.prodMk (continuousAt_const.prodMk |
| 55 | (hgamma.continuousAt.comp htheta.continuousAt)) |
| 56 | have hc : ContinuousAt (fun w : LoopPlane => |
| 57 | H (1 - diskTimeProfile ‖w‖, center, gamma (theta w))) z := |
| 58 | (hH _ ht (theta z)).comp |
| 59 | (f := fun w : LoopPlane => (1 - diskTimeProfile ‖w‖, center, gamma (theta w))) harg |
| 60 | apply hc.congr_of_eventuallyEq |
| 61 | filter_upwards [isClosed_singleton.isOpen_compl.mem_nhds hz] with w hw |
| 62 | have hw0 : w ≠ 0 := hw |
| 63 | rw [m64LocalConeDiskMap, if_neg hw0, |
| 64 | m64_periodic_curve_planeAngle_eq hperiod hw0 (hpolar w)] |
| 65 | |
| 66 | /-- Convergence of the actual center and circle passes pointwise through the fixed cone |
| 67 | interpolator. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 68 | theorem m64LocalConeDiskMap_tendsto |
| 69 | (H : ℝ × (M × M) → M) (center : ℕ → M) (gamma : ℕ → ℝ → M) |
| 70 | (c : M) (u : ℝ → M) (hc : Tendsto center atTop (𝓝 c)) |
| 71 | (hu : ∀ x, Tendsto (fun j => gamma j x) atTop (𝓝 (u x))) |
| 72 | (hH : ∀ t ∈ Icc (0 : ℝ) 1, ∀ x, ContinuousAt H (t, c, u x)) |
| 73 | (z : LoopPlane) : |
| 74 | Tendsto (fun j => m64LocalConeDiskMap H (center j) (gamma j) z) atTop |
| 75 | (𝓝 (m64LocalConeDiskMap H c u z)) := by |
| 76 | classical |
| 77 | by_cases hz : z = 0 |
| 78 | · simpa only [m64LocalConeDiskMap, if_pos hz] using hc |
| 79 | · have ht : 1 - diskTimeProfile ‖z‖ ∈ Icc (0 : ℝ) 1 := by |
| 80 | obtain ⟨hlo, hhi⟩ := diskTimeProfile_mem_Icc ‖z‖ |
| 81 | constructor <;> linarith |
| 82 | have harg : Tendsto (fun j => |
| 83 | (1 - diskTimeProfile ‖z‖, center j, gamma j (m60PlaneAngle z))) atTop |
| 84 | (𝓝 (1 - diskTimeProfile ‖z‖, c, u (m60PlaneAngle z))) := |
| 85 | tendsto_const_nhds.prodMk_nhds (hc.prodMk_nhds (hu (m60PlaneAngle z))) |
| 86 | have hlim := (hH _ ht (m60PlaneAngle z)).tendsto.comp harg |
| 87 | simpa only [m64LocalConeDiskMap, if_neg hz, Function.comp_def] using hlim |
| 88 | |
| 89 | end PoincareMT |