Abstract
Splicing systems (H-systems) and insertion-deletion systems are well-studied DNA computing paradigms inspired by biological operations observed in nature. They are modelled in a formal, information-theoretic manner. In these systems, splicing, insertion and deletion operations are used. In this paper, we study these operations on circular words, which naturally model cyclic DNA molecules, focusing on the relationship between algebraic operations and biologically inspired string transformations. In particular, we formally compare concatenation with circular splicing and insertion. While the splicing operation has already been defined and used for circular words in the literature, for insertion–deletion systems, e.g., circular insertion was defined to insert a linearized variant of a circular string (cyclic molecule) into a linear (ordinary) string (or linear molecule that can be represented by a string). In this paper, we provide a formal definition of insertion operators acting on circular words. We prove that if we use circular splicing and insertion in a somewhat context-independent way (using the empty word in the formal rules), these computational operations coincide with the one-wheel concatenation operation. Our results support the theoretical understanding of these operations and their biological interpretations, with implications for DNA computing and synthetic biology.
1. Introduction
In the field of molecular chemistry and biology, chemists have worked for centuries to obtain ever newer molecules which play essential roles in complex biological systems and are useful in medicine or in industrial applications [1]. Thinking about DNA molecules as important biological molecules, there are various enzymes that are able to modify them, and these enzymes can be used to build them or to make some changes to them [2,3]. A branch of computing and information theory, also related to formal language theory, is used to provide formal models of these operations. In this paper, we concentrate on modeling circular (DNA) molecules and computational operations on them.
Circular splicing is a well-explored concept in both molecular biology and theoretical computer science, primarily due to the significance of circular DNA in various biological processes and the insight splicing systems provide into the properties of circular words [4,5]. Despite extensive investigation, many classical problems related to circular splicing—such as characterizing all circular languages generated by finite circular splicing systems and understanding their computational power—remain unsolved in formal language theory [6,7].
The splicing operation was first proposed in 1987 by Tom Head [8]. Formal systems based on splicing operations are called splicing systems or H-systems. Further, he also introduced circular splicing systems in 1992 [9], along with a number of open problems concerning their computational capabilities. Then the idea was generalized by Păun [10,11] and Pixton [12] in 1996 to simulate the recombinant behavior of DNA sequences. The splicing concept is inspired by the action of two enzymes that cut DNA molecules (represented by strings here) at designated substrings, referred to as sites, and then reattach the first segment of one string to the second segment of the other, appropriately modifying the sites. From a mathematical and information-theoretical modeling perspective, we express this in the following way:
Let Σ be an arbitrary finite alphabet. A splicing rule over Σ is defined as a string of the form u1#u2$u3#u4 where u1, u2, u3, u4 are strings over Σ while # and $ are special symbols not contained in Σ. Intuitively, the pairs (u1,u2) and (u3,u4) model the recognition sites of two restriction enzymes; the first enzyme cuts the first string (molecule) between u1 and u2, while the second enzyme cuts the second between u3 and u4. To shorten the notation, we will represent the splicing rules by quadruples of the form (u1, u2; u3, u4). For a given splicing rule r = (u1, u2; u3, u4) and three strings x, y, z over Σ, we denote the relation (x,y)⊢rz if the following conditions hold: x = x1u1u2x2, y = y1u3u4y2, z = x1u1u4y2 for some x1, x2, y1, y2 ∈ Σ*. We may also examine the symmetric rule r′ = (u3, u4; u1, u2), which yields the result w = y1u3u2x2 where (y,x)⊢r′w. We will recall the circular splicing operation at the beginning of Section 3.
Similar to splicing, the insertion and deletion operations have gained attention as abstract models of bio-molecular processes. Moreover, they also have a central role in formal language theory and in formal models of DNA computing [13]. These operations reflect fundamental mechanisms such as the insertion and removal of DNA segments, and thus provide a natural basis for bio-inspired computational models [11].
The insertion and deletion operations were introduced for linear words [14]. Their circular variants were studied in [15], where a circular word is inserted into a linear word: the cyclic molecule is cut, and its linearization is placed between two contexts of a linear host molecule. Thus, in the known formulations, only the inserted molecule is cyclic, while the host, and hence also the result, is linear. What has not been defined so far is the operation in which the host molecule is cyclic as well, that is, an insertion that takes two circular words and returns a circular word, and, symmetrically, a deletion that removes a cyclic factor from a circular word. This is precisely the situation modeled in this paper. The gap is not merely notational: an operation whose result is linear cannot be iterated within a family of circular languages, nor can it be compared with circular splicing operations or the concatenation of circular words, as all of these operations act on circular words. Moreover, as we show in Section 4, applying the known operation to a linearization of a circular word and circularizing the outcome does not give the same result, because the occurrences of the context that span the position at which the circular word was cut are not exhibited by any linear representative of the molecule.
To define the insertion–deletion operations, we consider Σ as a finite alphabet, and R is a finite set of triples of the form (u,α/β,v) where u, v ∈Σ*, (α,β) ∈ (Σ+×{λ}) ∪ ({λ} × Σ+). The triples in R are called insertion–deletion rules, and they are used as follows: rins = (u,λ/β,v) means that β can be inserted between u and v in accordance with the rewriting rule uv → uβv, while rdel = (u,α/λ,v) means that α can be deleted from the (u,v) context corresponding to the rewriting rule uαv → uv. Thus, for x,y ∈ Σ*, we denote the relations and if y can be obtained from x by using an insertion and deletion rule, respectively, as defined above. In other words, one of the following two cases holds:
- x = x1uvx2, y = x1uβvx2 for x1, x2 ∈ Σ*, β ∈ Σ+ and rins = (u,λ/β,v) ∈ R;
- x = x1uαvx2, y = x1uvx2 for x1, x2 ∈ Σ*, α ∈ Σ+ and rdel = (u,α/λ,v) ∈ R.
Note that (α,β) ≠ (λ,λ) by definition, as no insertion or deletion occurs in this case. The circular extension of the insertion and deletion operations will be defined formally at the beginning of Section 4.
The concatenation operation is the usual way to unite information represented by words: it makes a new word from the two input words by continuing the first word, after its last letter, with the first letter of the second word. However, circular words have neither first nor last letters (see the formal descriptions in the next section); thus, it is not straightforward to generalize concatenation for them. Therefore, there are various concatenation operators defined for circular words [16]. In [17], two concatenation operations were considered, namely, the one-wheel and two-wheel concatenations. Their naming is motivated by the graphical representation of a circular word as a wheel, in which its letters are arranged cyclically around a circle. Under this interpretation, one-wheel concatenation combines two circular words into a single wheel, and thus the result consists of circular words, whereas two-wheel concatenation retains the two circular words as two distinct wheels while establishing the concatenation between them, and therefore may produce more complex structures.
This paper explores the theoretical foundations of circular splicing and insertion-deletion operations used in the corresponding modeling systems, with a focus on their computational power and biological relevance. We will examine various models, their relations to the one-wheel concatenation [17] and the open questions that continue to challenge researchers in this field.
The main contributions of this paper are the following:
- We prove that Head’s and Păun’s circular splicing operations produce the same circular words under an explicit translation of the rules, i.e., as single operations they are equivalent in the sense that one operation can be simulated by an operation of the other type (Proposition 1);
- We prove that the one-wheel concatenation of two circular words is exactly the set obtained by all applicable Păun circular splicing rules, and also by the single rule (λ, λ; λ, λ), and the analogous result for Pixton’s operation with the rule pair (λ, λ; λ) (Theorem 2, Corollary 1 and Theorem 4);
- We give if-and-only-if characterizations of the cases when the Păun and the Pixton circular splicing operations coincide with the two-wheel concatenation (Theorems 3 and 5);
- We provide a formal definition of the insertion operation acting on circular words, establish the hierarchy of the obtained sets and characterize when they coincide, and prove that this insertion can be simulated by Păun circular splicing and that, with empty contexts, it coincides with the one-wheel concatenation (Definition 7, Lemmas 2 and 3, Theorems 6–8);
- We define the deletion operation on circular words and show that it is strictly length-decreasing, hence never equivalent to a concatenation, that with empty contexts it realizes the inverse relation of the one-wheel concatenation, and that it can be simulated by Pixton circular splicing but not by the Head or the Păun one (Definition 8, Theorems 9 and 10).
These results concern single applications of the operations, thus the open problems on finite circular splicing systems mentioned above are not solved here and remain open, namely, the characterization of the circular languages, in particular the regular ones, generated by such systems, which is known only for restricted classes [4,6,7,18], and the comparison of the generative power of the systems based on the three definitions [6,19]; our Proposition 1 does not settle the latter, since the systems differ also in the structure and use of their sets of rules, however we hope that our results can be applied in further studies also in the direction to solve open problems about splicing systems.
The paper is organized as follows. Section 2 fixes the notations and recalls the necessary notions on words and circular words. Section 3 recalls the circular splicing operation in the definitions of Head, Păun and Pixton, compares these definitions with each other, and relates them to the one-wheel and to the two-wheel concatenations of circular words. Section 4 is devoted to the insertion and deletion operations: the circular insertion into circular words is defined and compared in Section 4.1 with the known circular insertion into linear words, with the Păun circular splicing and with the one-wheel concatenation, while Section 4.2 deals with the circular deletion. Section 5 discusses the implications of our results for systems generating circular languages. Finally, Section 6 summarizes the results and indicates directions for further research.
2. Preliminaries
The topic of the paper belongs to DNA computing, bioinformatics and models of DNA-based computing and information systems. In this section, we briefly recall some necessary preliminaries, and we also fix our notations. For any unexplained concepts, the reader is referred to [11,20,21].
Let Σ denote the alphabet, a finite non-empty set of symbols (or letters). A string (also called a word) is a finite sequence of letters. In this paper, the term `linear word’ is also used to contrast these words with the main subject of this paper, namely the circular or cyclic words, which are defined below. Further, as usual, Σ* denotes the set of all words over the alphabet Σ. Let ℕ and ℕ0 denote the set of positive and non-negative integers, respectively. The length of a string x ∈ Σ* is denoted by |x| and it is the length of the sequence, i.e., the number of symbols in x. Let λ denote the empty word; it is the only word having zero length. The jth letter of x ∈ Σ* is denoted by xj, for j ∈ {1, …, |x|}. A word w ∈ Σ* is a factor of x ∈ Σ*, written as w ∈ Fact(x), if there are two words u, v ∈ Σ* such that x = uwv. Moreover, if u = λ (resp. v = λ), then w is also a prefix (resp. suffix) of x. For any non-negative integer and word x, the power of x is defined as follows: x0 = λ, further xk+1 = xxk for k ≥ 0. Two words y and x are called conjugates if there are words v,u ∈ Σ* such that y = vu and x = uv.
A circular word x○ can be viewed graphically as the result of joining the first symbol of a linear word x to its last, thereby forming a closed loop. Circular words are also referred to as cyclic words and necklaces in the scientific literature. Unlike a linear word, a circular word has neither a distinguished beginning nor an end. Formally, a circular word associated with x is defined as the set of all conjugates (or, equivalently, all cyclic shifts) of x. This set-based representation is commonly referred to as the linearization of the circular word x○.
For a circular word , we define Fact(x○) to be the set that contains all substrings occurring in any conjugate of x (including the empty word). A circular word of length zero is called the empty circular word, and we may also write it as λ○. Further, let be the number of occurrences of a in x○, where a ∈ Σ, and it is defined to be the same as the number of occurrences of a in x (or in any other element of the set x○), i.e., . Although a circular word is formally represented as a set, all of its constituent words have the same length; hence, the notation |x○| is well-defined for their length. Conversely, the set x○ itself has a cardinality denoted by ‖x○‖, which does not exceed |x○|.
x○ = { y | y is a conjugate of x}
In the next sections, we also formally recall the splicing and insertion–deletion operations known in the literature for circular words.
3. Splicing Operation and Circular Splicing
Since circular splicing systems depend on the splicing rules used, various definitions are possible for them; however, some of them look very unnatural. As previously stated in [4,6,18], Head, Păun, and Pixton have provided three different definitions of the circular splicing operation. Generally, the main difference between the definitions of circular splicing lies in the way the splicing rules work.
Definition 1 (Head’s Definition).
Let Σ be a finite alphabet, and (u1, x, u2), (u3, x, u4) be two triples of words in Σ* sharing the same middle word x. Given two circular words and , Head’s circular splicing operation produces .
Although a splicing operation is applied prior to concatenation, the resulting word is identical to that obtained by concatenating alternative linearizations of the original circular words, namely u2hu1x and u4ku3x, respectively (see Figure 1).
Figure 1.
The Head Circular Splicing of Two Circular Words.
As we shall see, applying a splicing operation to two circular words produces a circular word. However, the operation need not be applicable to every pair of input circular words; in such cases, no output circular word can be generated (obtained). Moreover, it may also happen that the input circular words have many occurrences of the subwords specified by the rule, and therefore the rule can be applied in more than one way, and thus it may be able to produce more than one possible result.
In our examples below, generally, the computations follow the same three steps prescribed by the corresponding definition (and also shown in the corresponding figure).
- (i)
- Cut, i.e., determine the linearizations of the two input circular words that have the form required by the rule;
- (ii)
- Concatenate the obtained linear words;
- (iii)
- Circularize the result.
Every possible choice in step (i) gives a result. Different choices may give the same circular word in step (iii). We display these steps in detail for Examples 1, 3 and 5; the other examples are computed analogously.
Example 1.
Given the two triples of words (a, λ, b) and (b, λ, a), Head’s splicing operation applied to
and (ab)○ generates the circular word , and two copies of (ab)○ produce . However, using the same triple of words, Head’s splicing operation is not applicable to
and (aa)○ as the factor b is missing; hence, it generates the empty set. In addition, Head’s splicing operation applied to (abaab)○ and (aba)○ produces two different circular words (aaabbaab)○ and (abaaaabb)○.
For instance, in the first case of Example 1, the triples (a, λ, b) and (b, λ, a) require linearizations of the form hu1xu2 = hab and ku3xu4 = kba. The only conjugate of aabb ending with ab is baab (so h = ba), and the only conjugate of ab ending with ba is ba (so k = λ). By Definition 1, the result is .
Definition 2 (Păun’s Definition).
Let Σ be a finite alphabet, and let r = (u1, u2; u3, u4)∈Σ* × Σ* × Σ* × Σ* be a splicing rule. Given two circular words and , the Păun circular splicing operation defined by r cuts the two circular words at the specified contexts, linearizes them to the words u2hu1 and u4ku3, concatenates the obtained linear words, and circularizes the result, producing the circular word . We denote this operation by
.
Example 2.
The Păun circular splicing operation is defined by the splicing rule r = (a,b;b,a), and applied to and (ab)○ generates the circular word . It produces
when applied to two copies of (ab)○.
Example 3.
Given the two triples of words (u1,x,u2) = (aa,ab,aa) and (u3,x,u4) = (bb,ab,bb), Head’s splicing operation applied to (aaaaab)○ and (bbbbba)○ generates the circular word (aaabbbbbabaa○. However, using the same components for Păun circular splicing rule r = (u1, u2; u3, u4) = (aa,aa;bb,bb), the Păun splicing operation applied to the same circular words produces four different circular words (aabaaabbabbb)○, (aabaaabbbabb)○, (aaabaabbabbb)○ and (aaabaabbbabb)○.
The computation is as follows. For Head’s operation, the triples (aa,ab,aa) and (bb,ab,bb) require linearizations of the form h⋅ aa⋅ ab⋅ aa and k⋅ bb⋅ ab⋅ bb. Since these words already have length 6, we get h = k = λ, and the unique suitable conjugates are aaabaa∈ (aaaaab)○ and bbabbb∈ (bbbbba)○. By Definition 1, the result is
For the Păun rule r = (aa, aa; bb, bb), by Definition 2 the linearizations must have the form u2hu1 = aa ⋅ h ⋅ aa and u4ku3 = bb ⋅ k ⋅ bb (refer to Figure 2). Among the six conjugates of aaaaab, exactly two begin and end with aa, namely aaabaa (h = ab) and aabaaa (h = ba). Similarly, there are two options for linearizing the 6-letter long circular word (bbbbba)○ with prefix bb and suffix bb, i.e., bbabbb (k = ab) and bbbabb (k = ba). Combining them in the four possible ways gives the four distinct results:
| Linearization of x○ | Linearization of y○ | Concatenation | Resulting Circular Word |
| aaabaa | bbabbb | aaabaabbabbb | (aaabaabbabbb)○ |
| aaabaa | bbbabb | aaabaabbbabb | (aaabaabbbabb)○ |
| aabaaa | bbabbb | aabaaabbabbb | (aabaaabbabbb)○ |
| aabaaa | bbbabb | aabaaabbbabb | (aabaaabbbabb)○ |
Figure 2.
The Păun Circular Splicing of Two Circular Words.
These four circular words are pairwise different, since none of the four linear words in the third column is a conjugate of another one. Notice that the difference in the results comes from the fact that in Head’s operation an additional parameter x = ab was used that has not appeared in the applied Păun splicing operation.
From Examples 1 and 2, we observe that the definitions of Head and Păun yield the same resulting circular word when their respective splicing operations are applied to the circular words of these particular examples, but not for Example 3. However, the Head triples and the Păun rule in Example 3 do not correspond to each other as rules; Proposition 1 below shows that, under the appropriate translation of rules, the two operations yield the same results. Observe that although the splicing on linear words is applied in Head’s definition, it is applied in both ways, i.e., the splicing with its symmetric pair, and the concatenation of these two resulting strings yields a circular word that has as a subword a conjugate of both initial circular words, namely, xu2hu1 and xu4ku3, where the subword occurrence of x with the other subsequences written in the rules specify the positions where the cycles are cut before concatenating the result. By the Păun-type circular splicing, the rules also specify only how to cut the original circular words into linear words to obtain the new circular word after concatenating these two linear words, and thus, in the resulting circular word, a conjugate of each of the original words must appear. In Păun’s definition, this concatenation is more direct. In [6,19], these operations and computing systems based on them are compared. Now we complement the results shown there as follows:
Proposition 1.
Let Σ be a finite alphabet, and let (u1,x,u2) and (u3,x, u4) be two triples of words in Σ* sharing the same middle word x. Then, for any two circular words and , Head’s circular splicing operation with these triples and the Păun circular splicing operation with the rule r = (u1x, u2; u3x, u4) produce the same set of circular words. In particular, if x = λ, then every Păun rule (u1, u2; u3, u4) is reproduced by the Head triples (u1, λ, u2) and (u3, λ, u4) and vice versa.
Proof.
Applying the Head splicing operation with triples (u1,x,u2) and (u3,x, u4) to the circular words and , by Definition 1, the resulting circular word is .
On the other hand, the Păun splicing rule r = (u1x,u2;u3x,u4) applying it to and , by Definition 2, produces . Since hu1xu4ku3xu2 is a conjugate of u2hu1xu4ku3x, then .
Setting x = λ gives the second statement. □
We just proved in Proposition 1 that any circular word producible by a Head splicing can also be produced by a corresponding Păun splicing and vice versa.
For instance, based on the previous result, we complement Example 3.
Example 4.
The Păun rule corresponding to the Head triples of Example 3 is (aaab,aa;bbab,bb), which produces from (aaaaab)○ and (bbbbba)○ exactly the circular word (aaabbbbbabaa)○; conversely, the Păun rule (aa,aa;bb,bb) of Example 3 corresponds to the Head triples (aa,λ,aa) and (bb,λ,bb), which yield the same four circular words we have described there.
Differences between the two approaches arise only at the level of circular splicing systems (e.g., the structure and symmetry of the sets of rules, or the self-splicing included in Păun’s definition); see [6,19].
Example 5.
Consider a Păun rule with all contexts empty, r = (λ,λ;λ,λ). Splicing the two circular single words (a)○ and (b)○ results in (ab)○. Also, the Head triple pair (a,x,λ) and (b,x,λ) produces this from (a)○ and (b)○, with x = λ.
It is important to remember that the splicing rules can be applied in two different ways according to Păun’s initial definition of the circular splicing operation as in [22] (one method has already been explained here, and the other, known as self-splicing, will not be discussed in this paper). Note that circular splicing is defined as length-increasing in both Head’s and Păun’s definitions; this means that when two circular words are spliced from one another, the spliced word’s length is equal to the sum of the lengths of the two words.
Pixton’s definition does not necessarily satisfy the same fact, as he defined the circular splicing system differently, allowing some rewriting, as follows:
Definition 3 (Pixton’s Definition).
Let Σ be a finite alphabet, and let r = (α,α′;β)∈Σ* × Σ* × Σ* be a splicing rule. Assume there exists a partner rule associated with r. Given two circular words
and , the Pixton circular splicing operation defined by the rule pair cuts the two circular words at the specified contexts, linearizes them to the words εα and ε′α′, substitutes the suffixes α,α′ by β, β′, concatenates the resulting linear words, and circularizes the result, producing the circular word (εβε′β′)○. We denote this operation by .
As Pixton’s definition allows some rewriting, step (ii) in the computation in our examples is modified accordingly: instead of a simple concatenation of the linearized words, one needs to replace the marked suffixes by the ones given in the rule (see Figure 3). We show an example below:
Figure 3.
The Pixton Circular Splicing of Two Circular Words.
Example 6.
The Pixton circular splicing operation defined by the splicing rules r = (a2,a2b;a2) and , and applied to two copies of
, generates the circular word
. In detail, the rule r requires a linearization of the first copy of
of the form αε with α = a2, giving ε = a2b, and its partner requires a linearization of the second copy of the form α′ε′ with α′ = a2. By Definition 3, the two circular words are linearized to εα = a2ba2 and ε′α′ = a2a2b, the suffixes α and α′ are replaced by β = a2 and β′ = λ, respectively, and the resulting words εβ = a2ba2 and ε′β′ = a2 are concatenated and circularized, producing .
Pixton’s rules are symmetric by construction (every r has a partner ), so in statements one should always mention the existence of the partner and that the pair is applied together. Moreover, for a rule r = (α,α′;β), there may exist distinct rules such that the pair can be applied. Nevertheless, for the sake of simplicity and since no ambiguity arises from the context, we will adopt the notation when a pair is applied.
Example 7.
Let r = (ab,λ;a2) be a Pixton splicing rule over the alphabet Σ = {a,b}, having three partners , and
. Then, the Pixton circular splicing operation defined by the pair rules , , and applied to and (ab)○ produce respectively , and .
In the next part of the section, we analyze the operations described above.
Theorem 1.
Let Σ be an arbitrary finite alphabet, and let and
be two circular words, with lengths at least 2 and with indices taken modulo n and m respectively (so xn+1 = x1 and ym+1 = y1). For fixed indices i ∈ {1,…,n} and j ∈ {1,…,m}, the following nine Păun splicing rules applied to x○ and y○ generate the same circular word if :
| r1 = (xi,xi+1;yj,yj+1), | r2 = (xi,λ;yj,yj+1), | r3 = (λ,xi+1;yj,yj+1), |
| r4 = (xi,xi+1;yj,λ), | r5 = (xi,xi+1;λ,yj+1), | r6 = (xi,λ;yj,λ), |
| r7 = (xi,λ;λ,yj+1). | r8 = (λ,xi+1;yj,λ), | r9 = (λ,xi+1;λ,yj+1). |
Proof.
Since n,m > 1, the indices i and i + 1 and j and j + 1, respectively, denote neighbor positions in the two words. Assume , meaning that the letters xi and xi+1 (resp. yj and yj+1) occur only once in x○ (resp. y○). Thus, the conjugate of x that starts at xi+1 (or ends at xi) is the unique word xi+1 … xnx1 … xi, and likewise, the conjugate of y that starts at yj+1 (or ends at yj) is also uniquely defined yj+1 … ymy1 … yj. Thus, each of the nine rules applied to x○ and y○ cuts the two circular words at the same positions, and therefore, generates the same circular word . □
Note here that the hypothesis |x○|, |y○| ≥ 2 cannot be dropped. For example, if |x○| = 1, then indices taken modulo n give xi = xi+1, hence any rule whose first pair is (xi,xi+1) requires the factor xixi in x○ and is therefore inapplicable, while rules with λ in that position remain applicable. For instance, with x○ = (a)○, y○ = (bcd)○ and i = j = 1, the rule r1 = (xi,xi+1;yj,yj+1) = (a,a;b,c) generates nothing, whereas r2 = (xi,λ;yj,yj+1) = (a,λ;b,c) produces (acdb)○. Therefore, the results obtained by r1, …, r9 do not coincide, and the same argument applies symmetrically when |y○| = 1. Further, the scenario is similar in the case when one or both of the circular words are the empty word. In general, the Păun splicing rules r = (xi,xi+1;yj,yj+1) and r′ = (λ,λ;yj,yj+1) applied to x○ and y○ do not necessarily give the same results. On the one hand, while the rule r′ can cut and linearize x○ to obtain any conjugate of x, the rule r cuts and linearizes x○ obtaining, e.g., xi+1 … xnx1 … xi. However, if x○ is built up only by one of the letters, i.e., it is of the form for a letter a ∈ Σ, then there is only one linear word representing it, and any cut will lead to this sole word.
Example 8.
Consider the circular words
and
in the alphabet Σ = {a,b,c,d,1,2} ={a,b,c,d,1,2}. For fixed indices i = 3 and j = 2 ( and ), each of the nine Păun splicing rules in Theorem 1 applied to x○ and y○ generates exactly the same circular word .
On the other hand, consider the circular word
where the letter a occurs twice. Fixing the indices i = 1 and j = 2 ( and
), the Păun circular splicing rule r1 = (a,b;2,1) applied to z○ and y○ generates the circular word (bcada12)○, while the splicing rule r2 = (a,λ;2,1) applied to z○ and y○ generates two different circular words (bcada12)○ and (dabca12)○.
In addition, the factor ab in the circular word
occurs twice. However, the Păun circular splicing rule r1 = (a,b;2,1) applied to w○ and y○ generates two different circular words (bcabda12)○ and (bdabca12)○.
We recall the definitions of one-wheel and two-wheel concatenations of circular words from [17] to allow comparing them to the splicing operations.
Definition 4.
Let x○ and y○ be two circular words; their two-wheel concatenation is the sequence of the circular words obtained by:
x○y○ = x○∙y○ = { z | z = uv where u ∈ x○ and v ∈ y○}
Definition 5.
Let x○ and y○ be two circular words; their one-wheel concatenation is:
It produces all cyclic permutations of the concatenation of any conjugate of x and any conjugate of y.
x○⊙y○ = {w ∈ z○ | z = uv where u ∈ x○ and v ∈ y○ }
In [17], it was proved that the one-wheel concatenation is an operation that is commutative but not associative, while the two-wheel concatenation is associative but not commutative.
Theorem 2.
Let Σ be an arbitrary finite alphabet, and let and
be any arbitrary circular words over Σ with indices taken modulo n and m respectively (so xn+1 = x1 and ym+1 = y1). Then, considering any Păun circular splicing operation r = (u1, u2; u3, u4) the set of circular words obtained is a subset of the set obtained by the one-wheel concatenation applied to x○ and y○. Furthermore, applying all possible Păun circular splicing operations that produce a non-empty set, the union of the obtained circular words coincides with the set obtained by the one-wheel concatenation.
Proof.
We prove the two inclusions separately. Since x○ is the set of all cyclic permutations of x = x1 … xn, we have:
Similarly,
And by Definition 5, x○⊙y○ is the set of circular words for all i = 1,…,n and j = 1,…,m. The proof continues with the verification of the following two claims:
x○ = {xi+1 … xnx1 … xi | i = 1,…,n}.
y○ = {yj+1 … ymy1 … yj | j = 1,…,m}.
Claim 1.
For every Păun rule r = (u1, u2; u3, u4), the set of circular words produced by r from x○ and y○ is contained in x○⊙y○.
Proof of the Claim.
Indeed, by Definition 2, every application of r to x○ and y○ is determined by a pair (h,k) ∈ Σ* × Σ* such that and , and it produces . Several such pairs may exist, one for each occurrence of the specified subwords, and the rule is applied once for each of them; however, for every one of them the word u2hu1 is a conjugate of x and u4ku3 is a conjugate of y, so that the produced circular word is the circularization of the concatenation of a conjugate of x and a conjugate of y, i.e., an element of x○⊙y○. If no such pair exists, the rule produces the empty set, which is a subset of x○⊙y○ as well. This proves the claim, the first part of the statement of the theorem. □
Claim 2.
Every element of x○⊙y○ is produced by some Păun circular splicing rules.
Proof of the Claim.
Let be an arbitrary element of x○⊙y○, with i and j fixed. Assume first n,m ≥ 2, and consider the Păun circular splicing rule r = (xi,xi+1;yj,yj+1). It is applicable to x○ and y○, since with h = xi+2 … xnx1 … xi−1 and, analogously, with k = yj+2 … ymy1 … yj−1. The corresponding application produces exactly z○. If the factor xixi+1 occurs at other positions of x○, and/or yjyj+1 at other positions of y○, then r produces further circular words, which, by Claim 1, also belong to x○⊙y○; this does not affect the argument, as we only need to show that z○ to be produced.
If n ≤ 1, then x○ has a unique linearization, and we replace the first pair of the rule by (λ,λ); analogously, if m ≤ 1, we replace the second pair by (λ,λ). In each case, the obtained rule is applicable and produces z○. □
Now, continuing the proof of the theorem, by Claim 1, the union of the sets produced by all the Păun rules is contained in x○⊙y○, and by Claim 2 it contains it in the other way around; hence the two sets are equal, which proves the second part of the statement of the theorem. □
Theorem 2 is a characterization rather than a technically involved result: once the splicing rules are read as prescriptions of the positions at which the input circular words may be cut, both inclusions follow from Definitions 2 and 5 as it is shown above. Its role in this paper is to fix the exact ceiling of one application of the operations: namely, that whatever the contexts are, a single step cannot produce more than the one-wheel concatenation of its inputs, and that the whole of it is obtained when no site is prescribed. All the subsequent results rest on this bound: Corollary 1 and Proposition 2 describe how the produced sets vary with the contexts, Theorems 7 and 9 characterize the cases in which the two-wheel concatenation is reached instead, Theorems 7 and 8 place the circular insertion in the same picture, and Corollary 2 transfers the bound to the generated circular languages.
Example 9.
Consider the circular words
and
, with each of the following Păun circular splicing rules (b,c;1,2), (b,λ;1,2), (λ,c;1,λ), over the alphabet Σ = {a,b,c,1,2}. Each rule applied to x○ and y○ corresponds to the same cut-and-paste site, and generates the same circular word (cab21)○.
Corollary 1.
The Păun circular splicing rule (λ,λ;λ,λ) applied to any arbitrary circular words x○ and y○ generates their one-wheel concatenation.
Proof.
By Claim 1 in the proof of Theorem 2, the set of circular words produced by this rule is contained in x○⊙y○. Conversely, let z○ ∈ x○⊙y○, so that z is a conjugate of uv for some u ∈ x○ and v ∈ y○. Since λ is both a prefix and a suffix of every word, we have x○ = (λuλ)○ and y○ = (λvλ)○, i.e., the rule (λ,λ;λ,λ) is applicable with h = u and k = v, and by Definition 2 it produces (uv)○ = z○. Hence every element of x○⊙y○ is obtained. □
Corollary 1 concerns the rule with empty contexts, which is the least restrictive one, and one may ask whether this case is not too degenerate to be informative. Two observations show that it is not.
First, the inclusion proved in the first part of Theorem 2 holds for arbitrary rules: whatever the contexts are, the circular words produced by a Păun splicing are always among those given by the one-wheel concatenation, and the same holds for the circular insertion (Theorem 7), where the contexts are arbitrary as well. The empty contexts are needed only for the reverse inclusion, i.e., to reach every element of the concatenation. The equivalence results are therefore not about one particular rule, but the two ends of a general property: the one-wheel concatenation is an upper bound for all these operations, which is attained exactly when no site is prescribed.
Second, between these two ends the behaviour is monotone with respect to the contexts, in the following sense.
Proposition 2.
Let r = (u1, u2; u3, u4) and be two Păun splicing rules such that
is a suffix of u1,
is a prefix of u2,
is a suffix of u3 and
is a prefix of u4. Then, for any circular words x○ and y○, the set of circular words produced by r is a subset of the set produced by r′.
Proof.
Assume that r is applicable to x○ and y○, i.e., and for some h,k∈Σ*, then a produced circular word being . By the hypothesis, there are words p,p′,q,q′∈Σ* with , , and . Putting h′ = p′hp and k′ = q′kq, we obtain and . Hence and , so r′ is also applicable to them, and by Definition 2 it can produce , i.e., the same circular word. □
In particular, taking gives the inclusion of Corollary 1, so the rule (λ, λ; λ, λ) is the maximum of this ordering, while prescribing longer sites yields smaller sets of products; the results of Theorem 1 are the special case in which the restriction imposed by the contexts does not change the set at all. Together with Claim 2 in the proof of Theorem 2, which recovers the whole one-wheel concatenation as the union over all rules, this describes how the produced sets vary with the contexts, and not only at the degenerate end. Moreover, the characterizations of the forthcoming Theorems 7 and 9 are not restricted to empty contexts either: there the input circular words are forced to be of a special form, whereas the contexts may be arbitrary factors of them.
Beyond the one-wheel concatenation, which combines conjugates of two circular words into a single circular structure, the two-wheel concatenation preserves the independent circularity of each component before concatenation. However, unlike circular splicing, the result of a two-wheel concatenation is not necessarily a circular word, since the operation may yield a non-circular configuration. As the cases where one-wheel and two-wheel concatenations coincide were investigated in [17], it is now natural to examine the conditions under which the outcomes of Păun splicing coincide with those of two-wheel concatenation. Such a correspondence provides a precise structural characterization of when the generative power of Păun’s operation matches the two-wheel concatenation of two circular words. The next technical lemma and its proof are helpful to establish our further results.
Lemma 1.
Let x○ and y○ be two circular words over Σ. Then, the two-wheel concatenation of x○ and y○ yields a circular word language if and only if x,y ∈ {a}* for some a ∈ Σ, or x○ = λ○, or y○ = λ○.
Proof.
(Necessary condition) Assume that x○∙y○ is a circular word language (i.e., closed under conjugation), and suppose that x ≠ λ and y ≠ λ. Let A and B denote the sets of letters occurring in x and in y, respectively. We distinguish three cases, which cover all the possibilities.
- Case 1: there is a letter a that is in A but not in B. Every element of x○∙y○ is of the form uv with u ∈ x○ and v ∈ y○, with v ≠ λ. So, its last letter is a letter of B; hence, no element of the set ends with a. On the other hand, a occurs in x, so it occurs in every element of the set, and therefore some conjugate of such an element ends with a. By the assumed closure under conjugation, this conjugate belongs to the set, a contradiction.
- Case 2: there is a letter b that is in B but not in A. The argument is symmetric: every element uv of the set begins with a letter of A because u ≠ λ, so no element begins with b, while some conjugate of an element does; again, a contradiction.
- Case 3: A = B and ‖A‖ ≥ 2. Fix a ∈ A, and let n = max{k ∈ ℕ0 | ak ∈ Fact(x○)} and m = max{k ∈ ℕ0 | ak ∈ Fact(y○)}; both are well defined and n,m ≥ 1, since a occurs in x and in y, while n < |x| and m < |y|, since x and y contain a letter different from a. As the occurrences of an in the circular word x○ are preceded and followed by letters different from a, there is a linearization u ∈ x○ ending with an, and, analogously, a linearization v ∈ y○ beginning with am. Then uv ∈ x○∙y○ has the factor an+m, and therefore it has a conjugate z beginning with an+m. By the assumed closure under conjugation, z ∈ x○∙y○, i.e., z = u′v′ for some u′ ∈ x○ and v′ ∈ y○. Since u′ is a conjugate of x, it is not a power of a and it is not empty, so the maximal prefix of z of the form a* is the maximal prefix of u′ of this form, whose length is at most n. This contradicts the fact that z begins with an+m, because m ≥ 1.
Consequently, if x ≠ λ and y ≠ λ, then A = B and ‖A‖ = 1, i.e., x,y ∈ {a}* for some a ∈ Σ; otherwise, x○ = λ○ or y○ = λ○.
(Sufficient condition) If x,y ∈ {a}*, then x○∙y○ = {a|x|+|y|}, and if one of the circular words is λ○, then x○∙y○ is x○ or y○; all these sets are circular word languages, hence the two-wheel concatenation is a circular word language. □
Theorem 3.
Let Σ be an arbitrary finite alphabet, and let and
be any two arbitrary circular words with indices taken modulo n and m respectively (so xn+1 = x1 and ym+1 = y1). Then, the Păun circular splicing applied to them has the same result as their two-wheel concatenation if and only if (at least) one of the following three cases holds:
- x,y ∈ {a}* for any a ∈ Σ, and the rule r = (u1, u2; u3, u4) has the properties
- u1u2 ∈ { ap | p ∈ ℕ0 with 0 ≤ p ≤ |x|} and
- u3u4 ∈ { aq | q ∈ ℕ0 with 0 ≤ q ≤ |y|};
- , y○ = λ○ and r = (u1,u2;λ,λ) where u1u2 ∈ Fact(x○);
- x○ = λ○, and r = (λ, λ; u3, u4) where u3u4 ∈ Fact(y○).
Proof.
(Necessary condition) Assume that the Păun circular splicing operation applied to x○ and y○ results in x○∙y○. Since this operation produces a circular word language, x○∙y○ is one, and by Lemma 1, either x,y ∈ {a}* for some a ∈ Σ, or one of the two circular words is λ○.
Let x,y ∈ {a}*. Then, x○∙y○ = {a|x|+|y|}, and this must be produced by the Păun splicing rule r = (u1, u2; u3, u4) so that and for some h,k∈Σ*. Hence:
Thus, we obtain: u1u2 ∈ { ap | p ∈ ℕ0 with 0 ≤ p ≤ |x|} and u3u4 ∈ { aq | q ∈ ℕ0 with 0 ≤ q ≤ |y|}. This yields case (1), including the case when both of x○ and y○ are the empty circular word.
u1u2 ∈ Fact(x○) = Fact(a|x|) and u3u4 ∈ Fact(y○) = Fact(a|y|).
On the other hand, if and y○ = λ○, then x○∙y○ is just the set of linear words equal to conjugates of x. For equality with the result obtained by the Păun splicing rule, we must be able to produce the circular word x○. This can be done by any applicable Păun splicing rule, i.e., by any rule of the form (u1,u2;λ,λ), where u1u2 ∈ Fact(x○) (as a special case, as we have shown before, it can be done by the rule (λ,λ;λ,λ)). Thus, case (2) holds.
Analogously, having x○ = λ○ and yields that the rules of the form (λ,λ;u3,u4) with u3u4 ∈ Fact(y○) satisfy case (3). This completes the necessity direction.
(Sufficient condition) We now show that each of the listed cases is sufficient to guarantee equality.
Case 1: Let x,y ∈ {a}* for any a ∈ Σ, and assume that the splicing rule r = (u1, u2; u3, u4) has the property
Take h = a|x|−p and k = a|y|−q so that x = u2hu1 and y = u4ku3. Then, applying r yields . Hence, the result.
u1u2 ∈ { ap | p ∈ ℕ0 with 0 ≤ p ≤ |x|} and u3u4 ∈ { aq | q ∈ ℕ0 with 0 ≤ q ≤ |y|}.
Case 2: Since u1u2 ∈ Fact(x○), there exists an element of x○ of the form for some h ∈ Σ*. Moreover, y○ = λ○ = (λλλ)○. Applying the Păun splicing rule r = (u1,u2;λ,λ), the two circular words are linearized as u2hu1 and λ, respectively. By Definition 2, the resulting circular word is . On the other hand, by the definition of the two-wheel concatenation, x○∙y○ = x○∙λ○ = x○. Hence, the Păun circular splicing applied to x○ and y○ has the same result as their two-wheel concatenation.
The proof of Case 3 is analogous to Case 2: in fact, λ○ is the unit element of the two-wheel concatenation; therefore, the result will be exactly x○∙y○, thus the equality. □
Example 10.
The following cases illustrate Theorem 3 and show that its conditions cannot be weakened. Let Σ = {a,b,c}.
- Let , and r = (a,a;λ,a). Here u1u2 = a2 and u3u4 = a, so Case 1 holds, and r produces . However, for r′ = (a3,a;λ,a) we have u1u2 = a4, whose length exceeds |x| = 2; hence a4 ∉ Fact(x○), the rule is not applicable, and it produces the empty set instead of x○∙y○. Thus, the length bound in Case 1 is necessary.
- Let x○ = (abc)○, y○ = λ○ and r = (b,c;λ,λ). Since bc ∈ Fact(x○), Case 2 holds: r linearizes x○ to cab and produces (cab)○ = {abc,bca,cab} = x○∙λ○.
- Let x○ = (ab)○ and y○ = (a)○, which satisfy none of the three cases. Then x○∙y○ = {aba,baa}: the letter b, which does not occur in y, is not the last letter of any of its words, so the conjugate aab is missing and x○∙y○ is not a circular word language. Since every Păun splicing produces circular words, no Păun rule yields x○∙y○; e.g., (λ,λ;λ,λ) produces (aab)○ = {aab,aba,baa} ≠ x○∙y○.
In the next part, we characterize when the Pixton circular splicing operation reproduces the one-wheel concatenation.
Theorem 4.
Let
and
be any arbitrary circular words over the finite alphabet Σ with indices taken modulo n and m respectively. Then applying Pixton’s circular splicing with rules r = (λ,λ;λ) and (in fact, this rule is associated with itself) leads to the same set as the one-wheel concatenation x○⊙y○.
Proof.
On the one hand, in a Pixton rule r = (α,α′;β) setting both α and α′ to the empty word, the rule can be applied anywhere to cut and linearize the two circular input words. Further, by setting β to the empty word we do not permit changes by rewriting, and thus, the conjugates of the original circular words are concatenated, and the result is closed to be a circular word again. Thus, in this case, exactly the one-wheel concatenation is obtained. □
Example 11.
Let x○ = (ab)○ and y○ = (c)○. By Corollary 1, the Păun rule (λ, λ; λ, λ) linearizes x○ to ab or ba and y○ to c, producing the two distinct circular words (abc)○ and (bac)○; this is exactly x○⊙y○. By Theorem 6, the Pixton rule pair produces the same set.
Now, analogously to Theorem 3, we can also state a result when applying Pixton’s circular splicing results in the same set as the two-wheel concatenation of the input circular words.
Theorem 5.
Let
and
be any arbitrary circular words over the finite alphabet Σ with indices taken modulo n and m respectively. The Pixton circular splicing applied to them has the same result as their two-wheel concatenation if and only if (at least) one of the following three cases holds:
- x,y ∈ {a}* for any a ∈ Σ, and such that r = (ap,aq;β) and , where p,q ∈ ℕ0 with 0 ≤ p ≤ |x|, 0 ≤ q ≤ |y| and ββ′ = ap+q;
- , y○ = λ○ and r = (α,λ;β) and such that α ∈ Fact(x○) and ββ′ = α;
- x○ = λ○, and r = (λ,α′;β) and such that α′ ∈ Fact(y○) and ββ′ = α′.
Proof.
(Necessary condition) Assume that the Pixton circular splicing operations defined by a pair () applied to x○ and y○ results in x○∙y○. As this operation also produces a circular word language, Lemma 1 applies exactly as in Theorem 3, so either x,y ∈ {a}* for some a ∈ Σ, or one of the two circular words is λ○.
Let x,y ∈ {a}*. Writing r = (α,α′;β) and , the applicability to x○ and y○ gives α = ap, α′ = aq with 0 ≤ p ≤ |x| and 0 ≤ q ≤ |y|, and the produced circular word must be ; comparing the lengths of εβε′β′ = a|x|−pβa|y|−qβ′ and of a|x|+|y| yields ββ′ = ap+q, which is alternative (1) in the theorem. This case also covers the case that both of x○ and y○ are the empty circular word.
However, if either x○ = λ○ or y○ = λ○, then the proof is immediate and yields alternatives (2) or (3). Indeed, suppose y○ = λ○. Then every conjugate u ∈ x○ must be obtainable as the output of the Pixton rule pair applied to representatives of x○ and the empty circular word. Writing a general pair as r = (α,α′;β) with , we must have α′ = λ; hence r = (α,λ;β) and . To produce u, we must have a decomposition u = εβ with αε ∈ x○; comparing this equality for the various conjugates forces ββ′ = α. This is exactly alternative (2). The symmetric argument gives (3) when x○ = λ○.
(Sufficient condition) We show each alternative implies that applying the given pair of rules, the two-wheel concatenation x○∙y○ is obtained.
- If alternative (1) holds: x = a|x|, y = a|y| and there exists r = (ap,aq;β) with partner and ββ′ = ap+q. Take any u = as ∈ x○, v = at ∈ y○. Choose ε = as−p, ε′ = at−q (these are nonnegative powers because 0 ≤ p ≤ |x|, 0 ≤ q ≤ |y|). Then the Pixton pair applied to and produces:Thus, every uv ∈ x○∙y○ is realized; conversely, any Pixton output is plainly a concatenation of a conjugate of x○ and a conjugate of y○. Hence, the equality holds.εβε′β′ = as−pβat−qβ′ = as−pap+qat−q = as+t = uv.
- If alternative (2) holds: y○ = λ○ and r = (α,λ;β), with α ∈ Fact(x○) and ββ′ = α. Take any u = αε ∈ x○, then applying the Pixton pair to (αε)○ and λ○ yields:So, every conjugate u of x is produced; the concatenation with the empty word yields exactly x○∙y○.εβε′β′ = εββ′ = εα = u.
- The proof of alternative (3) is identical to (2). □
Example 12.
Let
and y○ = (a)○, and take p = q = 1. The pair r = (a,a;a), satisfies ββ′ = ap+q = a2, so Case 1 of Theorem 5 holds: with ε = a and ε′ = λ, it produces . In contrast, the pair r = (a,a;a2), has ββ′ = a3 ≠ a2, and it produces , since Pixton’s operation may change the length.
4. Computing by Circular Insertion–Deletion Operations
The insertion of linear DNA strands into linear DNA strands is modeled by contextual insertion [14]. In the circular framework, insertion–deletion operations are particularly relevant for representing transformations of circular DNA, leading to computational models grounded in circular molecular structures (and, in the theoretical description, by circular word structures).
4.1. Circular Insertion
In [15], the circular context-guided insertion was introduced. It was first defined as the insertion, between the factors u and v of a linear word x, of each of the linear words representing a circular permutation of y. We recall a form of the insertion operation [15]:
Definition 6 (Circular Insertion into Linear Word).
Let Σ be a finite alphabet. A circular insertion rule is represented by a triple of the form rins = (u, λ/β○, v), where u, v∈Σ* and β∈Σ+. Then, given a linear word x = x1uvx2, the application of the rule inserts any conjugate γ of β○ between u and v, obtaining y = x1uγvx2. We denote this operation by:
Although an application of the rule may give only one particular word, as we have already noted for the splicing operations, in general a set of possible results can be obtained, as we have written here in the definition. A graphical explanation is also shown in Figure 4. On the one hand, if x does not contain uv as a factor, then the result of the circular contextual insertion of any word into x is nothing, i.e., the empty set. The cardinality of the result of ranges from 0 to the number of occurrences of uv times |β○|. We note here that in some practical applications the inserted circular strands are short, and in some models only some of the conjugates can be inserted based also on the context where the cycle is broken.
Figure 4.
Circular Insertion into a Linear Word.
Based on the above definition, since we are interested in having circular words as results of an operation, we introduce the insertion of a circular strand of DNA into another circular strand (see Figure 5). In order to simulate this process, we examine here a generalization of word insertions.
Figure 5.
Circular Insertion into a Circular Word.
Definition 7 (Circular Insertion into Circular Word).
Let Σ be a finite alphabet. A circular insertion rule is represented by a triple of the form rins = (u,λ/β○,v), where u, v ∈ Σ* and β ∈ Σ+. Then, having a circular word , the application of the rule inserts any conjugate γ of β○ between u and v, obtaining . We denote this operation by:
In Definition 6, the contexts u and v are searched for in a linear word x, i.e., in one fixed linearization of the molecule, and the result x1uγvx2 is again a linear word (see Figure 4). In Definition 7, they are searched for in the circular word x○, i.e., in all of its linearizations at the same time, and the result is a circular word (see Figure 5). The two operations therefore differ in three respects. First, Definition 7 is closed on circular words, so it can be iterated on cyclic molecules and compared with the circular splicing operations and with the concatenations of circular words (Theorems 13 and 14), which is not possible for Definition 6. Second, Definition 7 is a conservative extension of Definition 6: by Lemma 2, it can be obtained by applying Definition 6 to all linearizations of x○ and closing the results under conjugation. Third, and most importantly, this closure is a genuine enlargement and not a reformulation: as we will show, by Lemma 3, we only have the inclusions Z ⊆ Z′ ⊆ Z″, and Theorem 6 characterizes when equality holds, the inclusions being strict as soon as x○ has an occurrence of the context uv that spans the position at which x was cut, i.e., an occurrence that no linear representative of the molecule exhibits (see Example 13, where x = cdaab yields nothing, while yields three circular words). In biological terms, a cyclic molecule has no distinguished starting point, so the recognition site of the enzyme may lie across any point of the cycle; a model based on a fixed linearization would discard exactly these occurrences.
Observe that, since it is clear from the context, we use the same notation for a circular insertion rule whether we apply it to a linear or to a cyclic word.
Now, as a preliminary result about circular insertions, we show that our new definition is a natural extension of Definition 6 to circular words (i.e., it makes the insertion applicable to the case when both the original words are cyclic words, not only the one that is inserted).
Lemma 2.
Applying an insertion rule rins = (u,λ/β○,v) to a circular word x○ yields the same result as the following process: linearize the circular word x○ in all possible ways; apply the rule rins to each linear word by inserting any conjugate γ of β○ between u and v in them (according to Definition 6); then close each resulting word back into its circular form.
Proof.
The result is a direct consequence of the new definition when it is compared with the original definition applied for inserting circular words into linear words. □
Lemma 3.
Let rins = (u,λ/β○,v) be a circular insertion rule over the alphabet Σ and a linear word x be given. Let the sets Z, Z′ and Z″ represent the results of operations rins to x, the set of all conjugates of this set and the application of rins to the circular word x○ as a circular insertion to a circular word, respectively. Then, we have the following relation:
Z ⊆ Z′ ⊆ Z″
Proof.
The first part of the proof is trivial, since Z’, as the set of all conjugates of Z, must be a superset of Z. On the other hand, each element of Z’ is a conjugate of a word obtained by inserting a conjugate γ of β○ between u and v in x (if such position exists). However, in this case, this word is also a conjugate of a linear word which is in . □
The previous lemma shows a real hierarchy of the obtained sets. To see and prove that these sets may not be equal, we present the following examples.
Example 13.
Let Σ = {a,b,c,d,0,1,2} be an alphabet, and let rins = (ab,λ/(012)○,cd) be a circular insertion rule. Considering the linear word x = cdaab over Σ, the rule rins applied to x generates nothing other than the empty set since it does not contain abcd as a factor. Hence, and . However, the rule rins applied to the circular word generates .
Moreover, applying the rule rins to the linear word w = abcd, it produces } while the set of all its conjugates is
and
Now, we turn to an important result by further analyzing this second part of the relation.
Theorem 6.
Let Σ be a finite alphabet, and rins = (u,λ/β○,v) be a circular insertion rule, where u, v ∈ Σ* and β ∈ Σ+. For any linear word x,
- If , then uv ∈ Fact(x) or uv ∉ Fact(x○).
- If uv ∉ Fact(x○), or the number of occurrences of uv in x is maximal in the sense that the suffix of x concatenated to the prefix of x does not provide any extra occurrences of uv, then .
Proof.
Case 1: Assume that . Let us suppose that uv ∉ Fact(x) and uv ∈ Fact(x○). Then, is the empty set, whereas is not, which leads to a contradiction. Therefore, uv ∈ Fact(x) or uv ∉ Fact(x○).
Case 2: Assume that the linear word x has the factor uv, i.e., x can be written in the form of x = x1uvx2. By Lemma 3, . Conversely, each word of arises from an occurrence of uv in x○ and some γ ∈ β○. If the number of occurrences of uv in x is maximal as it is described, then the result is for each conjugate of x○ having an occurrence of uv as a prefix, whose words belong to . This leads to the equality .
On the other hand, if uv ∉ Fact(x○), then both and are the empty sets. Hence, the equality holds. □
Notice that the condition uv ∈ Fact(x) itself is not sufficient for the set equality of the previous theorem since x○ can also contain occurrence(s) that run(s) across the junction between the last and first letters of x, as we show in the next example.
Example 14.
Let rins = (a,λ/(0)○,b) and x = babca. In x, the factor ab occurs only once, giving ba0bca. So . In x○, ab also occurs across the junction (last a, first b), giving the extra circular word (babca0)○. Since ba0bca is not a conjugate of babca0, then and
differ even though uv ∈ Fact(x).
The following results relate the circular insertion to Păun circular splicing operations and the one-wheel concatenation.
Theorem 7.
Let Σ be a finite alphabet, and rins = (u,λ/β○,v) be a circular insertion rule, where u, v ∈ Σ* and β ∈ Σ+. Then, the circular insertion by rins can be simulated by a Păun circular splicing operation.
Proof.
Consider the Păun rule r = (u,v;λ,λ). Let (for some x1 ∈ Σ* if any) and y○ = β○. Applying r to x○ and y○, the Păun operation linearizes the words to uvx1 (for any occurrence of uv in x○) and to any conjugate γ of β○, concatenates them, and circularizes the result, yielding , whose words are exactly the results of applying the circular insertion rule rins to x○. □
Example 15.
Let rins = (a,λ/(01)○,b) and x○ = (abc)○. The circular insertion produces (a01bc)○ and (a10bc)○. The Păun rule (a,b;λ,λ) linearizes x○ to bca and (01)○ to 01 or 10, producing (bca01)○ = (a01bc)○ and (bca10)○ = (a10bc)○, i.e., the same set.
Theorem 8.
Let Σ be a finite alphabet, and rins = (λ,λ/β○,λ) be a circular insertion rule, β ∈ Σ+. Consider the circular word x○. Then, the set of circular words obtained by applying the circular insertion rule rins to x○ coincides with the one-wheel concatenation x○⊙β○.
Proof.
Let y○ be obtained from x○ by rins. Since λ appears anywhere in x as a subword, any conjugate x1 of x can be taken as a linearization, i.e., any point can be used to cut the circular word x○. By the definition of circular insertion, there exists a conjugate γ ∈ β○ such that . Hence, y○ ⊂ x○⊙β○.
For the other inclusion, let y ∈ x○⊙β○. Then, there exist conjugates x1 ∈ x○ and γ ∈ β○ and a circular word such that . Thus, actually, y is a conjugate of a concatenation of the form x1γ. Applying the insertion rule rins to x○, as the empty word is used as context, may cut the cycle of x○ to get the conjugate x1. The insertion of γ ∈ β○ at this point yields exactly to . Thus, as , it is obtainable by this circular insertion. This completes the second direction of the proof. □
Example 16.
Let rins = (λ,λ/(01)○,λ) and x○ = (ab)○. The circular insertion produces the four distinct circular words (ab01)○, (ab10)○, (ba01)○ and (ba10)○, which form exactly x○⊙(01)○.
4.2. Circular Deletion
For the sake of completeness, we also consider the deletion operation on circular words. Symmetrically to Definition 7, we define it as follows:
Definition 8 (Circular Deletion from a Circular Word).
Let Σ be a finite alphabet. A circular deletion rule is represented by a triple of the form rdel = (u,α○/λ,v), where u, v ∈Σ* and α ∈ Σ+. Then, having a circular word with γ ∈ α○, the application of the rule deletes the occurrence of γ between u and v, obtaining . We denote this operation by:
As in the case of insertion, the result may be the empty set (if no conjugate of x contains uγv as a factor for any γ ∈ α○), and it may also contain the circular words obtained from several occurrences. We first make precise why this operation cannot be equivalent to any of the concatenation operations.
Both concatenation operations are length-increasing, whereas the deletion operation is strictly length-decreasing. Hence, no equivalence of the type given in Theorem 2, Corollary 1 and Theorems 4 and 8 can hold for deletion. Nevertheless, the deletion operation is closely related to the one-wheel concatenation, namely, as its inverse relation, as the next result shows.
Theorem 9.
Let Σ be a finite alphabet, and rdel = (λ,α○/λ,λ) be a circular deletion rule, α ∈ Σ+. Then, for any circular words x○ and y○,
Proof.
Assume first that y○ is obtained from x○ by rdel. Since the contexts are empty, by Definition 8 there are a conjugate γ ∈ α○ and a word x1 ∈ Σ* such that and . As x1 ∈ y○ and γ ∈ α○, the word x1γ belongs to the set described in Definition 5, and x, being a conjugate of γx1, is also a conjugate of x1γ. Hence x ∈ y○⊙α○.
Conversely, assume that x ∈ y○⊙α○. By Definition 5, x is a conjugate of a word of the form y1γ with y1 ∈ y○ and γ ∈ α○. Therefore , i.e., x○ has an occurrence of the conjugate γ of α○. As the contexts of rdel are empty, the rule can be applied at this occurrence, and it deletes γ, yielding . □
Theorem 9 is the exact counterpart of Theorem 8: while the circular insertion with empty contexts realizes the one-wheel concatenation, the circular deletion with empty contexts realizes its inverse relation, i.e., a kind of one-wheel quotient by α○. Finally, we show that circular deletion can also be related to the splicing operations.
Theorem 10.
Let Σ be a finite alphabet, and rdel = (u,α○/λ,v) be a circular deletion rule, α ∈ Σ+. Then, for each γ ∈ α○, the Pixton circular splicing operation defined by the rule pair r = (uγv,λ;uv) and , applied to x○ and to λ○, produces exactly those circular words that are obtained by rdel applying it to x○ using the occurrences of uγv. Hence, the finite set of rule pairs simulates rdel.
Proof.
Let γ ∈ α○ be fixed. In the notation of Definition 3, the rule pair r = (α,α′;β) with α = uγv, α′ = λ, β = uv and with β′ = λ is applicable to x○ and λ○ if and only if x○ = (uγvε)○ for some ε ∈ Σ*, i.e., if and only if x has a conjugate of the form uγvε; the second circular word is linearized as ε′ = λ. In this case, the operation linearizes x○ to εuγv, replaces the suffix uγv by β = uv and the suffix α′ = λ by β′ = λ, concatenates the obtained words and circularizes the result, producing (εuv)○ = (uvε)○.
On the other hand, by Definition 8, the rule rdel is applicable to x○ at an occurrence of uγv if and only if x○ = (uγvε)○ for some ε ∈ Σ* (writing ε for x1), and then it produces (uvε)○. Thus, the applications of the pair to x○ and λ○ and the applications of rdel at the occurrences of uγv correspond to each other and give the same circular words. Taking the union for all γ ∈ α○, which is a finite set, the whole result of rdel is obtained. □
Note that similar results as Theorem 10 cannot be stated for the Head or the Păun circular splicing operations: as we have already recalled, these operations are length-increasing, that is, actually, the length of the result equals the sum of the lengths of the two input circular words, and therefore they can never produce a shorter circular word. In contrast, Pixton’s definition allows rewriting, which makes the simulation of deletion possible.
Example 17.
Let Σ = {a,b,0,1}, rins = (λ,(01)○/λ,λ) and x○ = (ab01)○. The only occurrence of a conjugate of (01)○ in x○ is 01, hence . Accordingly, x ∈ (ab)○⊙(01)○, in agreement with Theorem 9. Further, by Theorem 10, the Pixton rule pair r = (01,λ;λ), applied to x○ and λ○ linearizes x○ to ab01, replaces the suffix 01 by λ, and produces (ab)○, i.e., the same circular word.
5. Implications for Language Generation
The results of the previous sections concern single applications of the operations. Since the operations are used in systems that generate circular languages by iterating them, we indicate here what our equivalences imply at that level. Throughout, a circular language L is called regular if its linearization, i.e., the set of all the linear words belonging to its circular words, is a regular language.
Corollary 2.
Let L1and L2be regular circular languages over Σ, and let r = (u1, u2; u3, u4) be a Păun circular splicing rule. Then the set of circular words obtained by applying r to the pairs of L1 × L2 is a regular circular language, and it is contained in L1⊙L2 which is itself regular and is obtained for r = (λ,λ;λ,λ).
Proof.
Let Lin(L1) and Lin(L2) denote the linearizations, which are regular by assumption. By Definition 2, the rule r uses exactly the linearizations belonging to Lin(L1) ∩ u2Σ*u1 and to Lin(L2) ∩ u4Σ*u3, which are regular, and it concatenates them, so the linear words obtained produce a regular language; its closure under conjugation is regular as well, i.e., the obtained set is a regular circular language. The inclusion in L1⊙L2 and the equality for the rule with empty contexts are the two parts of Theorem 2, applied to each pair of circular words, while the regularity of L1⊙L2 was proved in [17]. □
Thus, one application of a Păun circular splicing rule (and hence, by Proposition 1, of the corresponding Head rule) cannot leave the class of regular circular languages, and, by Corollary 1, the largest set it can produce, L1⊙L2, is already reached by a single rule with empty contexts. Consequently, the generative power of the corresponding systems does not come from the operation itself, but from the iteration and from the restriction imposed by the sites: the contexts select, at each step, a subset of a set that is fixed in advance by the inputs.
At the level of single operations, Theorems 7 and 10 relate insertion and deletion to splicing: one application of a circular insertion rule can be performed by one application of a Păun circular splicing rule, provided that the inserted circular word is available as an input, and one application of a circular deletion rule can be performed by Pixton circular splicing rule pairs applied together with the empty circular word λ○. Whether, and how, these relations extend to the languages obtained by iterating the operations is not addressed here; for insertion, this is the first of the tasks listed in the Conclusions. We note also that the operations behave differently with respect to length, and hence with respect to the descriptional resources needed: Head’s and Păun’s operations are length-increasing, so iterating them on a finite set of initial circular words yields only circular words whose lengths are sums of the lengths of the initial ones, while Pixton’s operation permits rewriting and, by Theorem 10, deletion, so that this restriction disappears.
Finally, our equivalences have a descriptional reading. By Proposition 1, the translations between Head triples and Păun rules change the size of a rule only by the length of the common middle word x, so the two formalisms are equally succinct up to an additive term. By Theorem 10, one circular deletion rule is simulated by at most ‖α○‖ ≤ |α| Pixton rule pairs, a linear increase whose optimality is open. In the opposite direction, Theorem 1 shows that nine different rules may have exactly the same effect, so the sets of rules describing a given operation are far from unique, and the most succinct description, a single rule with empty contexts, is precisely the one producing the largest set of circular words.
6. Conclusions
The results of this paper give an algebraic reading of the biologically inspired operations defined on circular words. When the contexts prescribed by the rules are empty, circular splicing and circular insertion degenerate to a purely algebraic operation, the one-wheel concatenation of circular words; when they are not empty, they only select which linearizations of the input circular words, i.e., which cut points of the cyclic molecules, may be used, and the results obtained in this way always belong to the same one-wheel concatenation. This dependence on the contexts is generally monotone: prescribing longer sites yields fewer products, the rule with empty contexts being the maximum of this ordering and the union over all rules recovering the whole concatenation. In this sense, the one-wheel concatenation is the common algebraic core of all the operations considered here, and the contexts of the rules carry their whole computational content. The coincidence with the two-wheel concatenation is, in contrast, exceptional: it occurs only in the degenerate unary and empty cases.
As single operations, those of Head and of Păun are equivalent, and both are length-increasing; Pixton’s definition, which permits rewriting, is the only one that is able to shorten the input, and it is therefore also the only one that is able to simulate deletions. Together with our generalization of the insertion and of the deletion operations to act on circular words and to produce circular words, this shows that insertion and deletion are not independent of splicing at the level of single operations: insertion is the contextual form of the one-wheel concatenation, while deletion is its inverse relation. One application of a Păun circular splicing rule to regular circular languages yields a regular circular language; the corresponding questions for the other operations are left open. We believe that our results help to study also iterated applications of the mentioned operations.
These operations have recognizable biological counterparts, and it is worth stating how far the correspondence goes. The insertion of a circular word into a circular word models the integration of a cyclic molecule, such as a plasmid, a circular viral genome or a circular transposition intermediate, into another cyclic molecule, while the deletion models the reverse process, the excision of such a segment; that deletion is the inverse relation of the one-wheel concatenation and is the formal counterpart of the integration–excision duality. In this picture, the contexts u and v of a rule represent the sites at which the enzymes act, and they are the realistic part of the model, since site-specific recombination and the action of restriction enzymes are determined precisely by such sites.
The limitations of the model should also be stressed. As usual in this branch of formal language theory, a molecule is represented by a word over a finite alphabet, so the double-stranded structure, the Watson–Crick complementarity and the orientation of the strands are not fully represented, and neither are the topological properties of cyclic DNA, such as supercoiling, knotting or catenation, which are known to influence recombination. Moreover, the operations are non-deterministic, and their results are the sets of all products that a rule may yield, whereas in a real reaction the products obtained depend on concentrations, kinetics and reversibility. Within these limits, the results have a practical reading for DNA computing and synthetic biology, where circular molecules are used as carriers of the computation and where standard assembly methods yield circular products: the one-wheel concatenation describes the complete library of circular molecules that a given pair of inputs may produce, and our characterizations delimit which of these products can be enforced by a suitable choice of the sites, which is exactly what has to be designed in a plasmid-based experiment.
Our results concern single applications of the operations, and the natural continuation is to pass to the systems built on them. We list the specific tasks we intend to address:
- (1)
- Define a circular insertion system as a triple (Σ, A, R), where A is a finite set of axiom circular words and R is a finite set of circular insertion rules, and compare the family of circular languages generated by such systems with the family generated by Păun circular splicing systems with finite sets of axioms and rules. Theorem 7 gives one inclusion for a single step, provided that the inserted circular words belong to the axioms; the question is whether the inclusion is strict for the generated families.
- (2)
- Determine the sizes for which circular insertion–deletion systems are computationally complete, i.e., the tuples of parameters bounding the lengths of the inserted and deleted words and of their left and right contexts, in analogy with the known results obtained for insertion–deletion systems on linear words [13,20].
- (3)
- Decide, for given circular words x○ and y○ and a given α ∈ Σ+, whether y○ can be obtained from x○ by iterated applications of the circular deletion rule (λ,α○/λ,λ), and determine the complexity of this reachability problem for the one-wheel quotient; the corresponding problem for iterated circular insertion is the reachability problem for the one-wheel concatenation.
- (4)
- Determine the descriptional complexity of the simulation given in Theorem 10: it uses one Pixton rule pair for each conjugate of α○, and the question is the minimal number of rule pairs needed to simulate one circular deletion rule, in particular, whether a single pair is always sufficient.
- (5)
- Define an excision operation that cuts one circular word at two sites into two circular words, i.e., a splitting counterpart of the one-wheel concatenation modeling the excision of a cyclic molecule from another one, and decide whether adding it to circular splicing systems strictly increases their generative power.
Beyond these tasks, the classical problems concerning finite circular splicing systems remain open, in particular the characterization of the circular languages, especially the regular ones, generated by them, which is known only for restricted classes of systems, and the comparison of the systems based on the definitions of Head, Păun and Pixton.
Author Contributions
Conceptualization, B.N. and B.A.; methodology, B.N. and B.A.; validation, B.A. and B.N.; formal analysis, B.A. and B.N.; investigation, B.A. and B.N.; writing—original draft preparation, B.A.; writing—review and editing, B.N.; visualization, B.A.; supervision, B.N. All authors have read and agreed to the published version of the manuscript.
Funding
This research has been funded by BAP-C 04-26-01 of Eastern Mediterranean University.
Data Availability Statement
The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding authors.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- McManus, S.A.; Li, Y. The structural diversity of deoxyribozymes. Molecules 2010, 15, 6269–6284. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hollenstein, M. DNA catalysis: The chemical repertoire of DNAzymes. Molecules 2015, 20, 20777–20804. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhang, Y.; Ji, Z.; Wang, X.; Cao, Y.; Pan, H. Single-molecule study of DNAzyme reveals its intrinsic conformational dynamics. Int. J. Mol. Sci. 2023, 24, 1212. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Bonizzoni, P.; De Felice, C.; Mauri, G.; Zizza, R. Circular splicing and regularity. RAIRO—Theor. Inform. Appl. 2004, 38, 189–228. [Google Scholar] [CrossRef] [Scilit]
- Bonizzoni, P.; De Felice, C.; Mauri, G.; Zizza, R. DNA and circular splicing. In DNA Computing. DNA 2000; Lecture Notes in Computer Science; Condon, A., Rozenberg, G., Eds.; Springer: Berlin/Heidelberg, Germany, 2001; Volume 2054, pp. 117–129. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Bonizzoni, P.; De Felice, C.; Mauri, G.; Zizza, R. On the power of circular splicing. Discret. Appl. Math. 2005, 150, 51–66. [Google Scholar] [CrossRef] [Scilit]
- De Felice, C.; Bonizzoni, P.; Zizza, R. A characterization of regular circular languages generated by circular splicing systems. Theor. Comput. Sci. 2009, 410, 3382–3390. [Google Scholar] [CrossRef] [Scilit]
- Head, T. Formal language theory and DNA: An analysis of the generative capacity of specific recombinant behaviours. Bull. Math. Biol. 1987, 49, 737–759. [Google Scholar] [CrossRef] [Scilit]
- Head, T. Splicing schemes and DNA. In Lindenmayer Systems: Impacts on Theoretical Computer Science and Developmental Biology; Rozenberg, G., Ed.; Springer: Berlin/Heidelberg, Germany, 1992; pp. 371–383. [Google Scholar]
- Păun, G. On the splicing operation. Discret. Appl. Math. 1996, 70, 57–79. [Google Scholar] [CrossRef] [Scilit]
- Păun, G.; Rozenberg, G.; Salomaa, A. DNA Computing—New Computing Paradigms; Springer: Berlin/Heidelberg, Germany, 1998. [Google Scholar] [CrossRef] [Scilit]
- Pixton, D. Regularity of splicing languages. Discret. Appl. Math. 1996, 69, 101–124. [Google Scholar] [CrossRef] [Scilit]
- Kari, L.; Seki, S.; Sosík, P. DNA computing—Foundations and implications. In Handbook of Natural Computing; Rozenberg, G., Bäck, T., Kok, J.N., Eds.; Springer: Berlin/Heidelberg, Germany, 2012; pp. 1073–1127. [Google Scholar] [CrossRef] [Scilit]
- Kari, L.; Thierrin, G. Contextual insertions/deletions and computability. Inf. Comput. 1996, 131, 47–61. [Google Scholar] [CrossRef] [Scilit]
- Daley, M.; Kari, L.; Gloor, G.; Siromoney, R. Circular contextual insertions/deletions with applications to biomolecular computation. In Proceedings of the 6th International Symposium on String Processing and Information Retrieval (SPIRE ‘99) and the 5th International Workshop on Groupware; IEEE Computer Society: Los Alamitos, CA, USA, 1999; pp. 47–54. [Google Scholar]
- Kudlek, M. On Languages of Cyclic Words. In Aspects of Molecular Computing; Lecture Notes in Computer Science; Jonoska, N., Păun, G., Rozenberg, G., Eds.; Springer: Berlin/Heidelberg, Germany, 2003; Volume 2950, pp. 278–288. [Google Scholar]
- Abdallah, B.; Nagy, B. On concatenations of regular circular word languages. Mathematics 2025, 13, 763. [Google Scholar] [CrossRef] [Scilit]
- Bonizzoni, P.; De Felice, C.; Zizza, R. A characterization of (regular) circular languages generated by monotone complete splicing systems. Theor. Comput. Sci. 2010, 411, 4149–4161. [Google Scholar] [CrossRef] [Scilit]
- Boasson, L.; Bonizzoni, P.; De Felice, C.; Fagnot, I.; Fici, G.; Zaccagnino, R.; Zizza, R. Splicing systems from past to future: Old and new challenges. In Discrete Mathematics and Computer Science: In Memoriam Alexandru Mateescu (1952–2005); Păun, G., Rozenberg, G., Salomaa, A., Eds.; The Publishing House of the Romanian Academy: Bucharest, Romania, 2014; pp. 51–76. [Google Scholar]
- Păun, G. DNA computing by splicing and by insertion–deletion. In Handbook of Natural Computing; Rozenberg, G., Bäck, T., Kok, J.N., Eds.; Springer: Berlin/Heidelberg, Germany, 2012; pp. 1185–1202. [Google Scholar] [CrossRef] [Scilit]
- Rozenberg, G.; Salomaa, A. (Eds.) Handbook of Formal Languages; Springer: Berlin/Heidelberg, Germany, 1996. [Google Scholar]
- Head, T.; Păun, G.; Pixton, D. Language theory and molecular genetics: Generative mechanisms suggested by DNA recombination. In Handbook of Formal Languages; Rozenberg, G., Salomaa, A., Eds.; Springer: Berlin/Heidelberg, Germany, 1996; Volume 2, pp. 295–360. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.




