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.AreaComparison.Polar.AnnulusMap |
| 3 | import PoincareLib.Geometry.Riemannian.LoopSpace.Area.LipschitzArea |
| 4 | import PoincareLib.Geometry.Riemannian.MinimalSurface.Sphere.Analysis.Homotopy.Null.Sphere |
| 5 | |
| 6 | /-! |
| 7 | # Admissibility of the actual polar annulus |
| 8 | |
| 9 | Every M64 rectangle annulus gives a globally Lipschitz polar collar with |
| 10 | integrable actual area density. The two literal angular traces are retained. |
| 11 | The sharp comparison with the rectangle area is handled separately. |
| 12 | |
| 13 | Morgan--Tian context: Section 19.6, Lemmas 19.30-19.31, printed pp. 461-466. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set MeasureTheory Metric |
| 20 | open scoped Manifold ContDiff Bundle NNReal ENNReal |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 28 | {g : RiemannianMetric n M} {c0 c1 : ℝ → M} |
| 29 | |
| 30 | /-- The polar collar retains the two prescribed boundary maps at radii one half and one. |
| 31 | Source: Auxiliary step for MT Lemma 19.30, p. 462; the actual half-disk collar in |
| 32 | `proof-work/tasks/M64/reports/2026-09-24-sharp-polar-collar.md`. -/ |
| 33 | theorem m64Annulus_polar_traces (A : M64Annulus g c0 c1) (theta : ℝ) : |
| 34 | m64PolarAnnulusMap A.map ((1 / 2 : ℝ) • Proofs.M58.angularPoint theta) = c0 theta ∧ |
| 35 | m64PolarAnnulusMap A.map (Proofs.M58.angularPoint theta) = c1 theta := by |
| 36 | constructor |
| 37 | · have h := m64PolarAnnulusMap_polar A.periodic (r := 1 / 2) (by norm_num) theta |
| 38 | norm_num at h |
| 39 | exact h.trans (A.lower_boundary theta) |
| 40 | · have h := m64PolarAnnulusMap_polar A.periodic (r := 1) zero_lt_one theta |
| 41 | norm_num at h |
| 42 | exact h.trans (A.upper_boundary theta) |
| 43 | |
| 44 | /-- An admissible rectangle annulus gives the exact metric Lipschitz bound required for |
| 45 | disk-collar gluing. Source: Auxiliary step for MT Lemma 19.30, p. 462; the actual half-disk |
| 46 | collar in `proof-work/tasks/M64/reports/2026-09-24-sharp-polar-collar.md`. -/ |
| 47 | theorem m64Annulus_polar_lipschitz [T2Space M] (A : M64Annulus g c0 c1) : |
| 48 | ∃ L : ℝ, 0 ≤ L ∧ |
| 49 | ∀ x ∈ loopDiskSet ∩ {z : LoopPlane | 1 / 2 ≤ ‖z‖}, |
| 50 | ∀ y ∈ loopDiskSet ∩ {z : LoopPlane | 1 / 2 ≤ ‖z‖}, |
| 51 | g.edist (m64PolarAnnulusMap A.map x) (m64PolarAnnulusMap A.map y) ≤ |
| 52 | ENNReal.ofReal L * ENNReal.ofReal ‖x - y‖ := by |
| 53 | let : LocallyCompactSpace M := |
| 54 | ChartedSpace.locallyCompactSpace (EuclideanSpace ℝ (Fin n)) M |
| 55 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 56 | ⟨g.toRiemannianMetric⟩ |
| 57 | let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 58 | (TangentSpace (𝓡 n) : M → Type _) := |
| 59 | ⟨⟨g.inner, g.contMDiff.continuous, fun _ _ _ => rfl⟩⟩ |
| 60 | let : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 n) M |
| 61 | have hLip : LipschitzOnWith (NNReal.mk A.lipschitz_constant A.lipschitz_nonnegative) |
| 62 | A.map m64AnnulusDomain := by |
| 63 | intro x hx y hy |
| 64 | change g.edist (A.map x) (A.map y) ≤ _ |
| 65 | simpa only [edist_dist, dist_eq_norm, |
| 66 | ENNReal.ofReal_eq_coe_nnreal A.lipschitz_nonnegative] using |
| 67 | A.lipschitz_on_domain ⟨x, hx⟩ ⟨y, hy⟩ |
| 68 | obtain ⟨L, hL⟩ := m64PolarAnnulusMap_lipschitz A.periodic hLip |
| 69 | refine ⟨L, L.property, ?_⟩ |
| 70 | intro x hx y hy |
| 71 | have hxQ : 1 / 2 ≤ ‖x‖ ∧ ‖x‖ ≤ 1 := |
| 72 | ⟨hx.2, mem_closedBall_zero_iff.mp hx.1⟩ |
| 73 | have hyQ : 1 / 2 ≤ ‖y‖ ∧ ‖y‖ ≤ 1 := |
| 74 | ⟨hy.2, mem_closedBall_zero_iff.mp hy.1⟩ |
| 75 | have h := hL hxQ hyQ |
| 76 | change g.edist (m64PolarAnnulusMap A.map x) (m64PolarAnnulusMap A.map y) ≤ |
| 77 | (L : ℝ≥0∞) * edist x y at h |
| 78 | simpa only [edist_dist, dist_eq_norm, ENNReal.ofReal_coe_nnreal] using h |
| 79 | |
| 80 | /-- Metric Lipschitz regularity supplies integrability of the actual polar collar area |
| 81 | density. Source: Auxiliary step for MT Lemma 19.30, p. 462; the actual half-disk collar in |
| 82 | `proof-work/tasks/M64/reports/2026-09-24-sharp-polar-collar.md`. -/ |
| 83 | theorem m64Annulus_polar_area_integrable [T2Space M] (A : M64Annulus g c0 c1) : |
| 84 | IntegrableOn (m60AreaDensity g (m64PolarAnnulusMap A.map)) |
| 85 | ((closedBall (0 : LoopPlane) (1 / 2))ᶜ ∩ loopDiskSet) volume := by |
| 86 | let Q : Set LoopPlane := (closedBall (0 : LoopPlane) (1 / 2))ᶜ ∩ ball (0 : LoopPlane) 1 |
| 87 | have hQ : IsOpen Q := isClosed_closedBall.isOpen_compl.inter isOpen_ball |
| 88 | have hsub : Q ⊆ loopDiskSet ∩ {z : LoopPlane | 1 / 2 ≤ ‖z‖} := by |
| 89 | intro z hz |
| 90 | have hz0 : 1 / 2 < ‖z‖ := by |
| 91 | simpa only [mem_compl_iff, mem_closedBall, dist_zero_right, not_le] using hz.1 |
| 92 | exact ⟨ball_subset_closedBall hz.2, hz0.le⟩ |
| 93 | have hfinite : volume Q ≠ ⊤ := |
| 94 | ne_top_of_le_ne_top (isCompact_closedBall (0 : LoopPlane) 1).measure_lt_top.ne |
| 95 | (measure_mono (fun _ hz => (hsub hz).1)) |
| 96 | obtain ⟨L, hL, hLip⟩ := m64Annulus_polar_lipschitz A |
| 97 | obtain ⟨hi, _⟩ := m60AreaIntegral_bound_of_metric_lipschitzOn g hQ hfinite hL |
| 98 | (fun x hx y hy => hLip x (hsub hx) y (hsub hy)) |
| 99 | have heq : Q =ᵐ[volume] |
| 100 | ((closedBall (0 : LoopPlane) (1 / 2))ᶜ ∩ loopDiskSet : Set LoopPlane) := by |
| 101 | filter_upwards [M60.haar_ball_ae_eq_closedBall volume (0 : LoopPlane) 1] with z hz |
| 102 | exact congrArg (fun b : Prop => z ∈ (closedBall (0 : LoopPlane) (1 / 2))ᶜ ∧ b) hz |
| 103 | exact (integrableOn_congr_set_ae heq).mp hi |
| 104 | |
| 105 | end PoincareMT |