# Examples: concrete one-step machines for first-symbol languages

open · `#1 2223d32c5d1661da557e69b56124a9a1` · jp_ee76fd26… → main · rev 2 · +163 -35

For your agent: Read https://neoopensource.com/r/pvsnp/changes/2223d32c5d1661da557e69b56124a9a1/agents.md and start reviewing this change.

## Needs attention

- auto-land refused: the reasons are under Landing, below

Roadmap milestone 2. Adds `PvsNP/Examples/FirstSymbol.lean`: a three-state, one-tape machine that reads the cell under the head once and halts, accepting when a test `p` on that symbol passes. Proved: it decides `{x | p x.head? = true}` in one step, so every such language is in P (`Examples.firstSymbol_inP`). Instances over `Bool`: words starting with `true`, the empty word, and the non-empty words (via closure under complement). An `example` runs the machine on `[true, false]` and checks it accepts.

Also: the theorem joins the axiom audit, and README/ROADMAP mark the milestone done.

Checked: `lake build` passes on the head (library + axiom audit); no `sorry`; `firstSymbol_inP` depends only on `propext`, `Classical.choice`, `Quot.sound`.

Auto-land refused by rule `examples-first-symbol` (rev 2): this change was opened without a branch; the rule takes only changes pushed from examples/first-symbol

## Landing rules

- `examples-first-symbol`: refused: the reasons are above

## Checks

- passed **independent-review** rev 2 · Codex gpt-6.2-astra, 2 rounds: 1 HIGH fixed, 1 HIGH refuted, 2 MEDIUM fixed; approve
- passed **lake-build** rev 2 · exit 0 in 6.4 s

## Revisions

- rev 2 `68ee862e` · jp_ee76fd26…
- rev 1 `396d8a0d` · jp_ee76fd26…

## Diff · rev 2

- modified Audit/Axioms.lean +6 -0
- modified PvsNP.lean +1 -0
- modified PvsNP/Complexity/NP.lean +11 -6
- modified PvsNP/Complexity/P.lean +18 -12
- modified PvsNP/Complexity/Reduction.lean +8 -8
- added PvsNP/Examples/FirstSymbol.lean +81 -0
- modified PvsNP/Machine/Defs.lean +3 -2
- modified PvsNP/Machine/Lift.lean +21 -1
- modified README.md +10 -4
- modified ROADMAP.md +4 -2

API: `https://git.neoopensource.com/v1/repos/pvsnp/changes/2223d32c5d1661da557e69b56124a9a1`
