{"repo":"pvsnp","rev":"examples/first-symbol","blob":{"commit":"68ee862ecf840b5859cdbb47a9a45c1bbaebcb39","path":"ROADMAP.md","oid":"d04c1bee6626764ed879fb5375673831db1d62d8","size":3012,"range_start":0,"range_end":3012,"truncated":false,"binary":false,"encoding":"utf8","content":"# Roadmap\n\nEach milestone ends with `lake build` passing and its new theorems added to the axiom audit\n([`Audit/Axioms.lean`](Audit/Axioms.lean)). A milestone that only *states* something says so in its\nname, and its statement is a `def … : Prop`, never a theorem with `sorry`.\n\n## 1. Foundations — done\n\nLanguages, multi-tape machines with finite control, time-bounded deciding / computing / verifying,\nthe classes P and NP, polynomial-time reductions, NP-hardness and NP-completeness, and the P vs NP\nstatement. Proved: P ⊆ NP, P closed under complement, reductions reflexive and transitive, P and NP\nclosed under reductions, an NP-complete language is in P iff P = NP.\n\n## 2. Examples — done\n\nConcrete machines for small languages over `Bool` (the empty word, \"starts with `true`\"), with their\ntime bounds proved by running them. Shows the definitions are inhabited by real machines, not only by\nconstructions.\n\nDone when: at least two concrete languages are proved in P by explicit machines. Done in\n[`PvsNP/Examples/FirstSymbol.lean`](PvsNP/Examples/FirstSymbol.lean): \"starts with `true`\", the\nempty word and the non-empty words, all from one machine that reads a single cell.\n\n## 3. Output length from running time\n\nProve that a machine running `t` steps on input `x` leaves no non-blank cell outside `[-t, |x| + t)`,\nhence `|f x| ≤ |x| + T |x|` for a machine computing `f` within `T`. Then drop the explicit output\nbound from `PolyTimeComputable`.\n\nDone when: `PolyTimeComputable` has no output-length field and every theorem still builds.\n\n## 4. Short certificates suffice\n\nProve a locality lemma (a run of `t` steps reads only cells within distance `t` of where the heads\nstarted) and conclude: if `V` verifies `L` within `T`, then `x ∈ L ↔ ∃ w, |w| ≤ T |x| ∧ V accepts\n(x, w)`. This connects the Sipser-style definition to the textbook one with an explicit length bound.\n\n## 5. Boolean formulas\n\nFormulas and CNF over variables `Nat`, assignments, evaluation, and an encoding of CNF formulas as\n`List Bool` with a proof that decoding inverts encoding.\n\n## 6. SAT ∈ NP\n\nDefine `SAT : Language Bool` (the encodings of satisfiable CNF formulas) and build a verifier: the\ncertificate is an assignment, and the verifier evaluates the formula in polynomial time.\n\n## 7. Cook–Levin, stated\n\n`def CookLevin : Prop := NPComplete SAT`, with the consequence `CookLevin → (PNeNP ↔ ¬ InP SAT)`\nproved. Stating it is cheap; it is listed separately so that it is never mistaken for a proof.\n\n## 8. Cook–Levin, proved\n\nThe tableau construction: from a verifier and an input, a CNF formula whose satisfying assignments are\naccepting runs, computed in polynomial time.\n\n## 9. Alphabet independence\n\nP and NP over `Bool` correspond to P and NP over any finite alphabet with at least two symbols, via\nblock encodings. Until then `PEqNP` is stated over `Bool` only.\n\n## Not on the roadmap\n\nA proof of P ≠ NP or of P = NP. This project formalizes the question; it does not claim an answer.\n"},"raw":"/r/pvsnp/raw/examples%2Ffirst-symbol/ROADMAP.md","jit":null,"api":"/v1/repos/pvsnp/blob?rev=examples%2Ffirst-symbol&path=ROADMAP.md","api_url":"https://git.neoopensource.com/v1/repos/pvsnp/blob?rev=examples%2Ffirst-symbol&path=ROADMAP.md"}