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.Control.Basic |
| 2 | |
| 3 | /-! |
| 4 | # The old-prefix part of Proposition 16.1 |
| 5 | |
| 6 | Definition 15.7's entry intervals cover the entire old prefix. Its last |
| 7 | noncollapsing constant can therefore be used throughout that prefix. |
| 8 | Sources: Morgan--Tian Definition 15.7, p. 361, and Proposition 16.1, p. 367. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set |
| 14 | open scoped ENNReal |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.Proofs.M46 |
| 19 | |
| 20 | /-- The half-open entry intervals cover the old prefix, Definition 15.7. -/ |
| 21 | theorem exists_epochEntry (i : ℕ) {t : ℝ} |
| 22 | (ht : t ∈ Ico 0 (surgeryEpochStart i)) : |
| 23 | ∃ j : Fin (i + 1), t ∈ surgeryEpochEntry j.val := by |
| 24 | induction i with |
| 25 | | zero => exact ⟨0, by simpa [surgeryEpochEntry] using ht⟩ |
| 26 | | succ i ih => |
| 27 | by_cases hti : t < surgeryEpochStart i |
| 28 | · obtain ⟨j, hj⟩ := ih ⟨ht.1, hti⟩ |
| 29 | exact ⟨j.castSucc, hj⟩ |
| 30 | · refine ⟨Fin.last (i + 1), ?_⟩ |
| 31 | simpa [surgeryEpochEntry] using And.intro (le_of_not_gt hti) ht.2 |
| 32 | |
| 33 | /-- Decreasing kappa preserves the actual closed-cylinder estimate, |
| 34 | Definition 14.14 and Proposition 16.1, pp. 353 and 367. -/ |
| 35 | theorem noncollapsedOn_mono {F : SurgeryFlowData.{u}} {J : Set ℝ} |
| 36 | {kappa kappa' : ℝ} (h : SurgeryNoncollapsedOn F J kappa) |
| 37 | (hle : kappa' ≤ kappa) : SurgeryNoncollapsedOn F J kappa' := by |
| 38 | intro t ht htF x hpositive r hr hleR e hbase hcurv |
| 39 | exact (ENNReal.ofReal_le_ofReal |
| 40 | (mul_le_mul_of_nonneg_right hle (pow_nonneg hr.le 3))).trans |
| 41 | (h t ht htF x hpositive r hr hleR e hbase hcurv) |
| 42 | |
| 43 | /-- Prefix controls give the old-time branch for every smaller final |
| 44 | constant, Proposition 16.1, p. 367. The boundary time belongs to the new epoch. -/ |
| 45 | theorem prefix_noncollapsed {K : MetricSurgeryConstants} |
| 46 | {p : SurgeryParameterPrefix K} {F : SurgeryFlowData.{u}} |
| 47 | {O : SurgeryObservation F} (old : SurgeryPrefixControls p F O) |
| 48 | {kappa : ℝ} (hle : kappa ≤ p.kappa (Fin.last p.i)) : |
| 49 | SurgeryNoncollapsedOn F (surgeryObservationInterval O ∩ prefixFinalInterval p) kappa := by |
| 50 | intro t ht htF x hpositive r hr hleR e hbase hcurv |
| 51 | obtain ⟨j, hj⟩ := exists_epochEntry p.i ht.2 |
| 52 | have hjlast : j.val ≤ p.i := Nat.le_of_lt_succ j.isLt |
| 53 | have hk : kappa ≤ p.kappa j := |
| 54 | hle.trans (p.kappa_antitone (show j.val ≤ (Fin.last p.i).val from hjlast)) |
| 55 | exact noncollapsedOn_mono (old.noncollapsed j hjlast) hk |
| 56 | t ⟨ht.1, hj⟩ htF x hpositive r hr hleR e hbase hcurv |
| 57 | |
| 58 | end PoincareMT.Proofs.M46 |