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.GlobalSchedule.Empty.EmptyFamily |
| 2 | |
| 3 | /-! |
| 4 | # Maximality after permanent empty continuation |
| 5 | |
| 6 | A finite endpoint of a nonempty maximal interval in the full nonnegative |
| 7 | time domain must be an unchanged surgery time. It is at or before the empty |
| 8 | cutoff, so the original maximality and curvature witnesses apply unchanged. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT.M51Empty |
| 18 | |
| 19 | variable (F : SurgeryFlowData.{u}) {a : ℝ} (ha : a ∈ F.time_domain) |
| 20 | [IsEmpty (F.slice a).carrier] |
| 21 | |
| 22 | include ha in |
| 23 | theorem maximality (p q : ℝ) (hp : 0 ≤ p) |
| 24 | (hstart : p = 0 ∨ p ∈ F.surgery_times) (hpq : p < q) |
| 25 | (hfree : Disjoint F.surgery_times (Ioo p q)) |
| 26 | [Nonempty (slice F a p).carrier] |
| 27 | (hend : q ∈ F.surgery_times ∨ q ∉ Ici 0) : |
| 28 | ∀ L s : ℝ, s < q → ∃ t ∈ Ioo (max p s) q, |
| 29 | ∃ x : (slice F a t).carrier, L < (connection F a t).curvatureTensorNorm x := by |
| 30 | have hq : q ∈ F.surgery_times := hend.resolve_right |
| 31 | (fun h => h (hp.trans hpq.le)) |
| 32 | have hqa := F.surgeryTime_le_empty ha hq |
| 33 | have hpa : p ≤ a := hpq.le.trans hqa |
| 34 | have hpD : p ∈ F.time_domain := |
| 35 | F.time_domain_interval.out F.zero_mem ha ⟨hp, hpa⟩ |
| 36 | have hOld : Ico p q ⊆ F.time_domain := fun t ht => |
| 37 | F.time_domain_interval.out F.zero_mem ha ⟨hp.trans ht.1, ht.2.le.trans hqa⟩ |
| 38 | let : Nonempty (F.slice p).carrier := by |
| 39 | simpa only [slice, min_eq_left hpa] using |
| 40 | (inferInstance : Nonempty (slice F a p).carrier) |
| 41 | intro L s hs |
| 42 | obtain ⟨t, ht, x, hx⟩ := F.maximal_intervals p q hpD hstart hpq hOld hfree |
| 43 | (Or.inl hq) L s hs |
| 44 | refine ⟨t, ht, ?_⟩ |
| 45 | change ∃ x : (F.slice (min t a)).carrier, |
| 46 | L < (F.connection (min t a)).curvatureTensorNorm x |
| 47 | rw [min_eq_left (ht.2.le.trans hqa)] |
| 48 | exact ⟨x, hx⟩ |
| 49 | |
| 50 | end PoincareMT.M51Empty |