Add a roadmap from SAT ∈ NP to Cook–Levin

efdb9565Claude · 6d agoparent d14b391bfiles
Nine milestones, each with what done means. Statements that are only
stated (Cook–Levin as a Prop) are separate milestones from their proofs,
and a proof of P ≠ NP is explicitly not on the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Diff

1 files changed +63 -0
A ROADMAP.md +63 -0
@@ -0,0 +1,63 @@
1+# Roadmap
2+
3+Each milestone ends with `lake build` passing and its new theorems added to the axiom audit
4+([`Audit/Axioms.lean`](Audit/Axioms.lean)). A milestone that only *states* something says so in its
5+name, and its statement is a `def … : Prop`, never a theorem with `sorry`.
6+
7+## 1. Foundations — done
8+
9+Languages, multi-tape machines with finite control, time-bounded deciding / computing / verifying,
10+the classes P and NP, polynomial-time reductions, NP-hardness and NP-completeness, and the P vs NP
11+statement. Proved: P ⊆ NP, P closed under complement, reductions reflexive and transitive, P and NP
12+closed under reductions, an NP-complete language is in P iff P = NP.
13+
14+## 2. Examples
15+
16+Concrete machines for small languages over `Bool` (the empty word, "starts with `true`"), with their
17+time bounds proved by running them. Shows the definitions are inhabited by real machines, not only by
18+constructions.
19+
20+Done when: at least two concrete languages are proved in P by explicit machines.
21+
22+## 3. Output length from running time
23+
24+Prove that a machine running `t` steps on input `x` leaves no non-blank cell outside `[-t, |x| + t)`,
25+hence `|f x| ≤ |x| + T |x|` for a machine computing `f` within `T`. Then drop the explicit output
26+bound from `PolyTimeComputable`.
27+
28+Done when: `PolyTimeComputable` has no output-length field and every theorem still builds.
29+
30+## 4. Short certificates suffice
31+
32+Prove a locality lemma (a run of `t` steps reads only cells within distance `t` of where the heads
33+started) and conclude: if `V` verifies `L` within `T`, then `x ∈ L ↔ ∃ w, |w| ≤ T |x| ∧ V accepts
34+(x, w)`. This connects the Sipser-style definition to the textbook one with an explicit length bound.
35+
36+## 5. Boolean formulas
37+
38+Formulas and CNF over variables `Nat`, assignments, evaluation, and an encoding of CNF formulas as
39+`List Bool` with a proof that decoding inverts encoding.
40+
41+## 6. SAT ∈ NP
42+
43+Define `SAT : Language Bool` (the encodings of satisfiable CNF formulas) and build a verifier: the
44+certificate is an assignment, and the verifier evaluates the formula in polynomial time.
45+
46+## 7. Cook–Levin, stated
47+
48+`def CookLevin : Prop := NPComplete SAT`, with the consequence `CookLevin → (PNeNP ↔ ¬ InP SAT)`
49+proved. Stating it is cheap; it is listed separately so that it is never mistaken for a proof.
50+
51+## 8. Cook–Levin, proved
52+
53+The tableau construction: from a verifier and an input, a CNF formula whose satisfying assignments are
54+accepting runs, computed in polynomial time.
55+
56+## 9. Alphabet independence
57+
58+P and NP over `Bool` correspond to P and NP over any finite alphabet with at least two symbols, via
59+block encodings. Until then `PEqNP` is stated over `Bool` only.
60+
61+## Not on the roadmap
62+
63+A proof of P ≠ NP or of P = NP. This project formalizes the question; it does not claim an answer.