For a finite maximal code MM containing the word ana^n and any word ω\omega, the Perrin–Schützenberger slice CM(ω)C_M(\omega) (obtained by reducing the exponents of all aiωaj∈M∗a^i\omega a^j\in M^* modulo nn and replacing ω\omega by bb) is an nn-complete bayonet code: a set XX of exactly nn words aibaja^iba^j, 0≤i,j<n0\le i,j<n, such that {an}∪X\{a^n\}\cup X is a code. Cordero's study of these objects (arXiv:2301.13566; J. Autom. Lang. Comb. 29(1):11–39, 2024) states as an explicit open gap that it is unknown whether this construction is surjective: does every nn-complete bayonet code XX equal CM(ω)C_M(\omega) for some finite maximal code MM containing ana^n and some word ω\omega? Only inclusion-type partial results (Hajós-type cases via Lam 1997 and Cordero's Theorem 6.2) are known, and none establishes exact realization. Prove that every nn-cbc is realizable, or prove that some nn-cbc is not.

Background

A code is a set XX of words over an alphabet AA in which every word admits at most one factorization into elements of XX; codes are exactly the bases of free submonoids of the free monoid A∗A^*, and they model uniquely decipherable encoding. A prefix code (resp. suffix code) is a set none of whose words is a prefix (resp. suffix) of another; prefix and suffix sets are automatically codes. A maximal code is a code not contained in any larger code, and most structural questions in the theory concern finite maximal codes. The central open problem of the field is Schützenberger's factorization conjecture (1965, documented in the Berstel–Perrin–Reutenauer monograph): every finite maximal code MM admits finite sets P,S⊆A∗P,S\subseteq A^* with M‾−1=P‾(A‾−1)S‾\underline{M}-1=\underline{P}(\underline{A}-1)\underline{S}, where X‾\underline{X} denotes the formal sum of the elements of XX; the best known approximation, due to Reutenauer, allows P,SP,S to be integer power series rather than finite sets.

Fix two letters a,b∈Aa,b\in A. For a finite maximal code MM, a classical result gives a unique integer n≥1n\ge 1, the order of the letter aa, with an∈Ma^n\in M. Perrin and Schützenberger associated to any code MM containing ana^n and any word ω∈A∗\omega\in A^* the slice CM(ω)C_M(\omega): the set of words aibaja^iba^j with 0≤i,j<n0\le i,j<n for which some representative ai+tnωaj+una^{i+tn}\omega a^{j+un} (t,u≥0t,u\ge 0) lies in M∗M^*, i.e. aiωaj∈M∗a^i\omega a^j\in M^* with exponents reduced modulo nn and ω\omega replaced by bb. A finite code MM containing ana^n is maximal if and only if ∣CM(ω)∣=n|C_M(\omega)|=n for every word ω\omega (see the monograph of Berstel, Perrin and Reutenauer). Thus every finite maximal code containing ana^n produces, for each ω\omega, a set of exactly nn words aibaja^iba^j with 0≤i,j<n0\le i,j<n.

Codes contained in a∗ba∗a^*ba^* are called bayonet codes, and they are the subject of the triangle conjecture lineage: Perrin and Schützenberger conjectured that every bayonet code YY satisfies the triangle inequality ∣{x∈Y:∣x∣≤k}∣≤k|\{x\in Y:|x|\le k\}|\le k for all k≥0k\ge 0; Shor refuted this in 1985 with an explicit counterexample. The conjecture survives in a modern form — a bayonet code violating the inequalities cannot be included in any finite maximal code — which is likewise implied by the factorization conjecture. Zhang and Shum (2017) proved a structural precursor: the words aiωaj∈M∗a^i\omega a^j\in M^* arrange into a matrix whose row and column index sets factor the cyclic group of order nn; on this basis they proposed a stronger version of the triangle conjecture for finite maximal codes: for every finite maximal code MM, word ω\omega, and k≥0k\ge 0, the set {aiωaj∈M∗:i+j<k}\{a^i\omega a^j\in M^*:i+j<k\} has at most kk elements. This stronger inequality is proved only in special cases — Zhang and Shum for nn a prime, De Felice for nn a product of two primes, Cordero for cbc Hajós numbers — and remains open in general.

Cordero (2023/2024) introduced the class of nn-complete bayonet codes: writing [n]={0,…,n−1}[n]=\{0,\ldots,n-1\}, an nn-cbc is a set X⊆a[n]ba[n]X\subseteq a^{[n]}ba^{[n]} with ∣X∣=n|X|=n such that {an}∪X\{a^n\}\cup X is a code. Every slice CM(ω)C_M(\omega) of a finite maximal code is an nn-cbc, and the theory of factorizations of cyclic groups (pairs (P,Q)(P,Q) of subsets of Zn\mathbb{Z}_n with each residue uniquely p+qp+q; Krasner and Hajós factorizations are distinguished layered and constructible subclasses) extends to this setting. Known partial results are of inclusion type: Lam (1997) proved that a cbc of the form aPbaQa^Pba^Q with (P,Q)(P,Q) a Hajós factorization is included in a finite maximal code, and Cordero's Theorem 6.2 shows that for cbc Hajós numbers nn (a product of at most three primes or of the form pkqp^kq, which covers every n<36n<36) the code {an}∪X\{a^n\}\cup X is a composition of prefix and suffix codes, hence completable to a finite maximal code by the theorem of Restivo, Salemi and Sportelli; for other nn counterexamples to such composition exist. However, being included in a finite maximal code is weaker than being exactly a slice CM(ω)C_M(\omega), and no construction or obstruction is known for the exact realization question in general.

Problem Statement

Let AA be an alphabet containing the letters aa and bb, and write [n]={0,1,…,n−1}[n]=\{0,1,\ldots,n-1\}. An nn-complete bayonet code (nn-cbc) is a set X⊆{aibaj:i,j∈[n]}X\subseteq\{a^iba^j:i,j\in[n]\} with ∣X∣=n|X|=n such that {an}∪X\{a^n\}\cup X is a code. For a code MM containing ana^n and a word ω∈A∗\omega\in A^*, define

CM(ω)={aibaj:i,j∈[n] and ai+tn ω aj+un∈M∗ for some t,u≥0}.C_M(\omega)=\{a^iba^j : i,j\in[n]\ \text{and}\ a^{i+tn}\,\omega\,a^{j+un}\in M^*\ \text{for some}\ t,u\ge 0\}.

For every finite maximal code MM containing ana^n and every ω∈A∗\omega\in A^*, the slice CM(ω)C_M(\omega) is an nn-cbc. The question posed by Cordero (2024, Section 1): is the converse realization true — for every n≥1n\ge 1 and every nn-cbc XX, do there exist a finite maximal code MM containing ana^n and a word ω∈A∗\omega\in A^* such that X=CM(ω)X=C_M(\omega)? An nn-cbc XX is non-realizable when no finite maximal code MM containing ana^n and no word ω∈A∗\omega\in A^* satisfy X=CM(ω)X=C_M(\omega).

References

  1. Christophe Cordero, Factorizations of Cyclic Groups and Bayonet Codes, Journal of Automata, Languages and Combinatorics 29(1):11–39, 2024. DOI: 10.25596/jalc-2024-011, https://doi.org/10.25596/jalc-2024-011 (preprint arXiv:2301.13566, https://arxiv.org/abs/2301.13566)
  2. Nguyen Huong Lam, Hajós factorizations and completion of codes, Theoretical Computer Science 182(1–2):245–256, 1997. DOI: 10.1016/S0304-3975(97)00032-7, https://doi.org/10.1016/S0304-3975(97)00032-7
  3. Peter 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
  4. Liang Zhang and Kar-Ping Shum, Finite maximal codes and triangle conjecture, Discrete Mathematics 340(3):541–549, 2017. DOI: 10.1016/j.disc.2016.10.008, https://doi.org/10.1016/j.disc.2016.10.008
  5. Clelia De Felice, Finite maximal codes and factorizations of cyclic groups, arXiv:2202.09675, 2022, https://arxiv.org/abs/2202.09675 (published in Journal of Automata, Languages and Combinatorics 28, 2023)
  6. Antonio Restivo, Sergio Salemi, and Tecla Sportelli, Completing codes, RAIRO – Theoretical Informatics and Applications 23(2):135–147, 1989. DOI: 10.1051/ita/1989230201351, https://doi.org/10.1051/ita/1989230201351
  7. Jean Berstel, Dominique Perrin, and Christophe Reutenauer, Codes and Automata, Encyclopedia of Mathematics and its Applications 129, Cambridge University Press, 2010. DOI: 10.1017/CBO9781139195768, https://doi.org/10.1017/CBO9781139195768