# ROADMAP.md @ 68ee862ecf840b5859cdbb47a9a45c1bbaebcb39

````
# Roadmap

Each milestone ends with `lake build` passing and its new theorems added to the axiom audit
([`Audit/Axioms.lean`](Audit/Axioms.lean)). A milestone that only *states* something says so in its
name, and its statement is a `def … : Prop`, never a theorem with `sorry`.

## 1. Foundations — done

Languages, multi-tape machines with finite control, time-bounded deciding / computing / verifying,
the classes P and NP, polynomial-time reductions, NP-hardness and NP-completeness, and the P vs NP
statement. Proved: P ⊆ NP, P closed under complement, reductions reflexive and transitive, P and NP
closed under reductions, an NP-complete language is in P iff P = NP.

## 2. Examples — done

Concrete machines for small languages over `Bool` (the empty word, "starts with `true`"), with their
time bounds proved by running them. Shows the definitions are inhabited by real machines, not only by
constructions.

Done when: at least two concrete languages are proved in P by explicit machines. Done in
[`PvsNP/Examples/FirstSymbol.lean`](PvsNP/Examples/FirstSymbol.lean): "starts with `true`", the
empty word and the non-empty words, all from one machine that reads a single cell.

## 3. Output length from running time

Prove that a machine running `t` steps on input `x` leaves no non-blank cell outside `[-t, |x| + t)`,
hence `|f x| ≤ |x| + T |x|` for a machine computing `f` within `T`. Then drop the explicit output
bound from `PolyTimeComputable`.

Done when: `PolyTimeComputable` has no output-length field and every theorem still builds.

## 4. Short certificates suffice

Prove a locality lemma (a run of `t` steps reads only cells within distance `t` of where the heads
started) and conclude: if `V` verifies `L` within `T`, then `x ∈ L ↔ ∃ w, |w| ≤ T |x| ∧ V accepts
(x, w)`. This connects the Sipser-style definition to the textbook one with an explicit length bound.

## 5. Boolean formulas

Formulas and CNF over variables `Nat`, assignments, evaluation, and an encoding of CNF formulas as
`List Bool` with a proof that decoding inverts encoding.

## 6. SAT ∈ NP

Define `SAT : Language Bool` (the encodings of satisfiable CNF formulas) and build a verifier: the
certificate is an assignment, and the verifier evaluates the formula in polynomial time.

## 7. Cook–Levin, stated

`def CookLevin : Prop := NPComplete SAT`, with the consequence `CookLevin → (PNeNP ↔ ¬ InP SAT)`
proved. Stating it is cheap; it is listed separately so that it is never mistaken for a proof.

## 8. Cook–Levin, proved

The tableau construction: from a verifier and an input, a CNF formula whose satisfying assignments are
accepting runs, computed in polynomial time.

## 9. Alphabet independence

P and NP over `Bool` correspond to P and NP over any finite alphabet with at least two symbols, via
block encodings. Until then `PEqNP` is stated over `Bool` only.

## Not on the roadmap

A proof of P ≠ NP or of P = NP. This project formalizes the question; it does not claim an answer.

````

API: `https://git.neoopensource.com/v1/repos/pvsnp/blob?rev=68ee862ecf840b5859cdbb47a9a45c1bbaebcb39&path=ROADMAP.md`
