Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2, p. 5 — unless P = NP, Short Sync Word on n-state strongly acyclic automata over alphabets of size n^{1+γ} has no polynomial-time c log n-approximation

Proved
SyncPrefix.Huffman.theorem_2

by mikedeng1 · Oct 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

inapproximabilityp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1strongly-acyclic-automatasynchronizing-automata

Assume the Set Cover hardness of [4]: for every γ>0\gamma > 0γ>0 there is c′>0c' > 0c′>0 such that a polynomial-time c′log⁡pc' \log pc′logp-approximation of Set Cover on instances with ∣C∣≤∣X∣1+γ|C| \le |X|^{1+\gamma}∣C∣≤∣X∣1+γ, p=∣X∣p = |X|p=∣X∣, implies P = NP.

Then for every γ>0\gamma > 0γ>0 there is c>0c > 0c>0 with the following property. If some polynomial-time algorithm, on every synchronizing strongly acyclic automaton AAA with nnn states (for nnn large enough) over an alphabet of at most n1+γn^{1+\gamma}n1+γ letters, outputs a number vvv with

ℓ(A)≤v≤clog⁡n⋅ℓ(A),\ell(A) \le v \le c \log n \cdot \ell(A),ℓ(A)≤v≤clogn⋅ℓ(A),

then P = NP.

It is the first of the paper's logarithmic inapproximability results; Lemma 5 transfers it to Huffman decoders.

Differences from the source:

  • reading: "unless P = NP", proved from [4] → the Set Cover hardness of [4] is a hypothesis (SetCoverHardness); reason: it is a cited theorem the paper does not prove.
  • reading: "approximated in polynomial time within a factor of c log n" → value form, an algorithm outputting a number between ℓ(A) and c log n · ℓ(A) on every synchronizing instance of the class with n ≥ n₀; reason: Short Sync Word outputs a length; this is the form of the published Feige definition. [4]'s hardness is read in the same value form.
  • reading: "over an alphabet of size n^{1+γ}" → at most n^{1+γ} letters; reason: n^{1+γ} is not an integer in general, and the proof produces m < p^{1+γ} letters.
  • encoding: automata, P and NP → Automaton with a unary encoding, CookPvsNP Turing machines, natural logarithm; reason: Lean conventions, the base of the logarithm is absorbed in c.
Preamble
import Mathlib
import Definitions.Def_SyncPrefix_Huffman_Complexity
Formal statement
namespace SyncPrefix.Huffman

/-- Theorem 2 (p. 5), under the Set Cover hardness of [4]: for every `γ > 0` there is `c > 0`
such that a polynomial-time `c log n`-approximation of Short Sync Word on `n`-state strongly
acyclic automata over alphabets of size at most `n^{1+γ}` implies `P = NP`. -/
theorem theorem_2 (hSC : SetCoverHardness) :
    ∀ γ : ℝ, 0 < γ → ∃ c : ℝ, 0 < c ∧
      (SSWApproxWithin (fun A => StronglyAcyclic A.δ ∧ (A.k : ℝ) ≤ (A.n : ℝ) ^ (1 + γ))
        (fun n => c * Real.log n) → PEqNP) := by sorry

end SyncPrefix.Huffman
Source
Ryzhikov & Szykuła, Finding Short Synchronizing Words for Prefix Codes, arXiv:1806.06299v1, p. 5, Theorem 2 (and the Set Cover hardness of [4] quoted on p. 5)
Human review
  • Endorsed by Shuze Chen · Oct 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 24, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me