Lemma 5, p. 6 — a synchronizing strongly acyclic automaton over k letters becomes, in polynomial time, a Huffman decoder over k + 2 letters with the same shortest synchronizing length
ProvedSyncPrefix.Huffman.lemma_5huffman-codesp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1reductionssynchronizing-automata
There is a polynomial-time computable map on encodings of automata with the following property. For every synchronizing strongly acyclic automaton with states over an alphabet of size , the map sends the code of to the code of an automaton such that
- is a Huffman decoder over an alphabet of size ;
- is synchronizing and ;
- , where is the number of states of .
In the paper, adds two letters and a full binary tree rooted at the sink of whose leaves are the states of without incoming transitions. The lemma moves inapproximability from strongly acyclic automata to Huffman decoders (Corollary 6).
Differences from the source:
- generalization: "there exists a Huffman decoder A_H … with the same length of a shortest synchronizing word" → also n ≤ n_H ≤ 2n; reason: the construction adds fewer than n tree states, and Corollary 6 (iii) needs the bound; dropping the conjunct gives the source's statement.
- reading: Huffman decoder → strongly connected, with a state whose set of first-return words is finite; reason: the paper introduces first-return codes for strongly connected automata (p. 3), and the construction produces strongly connected decoders; it is the stronger conclusion.
- encoding: "A_H can be constructed in polynomial time" → a polynomial-time computable map f on encodings with f(code(A)) = code(A_H) for every synchronizing strongly acyclic A; reason: Lean convention; f is unconstrained on other inputs.
Preamble
import Mathlib import Definitions.Def_SyncPrefix_Huffman_Automata import Definitions.Def_CookPvsNP_defs
Formal statement
namespace SyncPrefix.Huffman
/-- Lemma 5 (p. 6): a polynomial-time computable map on encodings sends every synchronizing
strongly acyclic automaton over `k` letters to a Huffman decoder over `k + 2` letters with the
same shortest synchronizing word length and between `n` and `2n` states. -/
theorem lemma_5 :
∃ f : List (Option Bool) → List (Option Bool), CookPvsNP.PolyTimeComputable f ∧
∀ A : Automaton, StronglyAcyclic A.δ → IsSynchronizing A.δ →
∃ AH : Automaton, f A.encode = AH.encode ∧ IsHuffmanDecoder AH.δ ∧ AH.k = A.k + 2 ∧
IsSynchronizing AH.δ ∧ syncLength AH.δ = syncLength A.δ ∧
A.n ≤ AH.n ∧ AH.n ≤ 2 * A.n := by sorry
end SyncPrefix.Huffman
Source
Ryzhikov & Szykuła, Finding Short Synchronizing Words for Prefix Codes, arXiv:1806.06299v1, p. 6, Lemma 5 (and its proof)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.