Corollary 8, p. 8 — polynomial-time alphabet reduction via Wielandt code composition
ProvedSyncPrefix.Huffman.wielandt_encoding_reductionhuffman-codesinapproximabilitysynchronizing-automata
In the proof of Corollary 8 (p. 8) of Ryzhikov and Szykuła, a synchronizing Huffman decoder with states and letters is reduced to a binary () Huffman decoder by choosing with and , duplicating a letter of to obtain over an alphabet of size (preserving the Huffman decoder property, synchronizability, and shortest synchronizing word length), and reindexing the tree-substitution composition decoder composeDecoder δY (wielandtCode L) e into an Automaton with states.
Furthermore, given any polynomial-time value algorithm on binary automata encodings, the algorithm that constructs the encoding of from , runs , and divides the unary output length by is polynomial-time computable.
Preamble
import Definitions.Def_SyncPrefix_Huffman_Constructions
Formal statement
namespace SyncPrefix.Huffman
theorem wielandt_encoding_reduction (Alg : List (Option Bool) → List Unit)
(hAlg : CookPvsNP.PolyTimeComputable Alg) :
∃ Alg_H : List (Option Bool) → List Unit, CookPvsNP.PolyTimeComputable Alg_H ∧
∀ AH : Automaton, IsHuffmanDecoder AH.δ → IsSynchronizing AH.δ → 2 ≤ AH.n → 2 ≤ AH.k →
∃ (L : ℕ) (δY : Fin AH.n → Fin (wielandtCode L).card → Fin AH.n)
(e : Fin (wielandtCode L).card ≃ {z // z ∈ wielandtCode L}) (AB : Automaton),
1 ≤ L ∧ (L : ℝ) ≤ 2 * Real.log AH.k + 2 ∧
IsHuffmanDecoder δY ∧ IsSynchronizing δY ∧ syncLength δY = syncLength AH.δ ∧
AB.k = 2 ∧ AH.n ≤ AB.n ∧ AB.n ≤ 6 * AH.n * AH.k ∧
(IsHuffmanDecoder (composeDecoder δY (wielandtCode L) e) → IsHuffmanDecoder AB.δ) ∧
(IsSynchronizing (composeDecoder δY (wielandtCode L) e) → IsSynchronizing AB.δ) ∧
syncLength AB.δ = syncLength (composeDecoder δY (wielandtCode L) e) ∧
(Alg_H AH.encode).length = (Alg AB.encode).length / L := by sorry
end SyncPrefix.HuffmanSource
Ryzhikov & Szykuła, Finding Short Synchronizing Words for Prefix Codes, arXiv:1806.06299v1, p. 8, proof of Corollary 8