For every finite binary code , Kraizberg (arXiv:2603.27656, 2026) proved that there exists a prefix-free code such that for every word length the sums over codewords of length coincide between and , where counts occurrences of the letter . This is a weak structural form of commutative equivalence, motivated by the Schützenberger commutative equivalence conjecture for maximal codes and constrained by Shor's counterexample to the unrestricted conjecture. The paper's tree-based construction gives no control on , and Remark 1.10 shows exact cardinality equality is impossible in general. The paper explicitly asks whether can always be chosen with , or even . No subsequent work addressing this question is known; it remains open.
Background
A code over the binary alphabet is a set of finite words in which every concatenation of codewords decodes uniquely (a uniquely decodable set); a prefix-free code is a code in which no codeword is a prefix of another, the standard structure making decoding instantaneous. Two finite codes are commutatively equivalent if there is a bijection preserving the number of occurrences of each letter in every word (i.e., preserving Parikh vectors, the vectors of per-letter occurrence counts). Perrin and Schützenberger asked whether every finite code is commutatively equivalent to a prefix-free code; Schützenberger later restricted the conjecture to maximal codes — codes to which no word can be added without destroying unique decodability — yielding the Commutative Equivalence Conjecture (the history and partial results are covered in Berstel, Perrin, and Reutenauer's monograph Codes and Automata). Shor (1985), disproving the related triangle conjecture, exhibited a finite code that is not commutatively equivalent to any prefix-free code, so the unrestricted conjecture is false; Mauceri and Restivo (1981) exhibited families of codes that are commutatively equivalent to prefix codes. In this context, Dean Kraizberg (arXiv:2603.27656, March 2026) established a weak structural surrogate: writing for the number of occurrences of in , his Theorem 1.9 states that for every code there exists a prefix-free code such that for every , . The proof goes through a bijection between prefix-free codes and a class of rooted trees called symmetric trees (every branching vertex has two identical child subtrees), under which the number of leaves at depth equals the length- weighted sum above; each codeword of the associated prefix-free code corresponds to exactly leaves of the tree, so the constructed tree has leaves in total and the construction controls the cardinality of only through the coarse bound , which can exceed by as much as , a potentially enormous gap. Kraizberg's Remark 1.10 shows the gap cannot always be zero: a prefix-free satisfying the Theorem 1.9 conclusion for with would be commutatively equivalent to , contradicting Shor's result. The paper's Section 3 (Further Discussion) then asks how small the gap can be, which is the present problem. Kraizberg also states, with proof omitted, an extension to alphabets of size : for each letter there is a prefix-free over the same alphabet with matched for all ; the paper poses the cardinality question explicitly only for the binary theorem, to which this extension is a natural analogue.
Problem Statement
For every finite binary code , Kraizberg's Theorem 1.9 guarantees a prefix-free code such that for every , where is the number of occurrences of the letter in . The open question, posed in Section 3 of arXiv:2603.27656: can always be chosen so that ? Can it even be chosen so that ? That is, determine (with proof) the optimal uniform control on the cardinality gap between a code and a prefix-free code satisfying the per-length weighted-sum identity. The two tiers are nested — a gap of implies a gap of . The paper poses this cardinality question explicitly for the binary theorem (Theorem 1.9).
References
- Dean Kraizberg, "A Weak Structural Form of Commutative Equivalence in Finite Codes", arXiv:2603.27656 (2026), https://arxiv.org/abs/2603.27656
- P. W. Shor, "A counterexample to the triangle conjecture", Journal of Combinatorial Theory, Series A 38(1):110–112 (1985), DOI 10.1016/0097-3165(85)90032-9, https://doi.org/10.1016/0097-3165(85)90032-9
- S. Mauceri and A. Restivo, "A family of codes commutatively equivalent to prefix codes", Information Processing Letters 12(1):1–4 (1981), DOI 10.1016/0020-0190(81)90064-8, https://doi.org/10.1016/0020-0190(81)90064-8
- J. Berstel, D. Perrin, and C. Reutenauer, "Codes and Automata", Encyclopedia of Mathematics and its Applications 129, Cambridge University Press (2009), DOI 10.1017/CBO9781139195768, ISBN 9780521888318, https://doi.org/10.1017/CBO9781139195768
- Dean Kraizberg, "Winning Criteria for Open Games: A Game-Theoretic Approach to Prefix Codes", arXiv:2601.17521 (2026), https://arxiv.org/abs/2601.17521