For a submonoid of the free monoid , a code is weakly -complete when every word of occurs as a factor of some word of . Néraud's series of papers (2003–2008) built a completion theory inside submonoids: prefix codes were fully settled with decidable criteria and regularity-preserving constructions (TCS 2006), and, for regular , the embeddability of a regular circular code into a weakly -complete one was characterized by the existence of a synchronizing word in the minimal automaton of (TCS 2008). The bounded-deciphering-delay analogue of that program's instance-wise completion question is to characterize when a delay code embeds into a weakly -complete code of bounded delay inside , and to decide this effectively when and are regular (or is finite).
Background
Let be a finite alphabet and the free monoid of all words over (with concatenation and empty word ). A subset is a (variable-length) code if every word of the submonoid generated by admits a unique factorization over ; a prefix code is a code no element of which is a proper prefix of another. A code has deciphering delay if any two distinct codewords satisfy ; equivalently, once a decoder reading a message from left to right has tentatively parsed a codeword followed by further codewords, no other codeword can start a valid parsing of the same prefix, so the decoder can safely commit to the first codeword. The delay of is the least such , and it may be infinite; codes with finite deciphering delay (also called bounded deciphering delay) form a classical family strictly between prefix codes (delay exactly ) and general codes. A circular code is a code over which every word written on a circle has at most one decomposition, so that any concatenation of codewords remains uniquely decodable under cyclic shifts of the cutting point. A language is regular if it is recognized by a finite automaton; its minimal automaton is the canonical smallest deterministic recognizer. A word is synchronizing for an automaton if reading maps all states to a single state. For a language , denotes the set of prefixes of words of .
In the classical setting , completion is well understood: every regular (resp. finite) prefix code can be embedded into a regular (resp. finite) prefix code that is complete in , every regular code is included in a maximal regular code (Ehrenfeucht and Rozenberg, 1986), and finite codes with finite deciphering delay admit finite completions of finite delay (Bruyère, Wang, Zhang, 1990). By contrast, whether every finite code — even every three-word code — can be embedded into a finite maximal code is a famous problem of code theory that is still open (restated as open by Cao, Liao, Yan, Yang, and Yuan, 2025).
Néraud and Selmi transplanted these questions to an arbitrary submonoid , modeling a constrained channel or subset of admissible messages: is weakly -complete if every word of is a factor of some word of , and one asks whether can be extended to a weakly -complete code with , preserving structural properties of (regularity, finiteness, prefix property, circularity, delay). Their program established: maximality and completeness basics for arbitrary submonoids (2003); a characterization of submonoids admitting a finite -complete prefix code, namely , equivalently being a finite -complete prefix set (2004); an effective general completion formula for submonoids of finite rank — the rank of a submonoid being the least integer such that some word maps the whole state set of the minimal automaton of onto exactly states, so that every regular submonoid has finite rank — a formula which preserves regularity (2005–2006); a full decidable theory for prefix codes, namely that for a regular submonoid and a regular or finite prefix code it is decidable whether a weakly -complete regular (resp. finite) prefix code containing exists (2006); and, for regular , a characterization of when a regular circular code embeds into a weakly -complete one — precisely when the minimal automaton of has a synchronizing word — together with a study of uniformly synchronous codes (2008). What no work in this line or after it addresses is the remaining classical code family: codes with bounded deciphering delay.
Problem Statement
Within Néraud's framework of weak -completeness — is weakly -complete if every word of the submonoid is a factor of some word of — address the bounded-deciphering-delay analogue of the prefix (2006) and circular (2008) completion questions:
- Characterization. For a submonoid of finite rank (in particular a regular submonoid) and a code with finite deciphering delay, give intrinsic conditions on and — analogous to the condition for finite prefix completion and to the synchronizing-word condition for circular completion — that are equivalent to the existence of a weakly -complete code of finite deciphering delay with .
- Decidability and construction. When and are both regular (or is finite), decide effectively whether such a completion exists, and construct one when it does; the constructed should be regular (resp. finite when is finite) and have finite deciphering delay.
As a secondary residual of the same source question, the same items may be addressed for circular codes when the ambient submonoid is not regular, extending the 2008 theory beyond the regular case.
References
- Jean Néraud, Completing prefix codes in submonoids, Theoretical Computer Science 356(1-2):245-254, 2006. DOI: 10.1016/j.tcs.2006.01.027, https://doi.org/10.1016/j.tcs.2006.01.027 (HAL record hal-05367090)
- Jean Néraud, Completing circular codes in regular submonoids, Theoretical Computer Science 391(1-2):90-98, 2008. DOI: 10.1016/j.tcs.2007.10.033, https://doi.org/10.1016/j.tcs.2007.10.033 (HAL record hal-05367054)
- Jean Néraud, On the completion of codes in submonoids with finite rank, Fundamenta Informaticae 74:549-562, 2006. HAL: https://hal.science/hal-05367119
- Jean Néraud, Completing a code in a regular submonoid of the free monoid, in Machines, Computations, and Universality (MCU 2004), Lecture Notes in Computer Science 3354:281-291, Springer, 2005. DOI: 10.1007/978-3-540-31834-7_23, https://doi.org/10.1007/978-3-540-31834-7_23
- Jean Néraud and Carla Selmi, Free monoid theory: maximality and completeness in arbitrary submonoids, International Journal of Algebra and Computation 13(5):507-516, 2003. DOI: 10.1142/S0218196703001584, https://doi.org/10.1142/S0218196703001584
- Jean Néraud and Carla Selmi, A characterization of complete finite prefix codes in an arbitrary submonoid of A*, Journal of Automata, Languages and Combinatorics 9(1):103-110, 2004. DOI: 10.25596/jalc-2004-103, https://doi.org/10.25596/jalc-2004-103
- Véronique Bruyère, Limin Wang, Liang Zhang, On completion of codes with finite deciphering delay, European Journal of Combinatorics 11(6):513-521, 1990. DOI: 10.1016/S0195-6698(13)80036-4, https://doi.org/10.1016/S0195-6698(13)80036-4
- Jean Néraud and Carla Selmi, On codes with a finite deciphering delay: constructing uncompletable words, Theoretical Computer Science 255(1-2):151-162, 2001. DOI: 10.1016/S0304-3975(99)00160-7, https://doi.org/10.1016/S0304-3975(99)00160-7
- Sujin Shin, Codes and maximal monoids, Theoretical Computer Science 411(16-18):1809-1817, 2010. DOI: 10.1016/j.tcs.2010.01.035, https://doi.org/10.1016/j.tcs.2010.01.035
- Lila Kari, Stavros Konstantinidis, Steffen Kopecki, On the maximality of languages with combined types of code properties, Theoretical Computer Science 550:79-89, 2014. DOI: 10.1016/j.tcs.2014.07.015, https://doi.org/10.1016/j.tcs.2014.07.015
- Chunhua Cao, Lei Liao, Zhongmei Yan, Di Yang, Yuguang Yuan, Three-word codes {a, aba, u} and {a, ab, v} having finite completions, Acta Informatica 62(2), article 20, 2025. DOI: 10.1007/s00236-025-00487-x, https://doi.org/10.1007/s00236-025-00487-x
- A. Ehrenfeucht, G. Rozenberg, Each regular code is included in a maximal regular code, RAIRO - Theoretical Informatics and Applications 20(1):89-96, 1986. DOI: 10.1051/ita/1986200100891, https://doi.org/10.1051/ita/1986200100891
- Jean Néraud, Ten Conferences WORDS: Open Problems and Conjectures, arXiv:1705.04055, 2017, https://arxiv.org/abs/1705.04055
- Marie-Pierre Béal, Dominique Perrin, Codes and sofic constraints, Theoretical Computer Science 340(2):381-393, 2005. DOI: 10.1016/j.tcs.2005.03.033, https://doi.org/10.1016/j.tcs.2005.03.033