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

P-1: omit unused section variables named by build
Browse filesChecks
build Program · lake build and axioms
Details
challenge Program · challenge files and build config
Details
+2 −0 PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/SeparatedDiskAttachment.lean View file
| @@ -139,6 +139,7 @@ theorem separatedCarrier_insert (h : ι → E → ℝ) (s : Set E) (u : ι → S | ||
| 139 | 139 | simp only [separatedCarrier, mem_union, mem_iUnion, exists_prop, Finset.mem_insert] |
| 140 | 140 | aesop |
| 141 | 141 | |
| 142 | +omit [FiniteDimensional ℝ E] [Fintype ι] in | |
| 142 | 143 | theorem separatedCarrier_inter_new (h : ι → E → ℝ) {s : Set E} {u d : ι → Set E} |
| 143 | 144 | (hdu : ∀ i, d i ⊆ u i) (hds : ∀ i, d i ⊆ s) |
| 144 | 145 | (hzero : ∀ i x, x ∈ u i → (h i x = 0 ↔ x ∈ d i)) |
| @@ -172,6 +173,7 @@ theorem unused_attachment_subset_separatedRim (h : ι → E → ℝ) {b : Set E} | ||
| 172 | 173 | subst w |
| 173 | 174 | exact Set.disjoint_left.mp (hdis hji) hw hy |
| 174 | 175 | |
| 176 | +omit [FiniteDimensional ℝ E] in | |
| 175 | 177 | theorem separatedRim_insert (h : ι → E → ℝ) {b : Set E} {u r d : ι → Set E} {a z : ι → E} |
| 176 | 178 | (hru : ∀ i, r i ⊆ u i) (hdu : ∀ i, d i ⊆ u i) |
| 177 | 179 | (hzero : ∀ i x, x ∈ u i → (h i x = 0 ↔ x ∈ d i)) |
+1 −0 PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/TreeSourceGeometry.lean View file
| @@ -69,6 +69,7 @@ theorem original_triangle_hulls_inter_eq_shared_segment | ||
| 69 | 69 | ← Finset.coe_inter, original_triangle_inter_eq_shared_edge K hne |
| 70 | 70 | (Finset.card_pair hab) hes het, Finset.coe_pair, convexHull_pair] |
| 71 | 71 | |
| 72 | +omit [DecidableEq E] in | |
| 72 | 73 | theorem two_cofaces_inventory {e : Finset E} |
| 73 | 74 | (hcount : {t : Finset E | t ∈ K.faces ∧ t.card = 3 ∧ e ⊆ t}.ncard = 2) |
| 74 | 75 | {s t : Triangle K} (hne : s ≠ t) (hes : e ⊆ s.val) (het : e ⊆ t.val) : |