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: drop unused simp arguments in OriginalRefinementOrientation
Browse filesChecks
build Program · lake build and axioms
Details
challenge Program · challenge files and build config
Details
ci/docs
Details
+3 −3 PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/OriginalRefinementOrientation.lean View file
| @@ -124,15 +124,15 @@ theorem charted_refined_cofaces_cancel | ||
| 124 | 124 | have hp := parity_sum_of_negative_product _ _ hpair |
| 125 | 125 | dsimp only [Function.comp_apply] at hp |
| 126 | 126 | linear_combination (norm := ring_nf) hp |
| 127 | - simp only [show (2 : ZMod 2) = 0 from rfl, mul_zero, sub_zero] | |
| 127 | + simp only [show (2 : ZMod 2) = 0 from rfl, mul_zero] | |
| 128 | 128 | · obtain ⟨v, w, c, d, hvw, hcv, hcw, hdv, hdw, hTv, hUv, havw, hbvw⟩ := |
| 129 | 129 | K.exists_common_owner_edge hTf hUf hTc hUc hTU |
| 130 | 130 | (hT haT) (hU haU) (hT hbT) (hU hbU) |
| 131 | 131 | (fun h ↦ hab (hi (Or.inl haT) (Or.inl hbT) h)) |
| 132 | 132 | have hset : ({a, b, x} : Set (ℝ × ℝ)) = {a, x, b} := by |
| 133 | - ext z; simp [or_comm, or_left_comm] | |
| 133 | + ext z; simp [or_comm] | |
| 134 | 134 | have hfin : ({a, b, x} : Finset (ℝ × ℝ)) = {a, x, b} := by |
| 135 | - ext z; simp [or_comm, or_left_comm] | |
| 135 | + ext z; simp [or_comm] | |
| 136 | 136 | have hRn := charted_refined_cross_ne_zero L F hF a b x hab hax hbx |
| 137 | 137 | (hfin.symm ▸ ht) (by rw [hset]; exact hi.mono subset_union_left) |
| 138 | 138 | (charts T) (hcharts T hTf hTc).1 (by rw [hset]; exact hT) |
+4 −3 routes/p1-surfaces-cuts/README.md View file
| @@ -27,10 +27,11 @@ commit: | ||
| 27 | 27 | |
| 28 | 28 | Job 838 (second head) showed two more unused section variables, fixed in a third commit with `omit … in`: |
| 29 | 29 | `OriginalHalfBandCofaces.lean:70` (`residualBand_subset_original_cofaces`) and `OriginalRefinementOrientation.lean:154` |
| 30 | -(`original_refined_pair_cancellation`). It also showed the end of an `unusedSimpArgs` warning (suggesting | |
| 31 | -`simp [or_comm]`) whose file and line were cut off; I leave it for the next log rather than guess. | |
| 30 | +(`original_refined_pair_cancellation`). Job 842 (third head) showed unused simp arguments in `OriginalRefinementOrientation.lean`: `or_left_comm` at 133 | |
| 31 | +and 135, dropped; and `sub_zero` in a `simp only` whose line was cut off, which I take to be line 127 of the same | |
| 32 | +file (the only such `simp only` in it, just before the others); `build` judges that guess. | |
| 32 | 33 | |
| 33 | -Only binder names, one tactic keyword and `omit` lines change; no statement changes. `python3 checks/challenge.py .` says ok. | |
| 34 | +Only binder names, one tactic keyword, `omit` lines and unused simp arguments change; no statement changes. `python3 checks/challenge.py .` says ok. | |
| 34 | 35 | |
| 35 | 36 | ## Next |
| 36 | 37 | |