Lemma 5 (p. 6) — polynomial-time computability of `huffmanEncodeMap`
ProvedSyncPrefix.Huffman.huffmanEncodeMap_polyTimehuffman-codesinapproximabilitysynchronizing-automata
This lemma states that the total unary encoding transformation huffmanEncodeMap for the Lemma 5 construction (Ryzhikov and Szykuła, 2018, p. 6) is computable in polynomial time.
Recall that on any input string , huffmanEncodeMap decodes into a complete deterministic automaton and outputs the unary encoding of the Huffman decoder automaton :
Together with the exact decoding identity , this yields the polynomial-time encoding reduction for Lemma 5.
Preamble
import Definitions.Def_SyncPrefix_Huffman_AutomatonCodec
Formal statement
namespace SyncPrefix.Huffman
theorem huffmanEncodeMap_polyTime :
CookPvsNP.PolyTimeComputable huffmanEncodeMap := by sorry
end SyncPrefix.HuffmanSource
Ryzhikov & Szykuła, Finding Short Synchronizing Words for Prefix Codes, arXiv:1806.06299v1, p. 6, Lemma 5