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: fix the next three warnings build showed for Surfaces/Cuts
Browse filesChecks
build Program · lake build and axioms
Details
challenge Program · challenge files and build config
Details
ci/docs
Details
+1 −1 PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/OriginalBridgeReversal.lean View file
| @@ -30,7 +30,7 @@ strict scalar directions force the second pair to be the reversal. -/ | ||
| 30 | 30 | theorem endpoint_pair_reversal_of_scalar |
| 31 | 31 | {X : Type*} {Y : Type*} [LinearOrder Y] |
| 32 | 32 | {f : X → Y} {a b c d : X} |
| 33 | - (hab : a ≠ b) (hset : ({c, d} : Set X) = {a, b}) | |
| 33 | + (_hab : a ≠ b) (hset : ({c, d} : Set X) = {a, b}) | |
| 34 | 34 | (hforward : f a < f b) (hreverse : f d < f c) : |
| 35 | 35 | c = b ∧ d = a := by |
| 36 | 36 | rcases Set.pair_eq_pair_iff.mp hset with ⟨hca, hdb⟩ | ⟨hcb, hda⟩ |
+2 −0 PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/OriginalHalfBandCofaces.lean View file
| @@ -131,6 +131,7 @@ theorem residualBand_inter_original_edge | ||
| 131 | 131 | (residualBand_halfEdge_passage K e b (by simp [heq])).1, |
| 132 | 132 | ← residualBridge_eq_band_radii K e heq] |
| 133 | 133 | |
| 134 | +omit [FiniteDimensional ℝ E] in | |
| 134 | 135 | theorem OriginalResidualHalfBands.coface_hulls_inter |
| 135 | 136 | {e : Edge K.vertexAbstractComplex.toPreAbstractSimplicialComplex} |
| 136 | 137 | (B : OriginalResidualHalfBands K e) : |
| @@ -156,6 +157,7 @@ theorem OriginalResidualHalfBands.coface_hulls_inter | ||
| 156 | 157 | rw [K.convexHull_inter_convexHull (B.coface 0).property.1 (B.coface 1).property.1, |
| 157 | 158 | ← Finset.coe_inter, ← heq] |
| 158 | 159 | |
| 160 | +omit [FiniteDimensional ℝ E] in | |
| 159 | 161 | theorem residualCofaceContact_subset_original_coface |
| 160 | 162 | (hbound : ∀ s ∈ K.faces, s.card ≤ 3) |
| 161 | 163 | (e : Edge K.vertexAbstractComplex.toPreAbstractSimplicialComplex) |
+9 −1 routes/p1-surfaces-cuts/README.md View file
| @@ -17,7 +17,15 @@ lines, and they show three warnings, all in this folder: | ||
| 17 | 17 | positionally, so nothing else moves). |
| 18 | 18 | - `OriginalPeriodicSquareMap.lean:55`: `letI` in a proof → `let`, as the `haveILetI` linter suggests. |
| 19 | 19 | |
| 20 | -Only binder names and one tactic keyword change; no statement changes. `python3 checks/challenge.py .` says ok. | |
| 20 | +The `build` log of this branch's first head (job 830) then showed three more for the folder, fixed in a second | |
| 21 | +commit: | |
| 22 | + | |
| 23 | +- `OriginalBridgeReversal.lean:33`: `hab` unused in `endpoint_pair_reversal_of_scalar` → `_hab`. | |
| 24 | +- `OriginalHalfBandCofaces.lean:134, 159`: the section variable `[FiniteDimensional ℝ E]` was included but unused in | |
| 25 | + `OriginalResidualHalfBands.coface_hulls_inter` and `residualCofaceContact_subset_original_coface` → `omit … in`, | |
| 26 | + as the `unusedSectionVars` linter suggests (an instance argument nothing used; the stated claim is unchanged). | |
| 27 | + | |
| 28 | +Only binder names, one tactic keyword and two `omit` lines change; no statement changes. `python3 checks/challenge.py .` says ok. | |
| 21 | 29 | |
| 22 | 30 | ## Next |
| 23 | 31 | |