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.EmptyRegularSlab |
| 2 | |
| 3 | /-! |
| 4 | # Identifying the original slices with the empty extension |
| 5 | |
| 6 | Before the cutoff this is the identity through equal time labels. Later |
| 7 | old slices and their new representatives are both empty. The metric and |
| 8 | ordinary worldlines therefore retain exactly their original values. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M51Empty |
| 20 | |
| 21 | variable (F : SurgeryFlowData.{u}) {a : ℝ} (ha : a ∈ F.time_domain) |
| 22 | [IsEmpty (F.slice a).carrier] |
| 23 | |
| 24 | noncomputable def identify (t : ℝ) (ht : t ∈ F.time_domain) : |
| 25 | Diffeomorph (𝓡 3) (𝓡 3) (F.slice t).carrier (slice F a t).carrier ∞ := by |
| 26 | classical |
| 27 | by_cases hta : t ≤ a |
| 28 | · exact M51EventCopy.identify F.slice (fun s => min s a) t (min_eq_left hta) |
| 29 | · letI := F.extinction_permanent a t ha ht (lt_of_not_ge hta).le inferInstance |
| 30 | letI := empty_after F a (lt_of_not_ge hta).le |
| 31 | exact Diffeomorph.empty |
| 32 | |
| 33 | theorem identify_of_le (t : ℝ) (ht : t ∈ F.time_domain) (hta : t ≤ a) : |
| 34 | identify F ha t ht = |
| 35 | M51EventCopy.identify F.slice (fun s => min s a) t (min_eq_left hta) := by |
| 36 | unfold identify |
| 37 | exact dif_pos hta |
| 38 | |
| 39 | theorem identify_heq (t : ℝ) (ht : t ∈ F.time_domain) (x : (F.slice t).carrier) : |
| 40 | HEq (identify F ha t ht x) x := by |
| 41 | classical |
| 42 | by_cases hta : t ≤ a |
| 43 | · simpa only [identify, dif_pos hta, slice] using |
| 44 | M51EventCopy.identify_apply_heq F.slice (fun s => min s a) t (min_eq_left hta) x |
| 45 | · let := F.extinction_permanent a t ha ht (lt_of_not_ge hta).le inferInstance |
| 46 | exact isEmptyElim x |
| 47 | |
| 48 | theorem identify_metric_pullback (t : ℝ) (ht : t ∈ F.time_domain) |
| 49 | (x : (F.slice t).carrier) (v w : TangentSpace (𝓡 3) x) : |
| 50 | (metric F a t).inner (identify F ha t ht x) |
| 51 | (mfderiv (𝓡 3) (𝓡 3) (identify F ha t ht) x v) |
| 52 | (mfderiv (𝓡 3) (𝓡 3) (identify F ha t ht) x w) = |
| 53 | (F.metric t).inner x v w := by |
| 54 | classical |
| 55 | by_cases hta : t ≤ a |
| 56 | · rw [identify_of_le F ha t ht hta] |
| 57 | exact M51EventCopy.identify_metric_pullback F.slice F.metric |
| 58 | (fun s => min s a) t (min_eq_left hta) x v w |
| 59 | · let := F.extinction_permanent a t ha ht (lt_of_not_ge hta).le inferInstance |
| 60 | exact isEmptyElim x |
| 61 | |
| 62 | theorem identify_ordinary_compatibility (p q : ℝ) (hpq : p < q) |
| 63 | (hJ : Icc p q ⊆ F.time_domain) (hfree : Disjoint F.surgery_times (Ioc p q)) |
| 64 | (hJ' : Icc p q ⊆ Ici 0) (s t : Icc p q) (x : (F.slice s.1).carrier) : |
| 65 | (regularSlab F ha p q hpq hJ' hfree).transport s t (identify F ha s.1 (hJ s.2) x) = |
| 66 | identify F ha t.1 (hJ t.2) |
| 67 | ((F.regular_slabs p q hpq hJ hfree).transport s t x) := by |
| 68 | have hqa := regularSlab_end_le F ha p q hpq hJ' hfree s.2 |
| 69 | (identify F ha s.1 (hJ s.2) x) |
| 70 | have hleft := regularSlab_transport_heq F ha p q hpq hJ' hfree hqa hJ s t |
| 71 | (identify_heq F ha s.1 (hJ s.2) x) |
| 72 | exact eq_of_heq (hleft.trans (identify_heq F ha t.1 (hJ t.2) _).symm) |
| 73 | |
| 74 | end PoincareMT.M51Empty |