A basic open decision problem in the algebraic theory of variable-length codes asks whether one can decide, given a finite code over a finite alphabet , whether is contained in some finite maximal code over (the inclusion problem; its decidability is the inclusion conjecture). Negative instances exist since Restivo (1977) constructed finite codes with no finite completion, and De Felice (2007) proved decidability for codes of the special form with and , where counts the prime factors of with multiplicity; in that case the containing code may even be taken factorizing. As of De Felice's 2023 follow-up — and of Cordero's 2024 extension of the triangle conjecture to with at most three prime factors — both restrictions remain: decidability for , and for arbitrary finite codes, is open. The problem asks for a proven decision algorithm for the general case, or a proof of undecidability.
Background
A code over a finite alphabet is a set of words such that every word of the submonoid (all concatenations of words of ) has a unique factorization over ; equivalently, is a basis of a free submonoid of the free monoid . A code is maximal if it is inclusion-maximal among codes over ; every finite maximal code contains a power of each letter (the order of ). Maximal codes always exist by Zorn's lemma, but they may be infinite, and Restivo (1977) exhibited finite codes not contained in any finite maximal code. The inclusion problem asks, for a given finite code , whether a finite maximal code exists (a finite completion of ); the inclusion conjecture asserts that this problem is decidable.
The structural side of the question comes from Schützenberger's algebraic approach. Identify a finite language with its characteristic polynomial in (the ring of polynomials in noncommuting letters with integer coefficients; denotes the formal sum of the words of , and is the empty word). Reutenauer (1985) proved that every finite maximal code satisfies for some polynomials ; the factorization conjecture, formulated by Schützenberger and open since the 1980s, asserts that can always be chosen with coefficients and , i.e. for finite subsets . Codes with such a positive factorization are called factorizing codes. Two further long-standing conjectures on finite maximal codes, the commutative equivalence conjecture (every finite maximal code is commutatively equivalent to a prefix code, i.e. uses each letter the same total number of times as some code in which no word is a prefix of another) and the triangle conjecture (every finite bayonet code, i.e. a code whose words all have the form , that embeds in a finite maximal code satisfies ; the unrestricted form was refuted by Shor in 1985), are related: factorizing codes are commutatively prefix, and both are connected to factorizations of cyclic groups.
A pair of subsets is a factorization of the cyclic group if every residue class modulo is uniquely with , . Krasner factorizations (those obtained from a chain of divisors of via products of geometric-like polynomial quotients) and Hajós factorizations (a class built from Krasner factorizations by a substitution operation) control the structure of factorizing codes intersected with : De Felice introduced good arrangements of such intersections, proved that good-arrangement sets coming from a finite maximal code are constrained by Krasner companions, and showed that some good-arrangement sets are not codes, so the correspondence is delicate. Let denote the number of factors in the prime factorization of (with multiplicity). De Felice (2007) proved that for it is decidable whether there exist with and a finite maximal factorizing code with (in the variant where is given as part of the input code, decidability for codes was established in her 2023 paper); her companion paper (2007, IJAC) treats the corresponding completions constructively. Zhang and Shum (2017) proved a structural theorem tying arbitrary finite maximal codes to factorizations of cyclic groups, and De Felice (2023) re-proved it, deduced the triangle conjecture for when ( prime), and recovered the decidability result for a product of at most two primes — still inside the barrier. Cordero (2024) then settled the triangle conjecture for codes with and when has at most three prime factors or the form ( prime) — the first headway past that barrier — but did not decide the inclusion problem. What no later work touches is the decision problem for general and for arbitrary finite codes, and the factorization conjecture itself remains open.
Problem Statement
Decide, given an arbitrary finite code over a finite alphabet , whether there exists a finite maximal code over with (the inclusion problem for finite codes). The inclusion conjecture asserts that this problem is decidable. The question is open in exactly two directions left by the known partial results: (a) when with but (three or more prime factors, counted with multiplicity), where decidability — and even a constructive characterization of which such admit a finite factorizing supercode — is unknown; and (b) for arbitrary finite codes not concentrated in around a single power of one letter (here ranges over the letters of distinct from ). The question is resolved by a total, sound and complete decision algorithm for the general problem, or by a proof that the problem is undecidable.
References
- Clelia De Felice, On factorizing codes: Structural properties and related decision problems, Advances in Applied Mathematics 39(2) (2007) 173–196. DOI: 10.1016/j.aam.2005.12.002. https://doi.org/10.1016/j.aam.2005.12.002
- Antonio Restivo, On codes having no finite completions, Discrete Mathematics 17(3) (1977) 309–316. DOI: 10.1016/0012-365X(77)90164-9. https://doi.org/10.1016/0012-365X(77)90164-9
- Christophe Reutenauer, Noncommutative factorization of variable-length codes, Journal of Pure and Applied Algebra 36 (1985) 167–186. DOI: 10.1016/0022-4049(85)90069-6. https://doi.org/10.1016/0022-4049(85)90069-6
- Clelia De Felice, Finite completions via factorizing codes, International Journal of Algebra and Computation 17(4) (2007) 715–760. DOI: 10.1142/S0218196707003871. https://doi.org/10.1142/S0218196707003871
- P.W. Shor, A counterexample to the triangle conjecture, Journal of Combinatorial Theory, Series A 38 (1985) 110–112. DOI: 10.1016/0097-3165(85)90032-9. https://doi.org/10.1016/0097-3165(85)90032-9
- Clelia De Felice, A note on the factorization conjecture, Acta Informatica 50(7–8) (2013) 381–402. DOI: 10.1007/s00236-013-0187-1. Preprint: arXiv:1205.2310. https://doi.org/10.1007/s00236-013-0187-1
- Clelia De Felice, Some conjectures on codes, preprint (2016). arXiv:1611.04580. https://arxiv.org/abs/1611.04580
- Liang Zhang, K.P. Shum, Finite maximal codes and triangle conjecture, Discrete Mathematics 340(3) (2017) 541–549. DOI: 10.1016/j.disc.2016.10.008. https://doi.org/10.1016/j.disc.2016.10.008
- Clelia De Felice, Finite maximal codes and factorizations of cyclic groups, Journal of Automata, Languages and Combinatorics 28(4) (2023) 287–338. DOI: 10.25596/jalc-2023-287. Preprint: arXiv:2202.09675. https://doi.org/10.25596/jalc-2023-287
- Christophe Cordero, Factorizations of Cyclic Groups and Bayonet Codes, Journal of Automata, Languages and Combinatorics 29(1) (2024) 011–039. DOI: 10.25596/jalc-2024-011. Preprint: arXiv:2301.13566. https://doi.org/10.25596/jalc-2024-011