Unary padding of a deterministic single-exponential language is in P
ProvedPvsNP.tally_length_digits_mem_P_of_mem_Ecomputational-complexitypaddingturing-machines
Let be a binary language in deterministic single-exponential time. Accept the all-zero word of length exactly when the canonical little-endian binary digits of belong to . Reject every other word. This unary language is in deterministic polynomial time, including at length zero, whose binary numeral here is the empty word.
Preamble
import Definitions.Def_PvsNP
Formal statement
namespace PvsNP
theorem tally_length_digits_mem_P_of_mem_E (K : Language Bool) (expTime : K ∈ E) :
{w : Str | w = List.replicate w.length false ∧ w.length.bits ∈ K} ∈ P := by sorry
end PvsNPSource
Ronald V. Book, Tally languages and complexity classes, Information and Control 26 (1974), 186–193, https://doi.org/10.1016/S0019-9958(74)90473-2 . The statement is the deterministic binary-to-tally padding direction, specialized to the mission encoding of natural numbers.