Deleting a fixed prefix is polynomial-time computable
ProvedCookPvsNP.drop_polyTimeformalization-lemmapolynomial-timeturing-machine
For every finite alphabet and every fixed natural number , deleting the first letters is polynomial-time computable:
The result is empty if the input has fewer than letters. The machine and polynomial bound may depend on , which is fixed rather than part of the input.
This elementary string transformation allows fixed headers to be removed when adapting encoded reductions.
Formalization Note. Computability uses the original Cook one-tape model, its output convention, and the deadline .
Preamble
import Definitions.Def_CookPvsNP_defs set_option autoImplicit false
Formal statement
theorem CookPvsNP.drop_polyTime {A : Type} [Fintype A] [DecidableEq A] (n : ℕ) :
CookPvsNP.PolyTimeComputable (fun w : List A => w.drop n) := by sorrySource
Auxiliary formalization lemma for Błażewicz, Lenstra and Rinnooy Kan (1983), Scheduling subject to resource constraints: classification and complexity, p. 15, Theorem 2, https://doi.org/10.1016/0166-218X(83)90012-4. Machine model: S. Cook, The P versus NP problem, Appendix.