arXiv:2609.00779cs.ITSep 2026

Manuscript Offprint

arXiv:2609.00779

Coding for Multiple Reverse-Complement and Palindromic Duplications

Aryeh Lev Zabokritskiy

Abstract

Reverse-complement (RC) and palindromic (PAL) duplications copy a length-kk block, reverse the copy, and insert it next to the original block; an RC duplication also complements the copied symbols. We study qq-ary codes correcting tt such operations performed sequentially, so a later operation may copy symbols created by an earlier one. For fixed q,k,tq, k, t, every length-nn code CC for either channel satisfies n−log⁡q∣C∣≥tlog⁡qn−Oq,k,t(1)n - \log_q |C| \geq t \log_q n - O_{q,k,t}(1); for fixed q,kq, k and t=o(n)t = o(n) the lower bound is tlog⁡q(n/t)−Oq,k(t)t \log_q (n/t) - O_{q,k}(t). For a single RC error over an even alphabet with a fixed-point-free complement, the previously known RC-specific lift applies at odd kk and does not cover even kk. For every even kk, we give a coordinate-wise bijection that turns each RC duplication into a PAL duplication. Applying this bijection to every codeword therefore converts any tt-error-correcting RC code into a PAL code of the same size, and conversely; encoders and decoders transfer by adding linear-time coordinate passes. We also determine the maximum number of distinct descendants produced by exactly two errors from one source word. Words alternating between any two distinct alphabet symbols attain this maximum for PAL, and the bijection gives the RC maximizers. For both PAL and RC at even kk, form a graph whose vertices are all qq-ary words of length nn, joining two distinct vertices exactly when they have a common exact-two descendant. Bounding the degree and greedily coloring this graph yields existential codes of redundancy 4log⁡qn+Oq,k(1)4 \log_q n + O_{q,k}(1). In the binary two-error problem, the converse gives 2log⁡2n−Ok(1)2 \log_2 n - O_k(1), leaving a factor-two gap in the best existence bounds.

Keywords: duplication-correcting codes, DNA storage, palindromic duplication, reverse-complement duplication, sphere-packing bounds.

1 Introduction

Let Σ\Sigma be a qq-symbol alphabet, where q≥2q \geq 2, equipped with an involutive complement map, which may have fixed points. A length-kk palindromic (PAL) duplication copies a factor, reverses it, and inserts the reversed copy immediately after the source factor. A reverse-complement (RC) duplication additionally complements every copied symbol. In a sequence of duplications, each operation acts on the current word. Its source block may therefore include symbols inserted by earlier operations.

Fix integers n≥k≥1n \geq k \geq 1 and t≥0t \geq 0, and a channel χ∈{pal,rc}\chi \in \{\text{pal}, \text{rc}\}. A code C⊆ΣnC \subseteq \Sigma^n corrects exactly tt length-kk duplications in channel χ\chi when distinct codewords have no common descendant after tt operations. Its qq-ary redundancy is rq(C)=n−log⁡q∣C∣r_q(C) = n - \log_q |C|. Outputs produced by different numbers of operations have different lengths. Moreover, any common descendant after s<ts < t operations can be extended to a common exact-tt descendant by applying the same t−st-s legal duplications to it. Hence exact-tt and at-most-tt correction are equivalent here. The finite-error problem asks for the minimum

*Department of Computer Science, Tel-Hai University of Kiryat Shmona in the Galilee; MIGAL – Galilee Research Institute. Email: yuhanalev@telhai.ac.il. ORCID: 0000-0003-3151-6192.

redundancy under either convention. The symbol CC always refers to a code for the channel currently under discussion; PAL and RC codes are not assumed to be the same subsets of Σn\Sigma^n.

String-duplication systems were developed as models of repeated-sequence generation [2]. The standard tandem-duplication channel inserts an unchanged copy of the selected factor [3]. It is not one of the two error channels studied in this paper; we use it only as a literature benchmark. For a fixed tandem-duplication length and a prescribed number of errors, asymptotically optimal bounds and constructions are known [4, 5]. The length-one specialization is closely related to sticky insertions, for which efficient asymptotically optimal codes are also known [9].

For palindromic and reverse-complement duplication, Lenz, Wachter-Zeh, and Yaakobi established several one-error bounds and constructions. Their conclusion explicitly listed “code size upper bounds for multiple palindromic duplications” as an open direction [6]. Their model fixes the duplication length, permits arbitrary sequential legal starts, and defines correction through balls of at most tt errors. Since the exact and at-most conventions coincide for these insertion-only channels, our endpoint-multiplicity argument gives a general finite-length upper bound in this direction. For fixed tt, it yields rq(C)≥tlog⁡qn−Oq,k,t(1)r_q(C) \geq t \log_q n - O_{q,k,t}(1) for PAL and RC errors, with no parity restriction and no requirement that successive source blocks remain disjoint. It does not provide a finite-tt construction, determine the optimal additive term, or resolve the full finite-error trade-off. Yohananov and Schwartz later determined the unbounded-error capacities for PAL over q≥2q \geq 2 and for RC over even alphabets with a fixed-point-free complement [16]; for every k≥2k \geq 2, both capacities are zero. That result leaves open the finite-error regime, in which codes with sublinear redundancy can exist.

The closest parity-sensitive predecessor is the work of Ben-Tolila and Schwartz on one RC duplication of odd fixed length over an even alphabet with a fixed-point-free complement [1]. They prove a sphere-packing converse and give an odd-kk alphabet lift: a binary code for one arbitrary length-kk insertion burst, which is a stronger error, becomes a qq-ary RC code. Instantiating that lift with the earlier burst code of Schoeny, Wachter-Zeh, Gabrys, and Yaakobi gives first-order-optimal redundancy with an additional Ok(log⁡log⁡n)O_k(\log \log n) term for fixed odd k≥3k \geq 3 [10]. Thus this RC-specific construction covers one error at odd kk; it neither covers multiple errors nor extends its alphabet lift to even kk.

The even-kk gap just described is structural, not the absence of any one-error code. A code correcting one arbitrary fixed-length insertion burst also corrects one PAL or RC duplication, and recent burst codes achieve log⁡qn+Oq,k(1)\log_q n + O_{q,k}(1) redundancy for every fixed kk [13]. They do not, however, identify the relation between the complete PAL and RC channels or provide a two-error comparison. Other nearby regimes include fixed tt, k=1k=1, and even q≥4q \geq 4 with a fixed-point-free complement, where Sun and Ge give RC codes with redundancy (2t−1)log⁡qn+O(log⁡qlog⁡qn)(2t-1)\log_q n + O(\log_q \log_q n) and efficient encoding and decoding [12], and a single RC duplication of unknown length k≥2k \geq 2 for even q≥4q \geq 4 with a fixed-point-free complement [7].

The complement-preserving map used for odd kk is a symbol projection from the original alphabet to a binary alphabet. Sun and Ge show that its pullback can fail already over q=4q=4: it need not correct one RC duplication of length k=2k=2, and it can also fail for two RC duplications of length one [12, Example V.3]. This limitation does not rule out a coordinate-dependent bijection of the full word space. Our even-length map is of the latter kind: under zero-based indexing it complements exactly the odd coordinates, is an involution, and conjugates each reverse-complement step to a palindromic step. Unlike the odd-kk lift, this conjugacy requires only an involution on Σ\Sigma; fixed points are allowed and qq need not be even. Iterating the identity therefore covers arbitrary sequential histories, including those in which a later source block contains symbols inserted by an earlier operation.

To distinguish new results from transfers and comparisons, we prove the finite-error converse, the even-length conjugacy, the maximum two-error PAL sphere formula, and the PAL inverse-parent and greedy-coloring bounds. The even-length RC conclusions follow from the new conjugacy. The one-error consequences use cited PAL or arbitrary-burst codes. The two-burst results discussed later are external stronger-channel benchmarks, not new duplication-specific constructions.

Our contributions are the following.

  1. General finite-error converse. For either channel, every code correcting exactly, or at most, tt duplications satisfies, for fixed q,k,tq, k, t,
∣C∣=Oq,k,t(qnnt),rq(C)≥tlog⁡qn−Oq,k,t(1).|C|=O_{q,k,t}\bigg(\frac{q^{n}}{n^{t}}\bigg),\qquad r_{q}(C)\geq t\log_{q}n-O_{q,k,t}(1).

For fixed q,kq, k and integer-valued t=o(n)t = o(n), the bound becomes tlog⁡q(n/t)−Oq,k(t)t\log_{q}(n/t) - O_{q,k}(t). The ambient channel permits arbitrary overlap and reuse of previously inserted symbols. Inside that channel, the proof counts an injective canonical family obtained by repeatedly copying selected original source occurrences.

  1. Even-length conjugacy. At every even kk, the alternating-complement map is a bijective conjugacy of the complete sequential channels. Applying it to every word maps any tt-error-correcting PAL code to an RC code with the same length and size, and conversely. An encoder or decoder transfers by adding at most two coordinate passes, each linear in the word length.

  2. Maximum exact-two spheres at even duplication length. For every even kk, the maximum exact-two descendant sphere has size

(n−k+1)(n+1)−(max⁡{n−2k+2,0}2).(n-k+1)(n+1)-\binom{\max\{n-2k+2,0\}}{2}.

Words alternating between any two distinct alphabet symbols attain it for PAL, and conjugacy gives the corresponding RC maximizers.

  1. Existential two-error codes. Because the spheres are nonuniform, the maximum-sphere formula is not itself a packing converse. Bounding how many source words can have a fixed two-error descendant and then greedily coloring the confusability graph gives redundancy 4log⁡qn+Oq,k(1)4\log_q n + O_{q,k}(1). For binary codes, the direct converse and this existence result bracket the minimum possible redundancy between 2log⁡2n−Ok(1)2\log_2 n - O_k(1) and 4log⁡2n+Ok(1)4\log_2 n + O_k(1).

For an algorithmic comparison, we combine a two-deletion syndrome ensemble with the exact-two deletion-insertion equivalence to obtain a code for the strictly stronger channel of two arbitrary fixed-length insertion bursts [15, Theorem IV.1] [14, Sec. II, p. 3]. Such a code automatically corrects two PAL or RC duplications. Its redundancy has leading coefficient five, so it does not improve our coefficient-four existence bound. Its additional value is a polynomial-time codeword decoder once suitable syndrome parameters have been fixed. The ensemble theorem proves that such parameters exist but does not give an efficient parameter-selection algorithm or an efficient message encoder. We also identify limitations of natural separated-row and history-syndrome approaches.

Section 2 defines the channel and its coding parameters. Section 3 proves the general packing bound. Section 4 develops the even-length conjugacy and its algorithmic transfer. Sections 5, 6, and 7 treat the exact two-error geometry, the existence bound, and the binary construction gap. The first appendix records the cyclic column factorization used to understand interleaved construction attempts; the second gives detailed obstructions for separated-row and raw history-sum architectures.