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.RicciFlow.Surgery.StandardCap.Existence.RotationInvariance.EndCompactSlabs |
| 2 | |
| 3 | /-! |
| 4 | # The fixed three-slab cover of the end cutoff |
| 5 | |
| 6 | The actual closed end slabs respect interval inclusion. Their central |
| 7 | plateau contains the three translated target slabs, and three overlapping |
| 8 | source slabs cover the cutoff support. This is the fixed geometry in |
| 9 | Morgan-Tian Section 12.5, pp. 309-319 and end-overlap-energy.md. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff |
| 16 | |
| 17 | namespace PoincareMT.M34 |
| 18 | |
| 19 | variable {g : RiemannianMetric 3 StandardCapSpace} (e : StandardCylindricalEnd g) |
| 20 | |
| 21 | /-- Inclusion of height intervals gives inclusion of the actual closed |
| 22 | slabs (Section 12.5, pp. 309-319). -/ |
| 23 | theorem endClosedSlab_mono {a b c d : ℝ} (hac : c ≤ a) (hbd : b ≤ d) : |
| 24 | endClosedSlab e a b ⊆ endClosedSlab e c d := by |
| 25 | rintro _ ⟨z, hz, rfl⟩ |
| 26 | exact ⟨z, ⟨mem_univ _, hac.trans hz.2.1, hz.2.2.trans hbd⟩, rfl⟩ |
| 27 | |
| 28 | /-- The cutoff is identically one on the fixed closed central slab |
| 29 | (Section 12.5, pp. 309-319). -/ |
| 30 | theorem endEnergyCutoff_eq_one_on_slab {x : StandardCapSpace} |
| 31 | (hx : x ∈ endClosedSlab e (17 / 5) (23 / 5)) : endEnergyCutoff e x = 1 := by |
| 32 | obtain ⟨z, hz, rfl⟩ := hx |
| 33 | have hl : (17 / 5 : ℝ) ≤ z.2 := hz.2.1 |
| 34 | have hu : z.2 ≤ (23 / 5 : ℝ) := hz.2.2 |
| 35 | apply endEnergyCutoff_eq_one e |
| 36 | rw [endExhaustion_coordinate_of_two_le e (by linarith)] |
| 37 | constructor <;> linarith |
| 38 | |
| 39 | /-- Three fixed closed slabs cover the actual cutoff support, including |
| 40 | its boundary (Section 12.5, pp. 309-319). -/ |
| 41 | theorem endEnergyCutoff_tsupport_subset_three_slabs : |
| 42 | tsupport (endEnergyCutoff e) ⊆ |
| 43 | (endClosedSlab e (31 / 10) (18 / 5) ∪ endClosedSlab e (17 / 5) (23 / 5)) ∪ |
| 44 | endClosedSlab e (22 / 5) (49 / 10) := by |
| 45 | intro x hx |
| 46 | obtain ⟨z, hz, rfl⟩ := endEnergyCutoff_tsupport_subset_slab e hx |
| 47 | have hl : (31 / 10 : ℝ) ≤ z.2 := hz.2.1 |
| 48 | have hu : z.2 ≤ (49 / 10 : ℝ) := hz.2.2 |
| 49 | by_cases hlow : z.2 ≤ 18 / 5 |
| 50 | · exact Or.inl (Or.inl ⟨z, ⟨mem_univ _, hl, hlow⟩, rfl⟩) |
| 51 | · by_cases hmid : z.2 ≤ 23 / 5 |
| 52 | · exact Or.inl (Or.inr ⟨z, ⟨mem_univ _, by linarith, hmid⟩, rfl⟩) |
| 53 | · exact Or.inr ⟨z, ⟨mem_univ _, by linarith, hu⟩, rfl⟩ |
| 54 | |
| 55 | end PoincareMT.M34 |