Lemma 5 — Combinatorial Correctness of the Huffman Decoder Construction
ProvedSyncPrefix.Huffman.huffmanOfStronglyAcyclic_specautomatahuffman-codessynchronizing-words
Let be a complete deterministic automaton that is strongly acyclic and synchronizing, and let be the automaton over letters with at most states constructed in the proof of Lemma 5 (Ryzhikov–Szykuła 2018, p. 6). Then:
This theorem isolates the combinatorial core of Lemma 5: attaching a delay stem of auxiliary states followed by a caterpillar binary tree reaching the source states of makes strongly connected with finitely many first-return words at the sink , while preserving the length of the shortest synchronizing word.
Preamble
import Definitions.Def_SyncPrefix_Huffman_Automata import Definitions.Def_SyncPrefix_Huffman_Lemma5Construction
Formal statement
namespace SyncPrefix.Huffman
/-- Combinatorial specification of `huffmanOfStronglyAcyclic` for Lemma 5 (p. 6): for every
synchronizing strongly acyclic automaton `A`, the constructed automaton `huffmanOfStronglyAcyclic A`
is a synchronizing Huffman decoder with the same shortest synchronizing word length as `A`. -/
theorem huffmanOfStronglyAcyclic_spec (A : Automaton)
(hSA : StronglyAcyclic A.δ) (hSync : IsSynchronizing A.δ) :
IsHuffmanDecoder (huffmanOfStronglyAcyclic A).δ ∧
IsSynchronizing (huffmanOfStronglyAcyclic A).δ ∧
syncLength (huffmanOfStronglyAcyclic A).δ = syncLength A.δ := by sorry
end SyncPrefix.HuffmanSource
Ryzhikov–Szykuła 2018, Synchronizing Prefix Codes and Huffman’s Algorithm, arXiv:1806.06299v1, p. 6, Lemma 5