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 three linter warnings shown 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
| @@ -149,7 +149,7 @@ required source endpoint reversal once the two scalar directions are compared | ||
| 149 | 149 | in the original edge chart. This is the exact interface for the geometric |
| 150 | 150 | sign transport; it does not assume any cyclic alignment. -/ |
| 151 | 151 | theorem source_bridge_endpoint_reversal_of_scalar |
| 152 | - (hbound : ∀ s ∈ K.faces, s.card ≤ 3) (i : Fin 4) | |
| 152 | + (_hbound : ∀ s ∈ K.faces, s.card ≤ 3) (i : Fin 4) | |
| 153 | 153 | (ell : E →ₗ[ℝ] ℝ) |
| 154 | 154 | (hforward : ell (A.sourceMap K P D hD hcofaces hP labels (A.bridgeBegin i)) < |
| 155 | 155 | ell (A.sourceMap K P D hD hcofaces hP labels (A.bridgeEnd i))) |
+1 −1 PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/OriginalBridgeScalarCharts.lean View file
| @@ -30,7 +30,7 @@ local notation "sm" => A.sourceMap K P D hD hcofaces hP labels | ||
| 30 | 30 | theorem scalar_bridge_chart |
| 31 | 31 | (i : Fin 4) (f : (ℝ × ℝ) → CutSpace) |
| 32 | 32 | (hfPL : FinitePiecewiseAffineOn f (PeriodicSquare.squareCarrier 1)) |
| 33 | - (α β : ℝ) (hα : 0 < α) (hαβ : α < β) (hβ : β < 1) | |
| 33 | + (α β : ℝ) (hα : 0 < α) (_hαβ : α < β) (hβ : β < 1) | |
| 34 | 34 | (himage : (f ∘ unitSquareSide i) '' Icc α β = A.boundaryBridge i) |
| 35 | 35 | (hsourceInj : InjOn (sm ∘ (f ∘ unitSquareSide i)) (Icc α β)) |
| 36 | 36 | (ell : E →L[ℝ] ℝ) |
+1 −1 PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/OriginalPeriodicSquareMap.lean View file
| @@ -52,7 +52,7 @@ remaining orientation input is reversal of the actual bridge endpoints. -/ | ||
| 52 | 52 | theorem nonempty_sourceSquareMap_of_source_reversal |
| 53 | 53 | (hrev : ∀ i : Fin 4, sm (A.bridgeBegin (A.arcPairing i)) = |
| 54 | 54 | sm (A.bridgeEnd i)) : Nonempty (SourceSquareMap 1 K) := by |
| 55 | - letI : Fact (0 < (1 : ℝ)) := ⟨zero_lt_one⟩ | |
| 55 | + let : Fact (0 < (1 : ℝ)) := ⟨zero_lt_one⟩ | |
| 56 | 56 | obtain ⟨C,H,G,e,d,hC,hH,hG,hbottom,htop,hleft,hright⟩ := |
| 57 | 57 | A.exists_matched_original_rectangle hbound hrev |
| 58 | 58 | let Q : Square 1 ≃ₜ A.carrier := (squareCarrierEquiv 1).trans C |
+14 −1 routes/p1-surfaces-cuts/README.md View file
| @@ -7,6 +7,19 @@ status: working | ||
| 7 | 7 | P-1 for the folder `PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts` (78 files): fix the linter |
| 8 | 8 | warnings Lean prints for it, without changing any statement. |
| 9 | 9 | |
| 10 | +## What I did | |
| 11 | + | |
| 12 | +No Lean on my machine, so the fixes come from the `build` log of `main` (job 660). That log only keeps its last 25 | |
| 13 | +lines, and they show three warnings, all in this folder: | |
| 14 | + | |
| 15 | +- `OriginalBridgeReversal.lean:152`: `hbound` unused in `source_bridge_endpoint_reversal_of_scalar` → `_hbound`. | |
| 16 | +- `OriginalBridgeScalarCharts.lean:33`: `hαβ` unused in `scalar_bridge_chart` → `_hαβ` (its one caller passes it | |
| 17 | + positionally, so nothing else moves). | |
| 18 | +- `OriginalPeriodicSquareMap.lean:55`: `letI` in a proof → `let`, as the `haveILetI` linter suggests. | |
| 19 | + | |
| 20 | +Only binder names and one tactic keyword change; no statement changes. `python3 checks/challenge.py .` says ok. | |
| 21 | + | |
| 10 | 22 | ## Next |
| 11 | 23 | |
| 12 | -Fix the warnings the `build` log of `main` (job 660) shows for this folder, then let `build` judge the push. | |
| 24 | +Read the `build` log on this branch's head: if its tail shows further warnings for files of this folder (the log of | |
| 25 | +`main` was cut before them), fix those on this branch and push again. | |