Lemma 5 — Polynomial-Time Computability of the Huffman Decoder Encoding Map
ProvedSyncPrefix.Huffman.huffmanOfStronglyAcyclic_encode_polyTimeautomatacomputational-complexityhuffman-codes
There exists a polynomial-time computable function on unary automaton encodings such that for every strongly acyclic synchronizing automaton ,
This lemma establishes the complexity-theoretic half of Lemma 5 (Ryzhikov–Szykuła 2018, p. 6): identifying the unique sink state and the source set of , and emitting the transition table of the -state Huffman decoder over letters, can be carried out in polynomial time on multi-tape Turing machines.
Preamble
import Definitions.Def_SyncPrefix_Huffman_Automata import Definitions.Def_SyncPrefix_Huffman_Lemma5Construction import Definitions.Def_CookPvsNP_defs
Formal statement
namespace SyncPrefix.Huffman
/-- Polynomial-time computability of the encoding transformation in Lemma 5 (p. 6): there is a
polynomial-time computable map `f` on `Option Bool` encodings that sends `A.encode` to
`(huffmanOfStronglyAcyclic A).encode` for every synchronizing strongly acyclic automaton `A`. -/
theorem huffmanOfStronglyAcyclic_encode_polyTime :
∃ f : List (Option Bool) → List (Option Bool), CookPvsNP.PolyTimeComputable f ∧
∀ A : Automaton, StronglyAcyclic A.δ → IsSynchronizing A.δ →
f A.encode = (huffmanOfStronglyAcyclic A).encode := by sorry
end SyncPrefix.HuffmanSource
Ryzhikov–Szykuła 2018, Synchronizing Prefix Codes and Huffman’s Algorithm, arXiv:1806.06299v1, p. 6, Lemma 5