Manuscript Offprint
arXiv:2608.27755Undecidability of Adjacent Equality for Insertion, Shuffle, and Crossover Language Operations
Abstract
We study a family of language operations based on insertion, shuffle, and crossover and investigate the undecidability of adjacent equality together with finite convergence and associated spectrum questions. Insertion and shuffle operations on formal languages arise in formal language theory, models of concurrency, and biologically inspired computation. This paper studies a different question from the usual closure problem, specifically whether an increasing sequence of languages generated by repeated insertion, or by increasing the permitted degree of bounded shuffle, reaches an instance of adjacent equality after finitely many stages. We show that several such adjacent equality questions are undecidable. In particular, reaching such an adjacent equality event is undecidable for each of the following: iterated insertion of a regular language into a context-free language; bounded shuffle of a regular language with a context-free language as the bound increases; and the corresponding self-insertion and self-bounded-shuffle hierarchies for context-free languages. The new reductions proceed directly from the undecidability of context-free-language universality, using separator-delimited block constructions and, for self-operations, an absorbing regular language of guard violations. Earlier trace-based proofs relied on mortality and uniform halting.
More generally, we investigate finite-stage equality and stabilization (persistent equality) in hierarchies generated by insertion and bounded shuffle. In addition to giving substantially simpler proofs of earlier undecidability results, we obtain general criteria for one-step equality, develop new reductions for self-insertion, and identify several open problems, including structural questions concerning insertion depth and degree whose resolution determines whether adjacent equality necessarily implies permanent stabilization.
Keywords: formal languages; context-free languages; insertion; shuffle; bounded shuffle; finite-stage equality; stabilization; mortality; uniform halting; undecidability.
1. Introduction
For languages A and B over an alphabet , insertion interleaves pieces of one word with pieces of another. Shuffle generalizes insertion by allowing arbitrarily many alternations. The classical literature asks whether language families are closed under these operations and whether equations or containment properties involving them are decidable. Here the central question is instead one of finite adjacent equality, asking the question, if we permit one more insertion stage, or one more insertion cut, does the generated language eventually reach an adjacent stage where no new elements are inserted?
The distinction is important. An operation may be perfectly well defined at every finite stage while no algorithm can determine whether some finite stage introduces any new elements. The results below show this undecidability property exists even when the sets are restricted to context-free languages and interactions between regular and context-free languages. The property of finite stabilization to some fixed set is discussed but, at this point, still left as an open area for further research, although
Undecidability of Adjacent Equality we do identify some promising pathways to address that stronger convergence property. We also introduce the insertion-degree spectrum, prove the No-Gap Property for unary languages, and identify a conditional extension from singleton languages to finite languages whose shuffle outputs uniquely determine their source pairs, thereby isolating source-pair ambiguity as a principal obstacle in the general case.
A ▷[k] B = { x₁ y₁ x₂ y₂ ... xₖ yₖ x_{(k+1)} | y₁...yₖ ∈ A, x₁...x_{(k+1)} ∈ B, and all xᵢ, yᵢ ∈ Σ* }.
When k=1, we write A ▷ B as simple insertion. If A = B, the operation is called k-self-insertion (or self-insertion for k=1) and A ▷[k] and A ▷ are used as a shortened form of A ▷[k] A and A ▷ A, respectively. Since any factor xᵢ or yᵢ can be the string of length 0 (λ), every concatenation of a word of A with a word of B is obtainable as a k-insertion. Thus, A • B ⊆ A ▷[k] B, and the degree-indexed sequence of sets is non-decreasing under set inclusion, that is, A ▷[k] B ⊆ A ▷[k+1] B. Insertion closure is defined as A ▷* B = ∪ k ≥ 1 (A ▷[k] B).
The ordinary shuffle A ∼ B is A ▷* B, the union over all insertion degrees. The bounded shuffle through degree k is A ∼[k] B = ∪1≤j≤k (A ▷[i] B). Since A ▷[i] B ⊆ A ▷[j+1] B, bounded shuffle reduces to k-insertion. Thus, A ∼[k] B = A ▷[k] B and so ∼ also produces a sequence of non-decreasing sets. Ordinary and bounded self-shuffle use notations A ∼[k] and A ∼.
For iterated insertion, write and . The analogous notation is used for iterated simple and self-insertion.
Two additional operators of interest are unconstrained crossover, A ⊗ u B = { wz, yx | wx∈A and yz∈B} and constrained crossover, A ⊗ c B = { wz, yx | wx∈A and yz∈B, |w| = |y|, |x| = |z|}. Self-unconstrained-crossover, self-constrained-crossover, and both iterated crossovers are defined as with other operations. The iterative version of unconstrained crossover produces a non-decreasing series of sets, but the corresponding series produced by iterated constrained crossover can evolve with earlier elements excluded from later sets in the series.
A sequence of insertions, shuffles, or crossovers reach a stage of adjacent equality when two consecutive stages are equal. If the operation has the property that single step equality implies permanent stabilization, then we say the series has reached a fixed point.
3. Related Work
The shuffle operation [1] and the more primitive insertion operator [22] have been studied extensively in the computer science literature due to their inherent mathematical interest and their relation to other problems, such as interleaved execution in concurrent systems. More recently, these operations have become of interest in molecular computing, with the proof that contextual insertions and deletions are sufficient to simulate Turing machines, showing the computational completeness of molecular systems based on these two simple operations alone [4][21].
Research addressing issues of closure of classes of languages under the insertion and shuffle operations have a long history. This includes early papers on these operations [4][19][20][21][22][24], with the closure properties of the related deletion operation addressed in [23]. Decidability properties were first considered in [21] for shuffle and in [8] for deletion. A
Undecidability of Adjacent Equality comprehensive early presentation of these topics and a more complete discussion of the notation used here may be found in [15] and [19].
Insertion, deletion, and shuffle operations remain active topics. Recent work by Ibarra and McQuillan [17][18] develops broad classes of insertion operations and proves decidability and undecidability results for language equations and related properties. [18] explicitly covers classical operations ranging from concatenation to shuffle within a generalized insertion framework. [17] studies stable, anti-stable, and error-correctable properties for contextual insertion and deletion.
Shuffle also remains active independently of insertion equations. Barloy, Cadilhac, and Ockerlund [2] study shuffles of context-free languages along regular trajectories and characterize structural conditions under which context-freeness is or is not preserved.
While recent publications are closely related in subject matter, we are unaware of any publications that state the convergence problems proved here: finite convergence of consecutive iterated-insertion stages or consecutive bounded-insertion degrees, either for regular/CFL interaction or for CFL self-interaction.
4. Foundational Results
Single step equality
In [10], the authors presented a short proof that one cannot decide, for an arbitrary context free language L, whether L • L = L. Here, we present a generalization of this result that was first shown in [14] and extended in [15]. This generalization provides a proof of the undecidability of single step equality of any class of languages where membership is decidable, universality is undecidable, and the operator subsumes concatenation.
Theorem 1. Let be a class of languages where, for any in , where is over the alphabet , the membership question, is , is decidable, but the universality problem, is , is undecidable. Moreover, let be a binary operator over sets in , such that for , , and suppose , then the problem of deciding whether is at least as hard as universality
Proof. Let L be an arbitrary language in C. We claim that iff .
Clearly, if then and so .
Since , . If and then .
The consequence is iff . QED
Corollary. The operators denoted as simple insertion (▷), ordinary shuffle (ω), and unconstrained crossover (⊗u) satisfy all the criteria of Theorem 1 and, hence, the problems of deciding whether L ▷ L = L, L ω L = L, and L ⊗u L = L are each undecidable.
Note that Constrained crossover (⊗c) does not meet the subsumption criterion. As it is not necessarily the case that L • L ⊆ L ⊗ c L and therefore is not addressed by this theorem. Thus, the complexity of the question, “does L ⊗ c L = L?”, is open.
Other interesting properties of these operators are, for CFLs, A and B,
• A • B is a CFL
• A ▷ B is a CFL
• A ▷[k] B is not necessarily a CFL, for k>1
Additionally, there are open questions to be addressed:
• For, CFLs A, B, is A B a CFL?
Undecidability of Adjacent Equality
• For CFL, L, what is the computational complexity of “does L ⊗c L = L”?
Mortality and uniform halting time
A Turing machine is mortal if it halts from every starting configuration, not merely from a conventional start state on a finitely marked input. A machine has uniform (constant) running time if there exists an integer s such that every finitely described starting configuration halts within s steps. Theorems 2 and 3 below were both first shown in [13] based on the 1966 mortality results of Hooper [9].
Theorem 2. For the Turing-machine model that allows infinite starting configurations proposed by Hooper [9], mortality is equivalent to the existence of a uniform finite bound on running time. The resulting ConstantRunningTime set of Turing-machines is recursively enumerable but not recursive.
Proof sketch. If a uniform bound exists, mortality is a direct consequence. Conversely, suppose every finite configuration halts but no uniform bound exists. Organize configurations that must be fully scanned before the Turing machine ends up in a finitely branching tree. Unbounded finite behavior yields an infinite branch by König's Infinity Lemma, producing an infinite configuration on which the machine runs forever. Hence mortality implies a uniform bound. Recursive enumerability follows by testing all configurations of bounded size for candidate bounds; undecidability follows from mortality.
Adjacent equality
Let # be an operator on formal languages that, when iterated, produces a monotonically non-decreasing series. For , define . Consistent with iterated insertion, and . We say that #, when applied to , reaches adjacent equality iff . If , we say # on has attained permanent stabilization
Theorem 3. For an arbitrary context-free language L, the problem of deciding whether there exists a finite n>0 such that , equivalently reaches adjacent equality, is undecidable. Here is shorthand for , where is the concatenation operator.
Proof sketch. The reduction encodes computation traces so that longer powers correspond to longer valid traces. A uniform bound on computation length is shown equivalent to finite convergence of the power sequence. Details are presented in [13]. Note that, for concatenation, adjacent equality implies permanent stabilization but that is not necessarily true for other operations we address in this paper, so the somewhat weaker result stated here is appropriate.
Given the generalization we saw in Theorem 1, one is tempted to feel this carries over in Theorem 3 to all operators that subsume concatenation, but it is easy to show operators such as , unusual as this may be, for which convergence to a fixed point occurs after one stage. Fortunately, iterated insertion and iterated shuffle are not such edge cases as we will see later, but that begs the question as to what property might replace subsumption of concatenation, , in order for us to have a general theorem rather than specific constructions for each individual operator for which undecidability holds.
Theorem 3 is the conceptual ancestor of the proofs about to be presented. Concatenation, used there, is replaced by insertion and shuffle, and a second hierarchy is obtained by increasing the insertion degree rather than the number of iterations.
Undecidability of Adjacent Equality
5. Iterated Insertion: Regular into Context-Free Languages
This result was previously shown in [14] by encoding Turing-machine traces. Later variants contain much shorter reductions directly from universality (equality to ) of context-free languages [15]. The shorter argument is given here.
Theorem 4. It is undecidable, for a regular language R and a context-free language L, whether there exists a such that .
Proof. Let be an arbitrary context-free language. We reduce the undecidable question, is , to the theorem's adjacent equality question? Membership of the string of length zero ( ) in a CFL is decidable; if is not in , then is already known not to be . Hence consider the remaining instances with in . Introduce a separator # not in and define and . Then is context free and is regular.
Every word of L is a sequence w_1\#w_2\#...#w_n in which every block belongs to . Because words of R contain no #, a single insertion cannot create, remove, or cross a separator; it can alter only one block. Starting from a word of L, after k ordinary insertion stages, at most k blocks can fail to belong to . Conversely, since belongs to , any chosen collection of at most k blocks not in can be realized by starting with empty blocks and inserting the desired elements of , one per insertion stage. Thus, L is exactly the set of separator-delimited strings having at most k blocks outside .
If , there are no #-separated blocks outside and insertion adds nothing, so convergence is immediate. If is not , there exists some non-empty string w in . For every , the word consisting of copies of w separated by # has non-L' blocks. This set of blocks belongs to
, by starting with empty blocks ( ), but it cannot belong to . Hence every stage produces a set strictly larger than its predecessor. Therefore iff there exists such that
. Since universality of context-free languages is undecidable, so is finite adjacent equality. QED
Note that in our construction, adjacent equality occurs when , but the proof provides a more general result, showing undecidability for the existence of any finite .
6. Bounded Shuffle of Regular with Context-Free Languages
The same separator invariant gives an almost identical proof when the parameter is insertion degree rather than iteration depth.
Theorem 5. It is undecidable, for a regular language R and a context-free language L, whether there exists a degree n such that ; equivalently, whether bounded insertion reaches adjacent equality at a finite degree .
Proof. As before, choose an arbitrary context free language , a separator , , and . A k-shuffle splits one selected word of R into k pieces and inserts those pieces at k positions in a word of L. Since no word from R contains , k-insertion can affect at most k separator-delimited blocks. Conversely, any prescribed set of at most k bad blocks can be produced by beginning with empty -blocks, concatenating the desired replacement words from one word of R, and splitting it at the corresponding boundaries before insertion. Consequently is exactly the set of separator-delimited strings with at most k blocks outside .
Undecidability of Adjacent Equality
If , the bounded insertion hierarchy stabilizes immediately. If is not , there exists some word w outside . The word w\#w\#...#w with copies belongs to but not to . Thus, no finite degree stabilizes. Hence iff there exists such that . Since bounded shuffle through degree equals -insertion in this setting, the same argument proves undecidability of adjacent equality for bounded shuffle. QED
7. Self-Insertion of a Context-Free Language
The separator proof in Theorem 4 can be adapted to self-insertion, but one extra device is needed. In the regular/context-free construction, the inserted language contains no separator, so a single insertion can affect only one block. Under self-insertion, an inserted word may itself contain separators. We prevent those unintended interactions from contributing new valid words by using a regular insertion-ideal of guard violations, that is
Let be an arbitrary context-free language, and, as in Theorem 4, restrict attention to instances with . Introduce three symbols @, &, and # not in , and let \Gamma = \Sigma \cup \{@, &, \#. Define
and let G be the regular language consisting of words having at least two @ symbols, at least two & symbols, some symbol before an @, or some symbol after an &. Equivalently,
.
Finally define . Since and are regular and is context free, is context free. The important property of is that it is an insertion ideal: once one of its four guard violations occurs, inserting any additional word cannot remove it. Hence inserting a word of into any word, or inserting any word into a word of , always yields another word of .
For let be the set of words \@w_1\#w_2\#...#w_r\& (r \geq 1, w_i \in \Sigma^*) having at most blocks outside . Thus .
Theorem 6. It is undecidable, for a context-free language L, whether there exists m such that .
Proof. Let L, L', T, and G be defined as above. We claim by induction on m that , where and . The claim is immediate for m = 0.
Assume . If a word of is inserted into a word of , the result remains in . If a word of is inserted into a word of , no @, &, or # is introduced by the inserted word, so at most one separator-delimited block can be changed; the result is in . Conversely, any word of that is not already in can be obtained from a word of by replacing one bad block by and then inserting that block, as a word of , at the corresponding position.
If a word of T is inserted into a word of , the result contains two @ symbols and two & symbols and is therefore in G. If a word of T is inserted into a word of , then either the target word is , in which case the result is the original word of T, or some target symbol occurs before @ or after &, placing the result in G. All interactions involving G remain in G by the insertion-ideal property. These cases prove the induction.
If , then every block is good, so for every and the self-insertion sequence stabilizes immediately. If , choose a nonempty . For every , the word @w#w#...#w& having copies of belongs to but not to . Hence every stage is strictly larger than its predecessor. Therefore iff there exists such that . Since universality of context-free languages is undecidable, finite adjacent equality of self-insertion is undecidable. QED
Undecidability of Adjacent Equality
8. Self-Bounded-Shuffle of a Context-Free Language
The same guarded construction also yields a short proof for increasing the degree of self-insertion. The only additional interaction to check is the case in which a structured word of T is split into k pieces and inserted into a word of .
Theorem 7. It is undecidable, for a context-free language L, whether there exists n such that ; equivalently, whether the self-bounded-shuffle hierarchy achieves adjacent equality.
Proof. Use the same languages L', , T, G, L and Tm as in Theorem 6. Since bounded shuffle through degree k equals k-insertion, it is enough to show that .
If the inserted word is from and the target is from T, its k pieces contain no guard or separator symbols, so they can affect at most k blocks. Conversely, any prescribed collection of at most k bad blocks can be created from a word of T by beginning with in those blocks, concatenating the desired bad block-words into one word of , and splitting that word into the corresponding pieces. Thus, this interaction produces exactly Tk.
Insertion of into remains in . Any interaction involving G remains in G. Inserting a word of T into a word of T produces at least two @ and two & symbols and therefore lies in G.
It remains to consider a k-insertion of a word of T into a target word of . If the result is not in G, the unique @ from the T word must be the first symbol of the result and its unique & must be the last. Consequently, all target pieces lying outside the interval delimited by @ and & must be empty. Only target pieces inserted between two consecutive pieces of the split T word can modify T-blocks, and there are at most k-1 such internal boundaries. Hence every non-garbage result of this interaction lies in , which is already contained in .
Therefore . If , then for every , so the hierarchy is constant. If , choose . The word @w#w#...#w& with copies of belongs to but not . Thus for any . Again, since universality of context-free languages is undecidable, adjacent equality problem for self-bounded shuffle is also undecidable. QED
9. Finite Permanent-Stabilization
Corollary. The finite permanent-stabilization problem is undecidable for each of the hierarchies in Theorems 4–7.
Proof. In each reduction, the hierarchy is constant when and strictly increasing at every stage when . Thus, the constructed hierarchy reaches adjacent equality iff it permanently stabilizes. Since universality of context-free languages is undecidable, this shows finite permanent-stabilization is also undecidable in these four cases.
10. Iteration-Depth Spectrum Theorem
Define and .
Undecidability of Adjacent Equality
Conjecture (Iteration-Depth No-Gap Conjecture).
For arbitrary sets of strings A, B, . Equivalently, is an initial interval of the non-negative integers.
Theorem 8. For arbitrary languages, A, B, each of finite cardinality, has no gaps. Moreover, if A and B are both non-empty, .
Proof. The edge cases are: if or and , then ; and if then . Both cases satisfy the Insertion-Depth No-Gap Conjecture.
For arbitrary non-empty language S, define .
Let and . Since insertion preserves length additively, inserting into , regardless of insertion degree , produces a word of length . of Choose a word of maximum length produced in stage . its length, , is , for all . Every earlier stage has strings of maximum length , where and , and so , meaning the -th stage is the earliest one containing , and so . Therefore, .
Hence the Iteration-Depth No-Gap Conjecture holds for all finite language pairs.
11. Insertion Degree Spectra and the No-Gap Conjecture
For languages A, B ⊆ Σ*, and w ∈ A ∪ B, define the insertion degree of w relative to A, B by
Define the insertion-degree spectrum .
Since A ▷[k] B ⊆ A ▷[k+1] B, an apparently natural question is whether the attainable minimum degrees can contain gaps.
Conjecture 1 (No-Gap Conjecture).
For arbitrary languages A, B, . Equivalently, is an initial interval of the positive integers.
A ▷[k] B = A ▷[k+1] B means that degree k+1 is absent from the spectrum. If the No-Gap Conjecture holds, no larger degree can occur either. Therefore A ▷[k] B = A ∪ B, where A ∪ B = ∪_{j≥1} (A ▷[j] B).
Proposition 1. (Conditional on No-Gap Conjecture).
If is an initial interval of the positive integers and, for some , then .
Proof. If two consecutive stages are equal, no word has minimum insertion degree . By the initial-interval property, no word can have minimum insertion degree greater than . Hence every word of already belongs to . The reverse containment follows from the definition of shuffle. Therefore .
Thus, No-Gap would establish, for arbitrary bounded-insertion hierarchies,
Adjacent Equality Permanent Stabilization
However, even the singleton case appears nontrivial. For fixed words, , define . A shuffle of and may admit multiple assignments of its positions in the two source words. Consequently, the minimum insertion degree of a resulting word need not equal the number of insertion runs in any given representation. This representation ambiguity prevents the immediate argument of successively merging insertion runs.
Undecidability of Adjacent Equality
Theorem 9. (Unary-Source Singleton Spectrum). Let with and let . Let be the number of symbols of that are not . Then if , and if . Consequently, the Singleton No-Gap Conjecture holds whenever the inserted word is over a unary alphabet.
Proof. Decompose v into maximal a-blocks separated by non-a symbols. If there are s non-a symbols, there are s+1 a-blocks. Every shuffle distributes the m inserted a's among these blocks. Within any block, all inserted a's may be regarded as one insertion run, so the minimum insertion degree is exactly the number of occupied blocks. Any r with is achieved by occupying exactly r blocks. Hence for m > 0. If m = 0 then and the only attainable insertion degree is 1. When s = 0 this immediately yields , recovering the unary singleton case. QED
Conjecture 2 (Singleton No-Gap Conjecture).
For , is an initial interval of the positive integers.
Source-pair ambiguity. The principal difficulty in extending the singleton conjecture to finite languages is that a word in A ∪ B may have shuffle representations arising from more than one pair of source words.
Recall that and .
Consequently, even if every singleton spectrum is an initial interval, it does not follow immediately that is the union of those singleton spectra as, for a given word, , more than one source pair, u, v, may give different values, the smallest of which is the minimum insertion degree.
Definition. A pair of languages (A, B) is source-pair-separable if distinct source pairs have disjoint shuffle sets, that is, whenever are in , .
Proposition 2. If the Singleton No-Gap Conjecture holds, then the No-Gap Conjecture holds for every source-pair-separable pair of finite languages A and B.
Proof. The result is immediate if either language is empty. Otherwise, source-pair separability implies that every has a unique source pair . Hence . Assuming Singleton No-Gap, each is an initial interval of the positive integers. Since is finite, their union is also an initial interval. Therefore has no gaps. QED
Finite representation erasure. Proposition 2 isolates source-pair ambiguity as the obstruction to extending Singleton No-Gap directly to arbitrary finite languages. Even if every is an initial interval, competing source pairs can lower the minimum insertion degree assigned to particular shuffle words. The remaining question is whether such representation erasure can remove every witness of an intermediate degree while leaving a witness of some larger degree.
Problem 1 (Finite Representation-Erasure Problem). Suppose A and B are finite languages and every singleton spectrum , for , is an initial interval. Can competing source-pair representations produce a gap in ? A negative answer would show that Singleton No-Gap implies No-Gap for all finite languages.
Finite-to-arbitrary passage. There is also a natural compactness question concerning the passage from finite to arbitrary languages. For any fixed shuffle output word w, all source pairs (u,v) satisfying v obey . Thus is determined by a finite length-bounded portion of , even when A and B are infinite. This does not immediately reduce the general No-Gap Conjecture to the finite case. However, the occurrence of a degree is witnessed by a single word, whereas the absence of a degree asserts that no such witness occurs in A B.
Undecidability of Adjacent Equality
Problem 2 (Finite-to-Arbitrary No-Gap). If the No-Gap Conjecture holds for all finite languages, does it follow that it holds for arbitrary languages?
Research hierarchy. The results and questions above suggest the progression
unary languages (proved) → singleton languages → source-pair-separable finite languages →
arbitrary finite languages → arbitrary languages.
The first class satisfies No-Gap by Theorem 9. Conditional on Singleton No-Gap, Proposition 2 establishes the property for source-pair-separable finite languages. Whether the remaining implications hold is open. These questions separate two sources of difficulty -- ambiguity among different interleavings of a fixed pair of words, already present in the singleton problem, and ambiguity among different source pairs, which first appears at the language level.
Note that the iteration-depth spectrum discussed in Section 10 has a global monotone invariant (maximum word length), whereas the insertion-degree spectrum has no comparable invariant because changing insertion degree does not change total length. That contrast leads us to believe that the insertion-degree conjecture for finite languages is hard for a structural reason, not just because no one has found the right proof.
12. Factor Replacement Systems with Residue as a Trace Model
Factor Replacement Systems might be a cleaner starting point, but their non-deterministic application creates a challenge. However, the use of a deterministic trace model based on Factor Replacement Systems with Residues (FRS-R) overcomes this challenge, offering what could be a new, more compact set of proofs.
FRS-R were introduced in class notes by the author in [15] and used extensively in [16]. These systems represent state by a natural number and use unordered rules of the form . By including residues, these systems can test non-divisibility, thereby overcoming the ordering needed when ordinary FRS systems simulate computational models such as Register Machines. Encoding of INC and DEC register-machine instructions and maintaining state are straightforward. Such systems can be designed to converge to 0, whenever the register machines halts. Building on this register machine encoding, the notes [16] demonstrate that FRS-R computations can simplify the proofs appearing in the quotient-of-CFL convergence construction presented in [12].
The insight from the above is that FRS-R may provide a cleaner numerical source model for trace arguments related to CFLs. However, the analogue of the mortality/constant-time theorem has not been shown for FRS-R models of computation. This suggests an interesting question, does FRS-R have an undecidable uniform-halting property? If so, it could yield a substantially shorter trace-based proof of the concatenation result [13], analogous to the simplification using FRS-R systems and guarded constructions demonstrated for CFL quotient in [16].
13. Finite Convergence as a Dynamical Property
Noting that the insertion and a related deletion operation are used in biomolecular computing and dynamical systems; shuffle is used in analyzing concurrency as the arbitrary interleaving of parallel events; and crossover is used in genetic algorithms, leads to some possibly interesting alignments with research outside computability theory.
Specifically, the results above can be viewed as statements about discrete dynamical processes on languages. Starting from a set X0, repeated local interaction may generate a non-descending sequence . The permanent-stabilization question asks whether . For an iterative sequence based on a many-one mapping, , the equality already implies permanent stabilization. For degree-indexed hierarchies such as bounded insertion,
Undecidability of Adjacent Equality whether adjacent equality has this consequence in general is precisely the issue raised by the No-Gap Conjecture.
In the insertion construction of Theorems 4-7, a particularly simple progress measure is available. Words are decomposed into separator-delimited blocks, and one may count the blocks that fail to belong to the source context-free language. A single ordinary insertion can affect at most one block, while a k-insertion can affect at most k blocks. When the source language is universal there are no bad blocks; when it is not universal, arbitrarily many bad blocks can be created and each finite stage can be separated from the next. Thus undecidability arises not from difficulty in computing an individual finite stage, but from the impossibility of deciding whether the entire monotone evolution eventually reaches a fixed point.
This perspective suggests possible connections beyond formal-language theory. Mortality and uniform-halting arguments have long served as reduction mechanisms in discrete, piecewise-affine, and hybrid dynamical systems [5][6]. The present results do not establish undecidability for any additional dynamical-system model; rather, they provide a compact finite-stabilization pattern that may be applied to systems generated by repeated local interaction, rewriting, population interaction, or constrained interleaving.
A useful general question is therefore, for which monotone operators F, is it decidable whether the orbit , , , ... reaches a fixed point after finitely many steps? The insertion and bounded-shuffle results show that strong syntactic restrictions on the finite stages need not make this eventual convergence question decidable.
14. Open Problems and a Call for Collaboration
The purpose of revisiting these results is more than archival. The author welcomes alternative proofs, stronger results, counterexamples to proposed extensions, historical references that may have been missed, and applications of the finite-convergence construction to other computational or dynamical models. Collaboration is particularly welcome on the questions below.
General Theory
-
Identify a general bounded-propagation or rank condition that subsumes the separator proofs of Theorems 4 to 7 and yields undecidability of finite convergence for a broad family of operators.
-
Determine the exact recursion-theoretic or arithmetical-hierarchy complexity of the finite-convergence problems, rather than undecidability alone.
-
Identify restricted language families or restricted insertion/shuffle mechanisms for which finite convergence becomes decidable.
-
Study quantitative variants in which convergence is guaranteed and determine whether the least stabilization index can be computed or effectively bounded.
No-Gap Program
-
Determine whether Insertion-Degree No-Gap for all finite languages implies Insertion-Degree No-Gap for arbitrary languages or identify a counterexample showing that the finite-to-arbitrary implication fails.
-
Resolve the Singleton Insertion-Degree No-Gap Conjecture and determine whether Singleton Insertion-Degree No-Gap implies Insertion-Degree No-Gap for all finite languages by ruling out finite representation erasure.
-
Determine whether Insertion-Depth No-Gap for all finite languages implies Insertion-Depth No-Gap for arbitrary languages or identify a counterexample showing that the finite-to-arbitrary implication fails.
Applications
Undecidability of Adjacent Equality
-
Investigate finite stabilization for discrete, piecewise-affine, hybrid, rewriting, population, and evolutionary systems whose dynamics are generated by repeated local interactions.
-
Recast the reductions using Factor Replacement Systems with Residue [10],[11], and identify the weakest mortality or uniform-halting property required of the source model.
• Study constrained crossover as it creates interesting theoretical challenges not addressed here.
The open problems above motivate interesting paths forward, such as generalizing the existing proofs, extending the theorems to new formal models, and discovering applications outside formal-language theory. Researchers who recognize an equivalent theorem under different terminology, or who see a natural model to which the reduction can be transferred, are encouraged to pursue the connection.
Acknowledgements and Historical Comments
The original work [14] on this set of problems was motivated by Masami Ito's November 2004 UCF lecture [19][20] and by earlier work on the finite power property of context-free languages [13]. Ferucio Tiplea, University of Iași, Romania, listened to early versions of the arguments, encouraged the work, and suggested significant simplifications to several proofs and presentations.
The underlying finite-power line of work began with all proofs in place by 1977 except for the connection needed to complete the uniform-halting argument. The author sought suggestions from several colleagues, while insisting that the missing steps be no longer than one page. Stanley Selkow later recognized the key idea after attending a conference in Montreal, where Jaroslav Opatrny of Concordia suggested the connection. That observation and the subsequent construction completed the proof in [13] that was critical to the current work.
Declaration of Generative AI and AI-assisted Technologies in the Manuscript Preparation Process
During the preparation of this work, the author used OpenAI's ChatGPT for critical discussion of proofs, exploration of alternative proof strategies and possible generalizations, literature-search assistance, identification of potential gaps and counterexamples, and suggestions concerning organization and presentation. AI-assisted discussions cleaned up and simplified many of the proofs appearing in the paper, contributed to the development and examination of the simplified separator and guarded constructions, and initiated the formulation and investigation of the insertion-degree-spectrum and No-Gap questions. The author provided the foundational research including the relationship to universality, and the bases for guarded constructions. The author also posed the iteration-depth No-Gap conjecture, proving it for finite languages, and showed the iteration -degree No-Gap property is true for singleton alphabets. The author also proposed many of the open problems and the potential connections to other models and disciplines. The author independently reviewed, verified, and revised all AI-assisted material and takes full responsibility for all mathematical statements, proofs, citations, and conclusions in this article.
Undecidability of Adjacent Equality
References
[1] T. Araki and N. Tokura, Decision problems for regular expressions with shuffle and shuffle closure operators, Trans. IECE Japan J64-D (1981), 1069-1073.
[2] C. Barloy, M. Cadilhac, and K. Ockerlund, Shuffles of Context-Free Languages Along Regular Trajectories, Proc. ICALP 2026, LIPIcs 374, Article 163, 2026. DOI: 10.4230/LIPIcs.ICALP.2026.163.
[3] V. D. Blondel, O. Bournez, P. Koiran, C. H. Papadimitriou, and J. N. Tsitsiklis, Deciding stability and mortality of piecewise affine dynamical systems, Theor. Comput. Sci. 255 (2001), 687-696.
[4] C. Campeanu, K. Salomaa and S. Vagvolgyi, Shuffle quotient and decompositions, Lecture Notes in Computer Science 2295, Springer (2002) 186-196.
[5] P. Collins and J. H. van Schuppen, Observability of piecewise-affine hybrid systems, Lecture Notes in Computer Science 2993, Springer-Verlag (2004) 265-279.
[6] P. Collins and J. H. van Schuppen, Observability of hybrid systems and Turing machines, Proceedings of the 43rd IEEE Conference on Decision and Control, Bahamas, December, 2004.
[7] M. Daley, L. Kari, G. Gloor and R. Siromoney, Circular contextual insertions/deletions with applications to biomolecular computation, String Processing and Information Retrieval Symposium / International Workshop on Groupware, Cancun, Mexico (1999) 47-54.
[8] M. Domarattzki and A. Okhotin, Representing recursively enumerable languages by iterated deletion, Theoretical Computer Science 314(3) (2004) 451-457.
[9] P. K. Hooper, The undecidability of the Turing machine immortality problem, J. Symbolic Logic 31 (1966), 219-234.
[10] C. E. Hughes, Single premise Post canonical forms defined over one-letter alphabets, J. Symbolic Logic 39 (1974), 489-495.
[11] C. E. Hughes, The equivalence of vector addition systems to a subclass of Post canonical forms, Inf. Process. Lett. 7 (1978), 201-204.
[12] C. E Hughes, Derivatives and Quotients of Prefix-Free Context-Free Languages. Information and Control, 45, 1980, 229-235. https://doi.org/10.1016/S0019-9958(80)90604-X
[13] C. E. Hughes and S. M. Selkow, The finite power property for context-free languages, Theor. Comput. Sci. 15 (1981), 111-114. DOI: 10.1016/0304-3975(81)90065-7.
[14] C. E. Hughes, Undecidability of finite convergence for concatenation, insertion and bounded shuffle operators, UCF School of Computer Science Technical Report CS-TR05, 2005.
[15] C. E. Hughes, 2007 COT 5310 Class Notes, UCF Computer Science Department, Online at https://www.cs.ucf.edu/courses/cot5310/Notes/COT5310Notes.pdf. Fetched August 19, 2026.
[16] C. E. Hughes, 2023 COT 6410 Class Notes, UCF Computer Science Department, Online at https://www.cs.ucf.edu/courses/cot6410/Spring2023/Notes/COT6410ComputabilityNotes.pdf. Fetched August 19, 2026.
[17] O. H. Ibarra and I. McQuillan, On decision problems concerning contextual insertions and deletions, Theor. Comput. Sci. 1024 (2025).
[18] O. H. Ibarra and I. McQuillan, On decidability of problems involving insertion operations, Natural Computing 24 (2025), 679-691. DOI: 10.1007/s11047-025-10032-x.
[19] M. Ito, Algebraic Theory of Automata and Languages, World Scientific, 2004.
[20] M. Ito and R. Sugiura, n-Insertion on languages, LNCS 2950, Springer, 2004, 213-218.
[21] J. Jedrzejowicz, Undecidability results for shuffle languages, J. Automata, Languages and Combinatorics 1 (1996), 147-159.
[22] L. Kari and G. Thierrin, Contextual insertions/deletions and computability, Information and Computation 131 (1996), 47-61.
[23] L. Kari, Deletion operations: closure properties, International Journal of Computer Mathematics 52 (1994), 23-42.
[24] L. Kari, On insertion and deletion in formal languages, Ph.D. Thesis, University of Turku, Finland, 1991.
Undecidability of Adjacent Equality