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.AreaComparison.Projection.Integrability |
| 2 | |
| 3 | /-! |
| 4 | # Null boundary of the angular rectangle |
| 5 | |
| 6 | The closed M64 annulus rectangle differs from its open box interior only on |
| 7 | the four coordinate faces. This is the measure-theoretic boundary fact used |
| 8 | when passing between closed-domain annulus fields and their interior a.e. |
| 9 | representatives. |
| 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 | |
| 17 | open MeasureTheory Set |
| 18 | open scoped Manifold ContDiff Bundle ENNReal |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | /-- The boundary of the closed angular rectangle has zero planar volume. Source: |
| 23 | Morgan--Tian (2007), Lemma 19.15 and Corollary 19.16, pp. 447-449; project derivation |
| 24 | `proof-work/tasks/M64/reports/2026-09-27-annulus-energy-and-finite-variation-derivation.md`. -/ |
| 25 | theorem m64AnnulusDomain_boundary_null : |
| 26 | volume (m64AnnulusDomain \ interior m64AnnulusDomain) = 0 := by |
| 27 | let e : LoopPlane → (Fin 2 → ℝ) := @WithLp.ofLp 2 (Fin 2 → ℝ) |
| 28 | let lo : Fin 2 → ℝ := 0 |
| 29 | let hi : Fin 2 → ℝ := ![curvePeriod, 1] |
| 30 | let S : Set LoopPlane := e ⁻¹' (Set.pi Set.univ |
| 31 | (fun i : Fin 2 => Set.Ioo (lo i) (hi i))) |
| 32 | have hS : IsOpen S := by |
| 33 | apply (isOpen_set_pi Set.finite_univ (fun _ _ => isOpen_Ioo)).preimage |
| 34 | exact PiLp.continuous_ofLp 2 _ |
| 35 | have hSdom : S ⊆ m64AnnulusDomain := by |
| 36 | intro p hp |
| 37 | simp only [S, e, Set.mem_preimage, Set.mem_pi, Set.mem_univ, Set.mem_Ioo] at hp |
| 38 | change 0 ≤ p 0 ∧ p 0 ≤ curvePeriod ∧ 0 ≤ p 1 ∧ p 1 ≤ 1 |
| 39 | have h0 := hp 0 trivial |
| 40 | have h1 := hp 1 trivial |
| 41 | simpa [lo, hi] using ⟨h0.1.le, h0.2.le, h1.1.le, h1.2.le⟩ |
| 42 | have hSint : S ⊆ interior m64AnnulusDomain := |
| 43 | interior_maximal hSdom hS |
| 44 | have hae : m64AnnulusDomain =ᵐ[volume] S := by |
| 45 | simpa only [S, e, lo, hi] using m64AnnulusDomain_ae_eq_boxInterior |
| 46 | apply measure_mono_null _ (ae_eq_set.mp hae).1 |
| 47 | intro p hp |
| 48 | exact ⟨hp.1, fun hpint => hp.2 (hSint hpint)⟩ |
| 49 | |
| 50 | end PoincareMT |