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/BoundaryInventory.lean View file
| @@ -24,6 +24,7 @@ def retainedSide (G : SimpleGraph (Triangle K)) (T : Finset (Triangle K)) | ||
| 24 | 24 | s ∈ T ∧ e ∈ K.faces ∧ e.card = 2 ∧ e ⊆ s.val ∧ |
| 25 | 25 | ¬ ∃ t ∈ T, G.Adj s t ∧ e ⊆ t.val |
| 26 | 26 | |
| 27 | +omit [DecidableEq E] in | |
| 27 | 28 | @[simp] theorem retainedSide_singleton_iff |
| 28 | 29 | (G : SimpleGraph (Triangle K)) (s t : Triangle K) (e : Finset E) : |
| 29 | 30 | retainedSide K G {s} t e ↔ t = s ∧ e.card = 2 ∧ e ⊆ s.val := by |
| @@ -182,6 +183,7 @@ theorem retainedSide_insert_iff | ||
| 182 | 183 | · exact (retainedSide_insert_leaf_iff K G T hl hn hln hunique |
| 183 | 184 | he₀ he₀l he₀n).mpr hret |
| 184 | 185 | |
| 186 | +omit [DecidableEq E] in | |
| 185 | 187 | /-- The actual two-coface inventory guarantees that the old attaching side was retained. -/ |
| 186 | 188 | theorem retainedSide_attaching_edge |
| 187 | 189 | (G : SimpleGraph (Triangle K)) (T : Finset (Triangle K)) |
+1 −0 PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/ResidualBandCut.lean View file
| @@ -43,6 +43,7 @@ private theorem segment_lineMap_interval (a b : E) {u v : ℝ} (huv : u ≤ v) : | ||
| 43 | 43 | AffineMap.lineMap a b '' Icc u v := by |
| 44 | 44 | rw [← image_segment ℝ (AffineMap.lineMap a b), segment_eq_Icc huv] |
| 45 | 45 | |
| 46 | +omit [Fintype ↑K.barycentricSubdivision.faces] in | |
| 46 | 47 | theorem residualBridge_eq_band_radii |
| 47 | 48 | (e : Edge K.vertexAbstractComplex.toPreAbstractSimplicialComplex) |
| 48 | 49 | {a b : K.vertices} (heq : e.val = {a, b}) : |