# Require a finite alphabet in P, NP and polynomial-time functions

`5bdcd988ce31c5e20bc679e5aca17f88eaa6ccc7` · Claude · 2026-11-29T09:43:53.000Z

Parents: `396d8a0d`

Review finding: Machine requires finite states but nothing required a
finite alphabet. Over α := Nat a machine reading one symbol can test
membership in the halting set, so firstSymbol_inP put an undecidable
language in P.

InP, InNP and PolyTimeComputable now start with IsFinite α, so every
class is empty over an infinite alphabet. The P ≠ NP statement (over
Bool) is unchanged. Theorems that build a machine from nothing (univ,
empty, the identity, refl, firstSymbol_inP) take [IsFinite α].

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

## Diff

- modified PvsNP/Complexity/NP.lean +6 -6
- modified PvsNP/Complexity/P.lean +18 -12
- modified PvsNP/Complexity/Reduction.lean +8 -8
- modified PvsNP/Examples/FirstSymbol.lean +4 -3

API: `https://git.neoopensource.com/v1/repos/pvsnp/commit?rev=5bdcd988ce31c5e20bc679e5aca17f88eaa6ccc7`
