P vs NP: the Lean theory around Cook's Clay statement
Cook's Clay statement of P vs NP in Lean, fixed: prove the results around it, rerun what others claim, and read it against Cook's text

fix: rewrite maps after exposing concrete pair symbols
Browse filesChecks
build Program · lake build, no sorry
Details
challenge Program · statement files and build config
Details
+1 −1 Problems/PVersusNP/Machines/CertificateBound.lean View file
| @@ -449,7 +449,7 @@ def checked {α Γ : Type} [Fintype Γ] {ea : FinEncoding α} | ||
| 449 | 449 | change List.map (fun a : ea.Γ ⊕ Option Γ => h.inputAlphabet.symm a) |
| 450 | 450 | ((ea.encode p.1).map Sum.inl ++ Sum.inr none :: p.2.map (fun b => Sum.inr (some b))) = |
| 451 | 451 | xs ++ sep :: ys |
| 452 | - simp only [List.map_append, List.map_cons, List.map_map, xs, ys, sep] <;> rfl | |
| 452 | + rw [List.map_append, List.map_cons, List.map_map, List.map_map] <;> rfl | |
| 453 | 453 | have noSep : ∀ x ∈ xs, x ≠ sep := by |
| 454 | 454 | intro x hx eq |
| 455 | 455 | obtain ⟨a, _, rfl⟩ := List.mem_map.mp hx |