<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Undesignable RNA Structure Identification viaRival Structure Generation andStructure Decomposition</title></titleStmt>
			<publicationStmt>
				<publisher>Springer Nature Switzerland</publisher>
				<date>01/01/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10673096</idno>
					<idno type="doi">10.1007/978-1-0716-3989-4_17</idno>
					
					<author>Tianshuo Zhou</author><author>Wei Yu Tang</author><author>David H Mathews</author><author>Liang Huang</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Not Available]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Ribonucleic Acid (RNA) plays essential roles in the core activities within living cells such as transcription and translation <ref type="bibr">[6]</ref>, catalyzing reactions <ref type="bibr">[7]</ref>, and controlling gene expression <ref type="bibr">[18]</ref>. Given a target structure, RNA design aims to find sequences that can fold into that structure. This problem, however, has been proved NPhard <ref type="bibr">[5]</ref> when the simplest model of energy is adopted. The importance of RNA structure and the hardness of RNA design problem have motivated various RNA design methods <ref type="bibr">[3,</ref><ref type="bibr">4,</ref><ref type="bibr">8,</ref><ref type="bibr">10,</ref><ref type="bibr">13,</ref><ref type="bibr">16,</ref><ref type="bibr">17,</ref><ref type="bibr">19,</ref><ref type="bibr">24,</ref><ref type="bibr">25]</ref>.</p><p>While extensive research has been dedicated to designing RNA based on a target structure, there is a notable scarcity of literature investigating the undesignability of RNA design using realistic energy models. Undesignability refers to the inability to find an RNA sequence that can fold into a desired structure using a realistic energy model. Initially, specific cases of undesignability were discovered by the work <ref type="bibr">[1]</ref> attempting to extend RNA-SSD <ref type="bibr">[3]</ref>, which identified two undesignable motifs and proposed alternative motifs that would consistently be favored by the conventional Turner energy models <ref type="bibr">[20]</ref>. Later work <ref type="bibr">[9]</ref> has presented additional motifs that prevent designability, as observed using the maximum base pair model, which is not necessarily realistic. Recent works <ref type="bibr">[23,</ref><ref type="bibr">22]</ref> outlined a method to verify undesignability for short motifs through exhaustive enumeration and folding. To the best of our knowledge, the examination of undesignable structures or motifs based on the nearest neighbor model <ref type="bibr">[14,</ref><ref type="bibr">15,</ref><ref type="bibr">20]</ref> has not been thoroughly explored thus far.</p><p>To bridge the gap between RNA design and undesignability, we propose a systematic and scientifically grounded approach known as "Rival Structure Generation and Structure Decomposition" (RIGENDE). Our methodology operates on the principle of "proof by construction," whereby undesignability is confirmed by the identification of rival structures that consistently outperform the target structure for any possible RNA sequence. RIGENDE can not only serve as a sanity check for empirical RNA design methods, allowing for the avoidance of executing heuristic-based algorithms in situations where no feasible solution exists, but also provide deeper insights into the energy models themselves. This, in turn, contributes to a more profound understanding of thermodynamic models used for the prediction of RNA secondary structures. The main contributions of this paper are:</p><p>1. Theorems. We establish the theoretical grounds for Undesignable RNA Structure Identification, characterizing the importance of rival structure(s) and structure decomposition. 2. Algorithms. Driven by the proposed theorems, we designed and implemented highly e!cient algorithms to verify undesignability automatically. 3. Application. When applying to the puzzles from Eterna100 <ref type="bibr">[2]</ref> benchmark, RIGENDE is able to prove 15 of them are undesignable. Remarkably, the verification process for each puzzle was completed within a matter of seconds or minutes.</p><p>2 RNA Design</p><p>2.1 Secondary Structure, Loop and Free Energy Stack Internal Loop Hairpin Hairpin Bulge Table <ref type="table">1</ref>: Critical positions of loops in Fig. <ref type="figure">1</ref> Loop Type</p><p>Table <ref type="table">2</ref>: Critical positions for each type of loops under Turner model implemented in ViennaRNA Special hairpins <ref type="bibr">[15]</ref> of triloops, tetraloops and hexaloops are not considered here</p><p>An RNA sequence x of length n is specified as a string of base nucleotides x 1 x 2 . . . x n , where x i &#8594; {A, C, G, U} for i = 1, 2, ..., n. A secondary structure P for x is a set of paired indices where each pair (i, j) &#8594; P indicates two distinct bases x i x j &#8594; {CG, GC, AU, UA, GU, UG} and each index from 1 to n can only be paired once. A secondary structure is pseudoknot-free if there are no two pairs (i, j) &#8594; P and (k, l) &#8594; P such that i &lt; k &lt; j &lt; l. In short, a pseudoknot-free secondary structure is a properly nested set of pairings in an RNA sequence. Alternatively, P can be represented as a string y = y 1 y 2 . . . y n , where a pair of indices (i, j) &#8594; P corresponds to y i = "(", y j = ")" and any unpaired index k corresponds to y k = ".". The unpaired indices in y are denoted as unpaired (y) and the set of paired indices in y is denoted as pairs(y), which is equal to P. In nature, some RNA structures contain crossing pairings called pseudoknots. Since the computational model we use does not allow these, we do not consider them. Henceforth we elide pseudoknot-free secondary structure to just secondary structure or structure for brevity.</p><p>The ensemble of an RNA sequence x is the set of all secondary structures that x can possibly fold into, denoted as Y(x). The free energy &#969;G(x, y) is used to characterize the stability of y &#8594; Y(x). The lower the free energy &#969;G(x, y), the more stable the secondary structure y for x. In the nearest neighbor energy model <ref type="bibr">[20]</ref>, a secondary structure is decomposed into a collection of loops, where each loop is usually a region enclosed by some base pair(s). Depending on the number of pairs on the boundary, main types of loops include hairpin loop, internal loop and multiloop, which are bounded by 1, 2 and 3 or more base pairs, respectively. In particular, the external loop is the most outside loop and is bounded by two ends (5 &#8594; and 3 &#8594; ) and other base pair(s). Thus each loop can be identified by a set of pairs. Fig. <ref type="figure">1</ref> showcases an example of secondary structure with various types of loops, where the some of the loops are notated as</p><p>1. Hairpin: H&#8594;(12, 18)&#8593;. 2. Bulge: B&#8594;(10, 23), (11, 19)&#8593;. 3. Stack: S&#8594;(3, 50), (4, 49)&#8593;. 4. Internal Loop: I&#8594;(29, 43), (32, 39)&#8593;. 5. Multiloop: M &#8594;(5, 48), (9, 24), (28, 44)&#8593;. 6. External Loop: E&#8594;(3, 50)&#8593;.</p><p>The function loops(y) is used to denote the set of loops in a structure y. The free energy of a secondary structure y is the sum of the free energy of each loop,</p><p>where each term &#969;G(x, z) is the energy for one specific loop in loops(y). See Supplementary Section B for detailed energy functions for di"erent types of loops in the Turner model implemented in ViennaRNA <ref type="bibr">[13]</ref>.</p><p>The energy of each loop is typically determined by nucleotides on the positions of enclosing pairs and their adjacent mismatch positions, which are named as critical positions in this article. Table <ref type="table">1</ref> lists the critical positions for all the loops in Fig. <ref type="figure">1</ref> and Table <ref type="table">2</ref> shows the indices of critical positions for each type of loops. Additionaly, some special hairpins <ref type="bibr">[15]</ref> of unstable triloops and stable tetraloops and hexaloops in</p><p>Turner model have a separate energy lookup table (See Supplementary Section B.2). When evaluating the energy of a loop, it su!ces to input only the nucleotides on its critical positions, i.e., &#969;G(x, y) = z&#8593;loops(y)</p><p>where critical (z) denotes the critical positions of loop z and x &#8593; critical (z) denotes the nucleotides from x that are "projected" onto critical (z). See Supplementary Section A for the detailed functionality of projection operator. The projection (&#8593;) allows us to focus on the relevant nucleotides for energy evaluation. For instance, critical (H&#8594; <ref type="bibr">(12,</ref><ref type="bibr">18)</ref></p><p>critical (I&#8594;(29, 43), (32, 39)&#8593;) = {29, 30, 31, 32, 39, 40, 42, 43}. (4) For convenience of later discussion, we also interchangeably put paired positions in brackets, i.e., critical (H&#8594;(12, 18)&#8593;) = {(12, 18), 13, 17}, (5) critical (I&#8594;(29, 43), (32, 39)&#8593;) = {(29, 43), (32, 39), 30, 31, 40, 42}. (6) 2.2 MFE and Structure Distance The structure with the minimum free energy is the most stable structure in the ensemble. A structure y &#969; is an MFE structure of x, i.e. MFE(x), if and only if &#8595;y &#8594; Y(x) and y &#8596; = y &#969; , &#969;G(x, y &#969; ) &#8599; &#969;G(x, y).</p><p>RNA design is the inverse problem of RNA folding. Given a target structure y &#969; , RNA design aims to find suitable RNA sequence x such that y &#969; is an MFE structure of x. For convenience, we define X (y) as the set of all RNA sequences whose ensemble contains y, i.e., X (y) = x | y &#8594; Y(x). Here we follow a more strict definition of MFE criterion adopted in some previous studies <ref type="bibr">[5,</ref><ref type="bibr">9,</ref><ref type="bibr">23,</ref><ref type="bibr">21,</ref><ref type="bibr">25]</ref> on the designability of RNA, i.e., x is a correct design if and only if y is the only MFE structure of x, which we call unique MFE (uMFE) criterion to di"erentiate it from the traditional MFE criterion. Formally, uMFE(x) = y &#969; if and only if &#8595;y &#8594; Y(x) and y &#8596; = y &#969; , &#969;G(x, y &#969; ) &lt; &#969;G(x, y).</p><p>From the perspective of optimization, the satisfaction of MFE criterion requires that the structure distance between target structure y &#969; and MFE structure of x is minimized to 0. Therefore, many methods focus on optimizing d(y &#969; , MFE(x)). The function d(y &#8594; , y &#8594;&#8594; ) represents the distance between two secondary structures y &#8594; and y &#8594;&#8594; , which is defined as</p><p>where y &#8594; and y &#8594;&#8594; have the same length</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Undesignability</head><p>Based the uMFE criterion in Eq. 8, the straightforward meaning of undesignability is that such a condition can not be satisfied for any RNA sequence x given a target structure y &#969; . Alternatively, we give the formal definition of undesignability as follows.</p><p>Definition 1. An RNA secondary structure y &#969; is undesignable by uMFE criterion if and only if</p><p>Similarly, we have the definition of undesignability under MFE criterion.</p><p>Definition 2. An RNA secondary structure y &#969; is undesignable by MFE criterion if and only if</p><p>Following previous work <ref type="bibr">[9]</ref> on undesignability, the discussions in this paper are under the setting of the uMFE criterion and Definition 1. However, all discussions can be straightforwardly adapted to Defition 2.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Theorems and Algorithms for Undesignability</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Algorithm 0: Exhaustive Search</head><p>Given a target structure y &#969; of length n, the designed sequence x should have the same length. Therefore, the most straightforward method is to enumerate all RNA sequences of length n, and check whether there exist at least one RNA sequence that can fold into y &#969; . Considering the designed sequence should at least satisfy that nucleotides at the paired position of the target structure should be matchable, the number of bruteforce enumeration is 6 &#8226; n 3 ) makes brute-force search impractical even for very short structures.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Theorem 1 and Algorithm 1: Identify One Rival Structure</head><p>One observation from RNA design is that when the designed RNA sequence x can not fold into the target structure y &#969; , sometimes x tends to fold into another structure y &#8594; . Another observation is that y &#8594; can be very close to y &#969; , i.e., their structure distance d(y &#969; , y &#8594; ), can be very small. For example, when designing the puzzle "Simple Single Bond" (shown as y &#969; in Fig. <ref type="figure">2</ref>) from the benchmark Eterna100, the designed sequence (shown as x in Fig. <ref type="figure">2</ref>) tends to fold into another similar structure (shown as y &#8594; in Fig. <ref type="figure">2</ref>).</p><p>In this instance, we know that at least for x, y &#8594; is a more advantageous choice than y &#969; . We further hypothesize that y &#8594; is superior to y &#969; for any RNA sequence that can possibly fold fold into y &#969; . If the hypothesis holds, then we can assert that y &#969; is undesignable under uMFE criterion. This leads to the first theorem we proposed. Theorem 1. A structure y &#969; is undesignable, if</p><p>It is worth noting that the condition in Theorem 1 is a special case of the condition in Definition 1, despite both employing the same notations but in di"erent order. The correctness of Theorem 1 can be proven by the Definition 1. Whether the undesignability can be approached by Theorem 1 can be formulated as an optimization or feasibility problem.</p><p>If Theorem 1 can be applied, the problem of undesignability boils down to showing that y &#8594; is superior to y &#969; for any RNA sequence, we can rewrite the inequality in Eq. 12 as</p><p>Combining Eq. 2, Eq. 14 can be written as the di"erence of two sets of energy units, Table 3: Example of design constraint I 11 12 13 14 19 20 21 22 x1</p><p>The loops in loops(y &#8594; ) and loops(y &#969; ) are compared via the Venn diagram in Fig. <ref type="figure">3</ref>. As we can see, the loops in y &#8594; and y &#969; overlap a lot. As a result, we can simplify Eq. 15 by canceling those intersected loops,</p><p>By Eq. 16, the energy di"erence does not necessarily involve each nucleotide of x. It is equivalent to consider only the nucleotides participating the calculation of energy di"erence in Equation <ref type="formula">16</ref>, which can be written as</p><p>where</p><p>and</p><p>We name #(y &#8594; , y &#969; ) as di!erential positions as it is a set of all the positions whose nucleotides are involved in calculating the free energy di"erence between y &#8594; and y &#969; . Accordingly, each nucleotide of x corresponds to one position in #(y &#8594; , y &#969; ), and the number of nucleotides in x is the same as the size of #(y &#8594; , y &#969; ). Eq. 17 implies that enumerating all possible (x is equivalent to enumerating all possible x. Suppose the number of paired positions and unpaired positions in #(y &#8594; , y &#969; ) are p and q, the total number of enumeration would be p 6  &#8658; q 4 . Moreover, the time cost of evaluating Eq. 19 is almost O(1) as loops(y &#8594; ) and loops(y &#969; ) only need to be computed once. As a result, it would be not hard to determine whether y &#8594; satisfies Theorem 1 when</p><p>, y &#969; )| is small, which motivates our first algorithm to e!ciently verify undesignability, as described in Algorithm 1. In the case of example in Fig. <ref type="figure">2</ref>, <ref type="figure">#(y &#8594;</ref> , y &#969; ) = {(7, 39), (17, 29), 6, 8, 16, 30, 38, 40}, total number of enumerations of x in Eq. 17 is 147456 which can be finished within 1 second on a single computer in our experiments. To give a specific complexity, X !(y &#8594; ,y &#969; ) is used to denote the all possible nucleotide compositions at the positions in D(y &#8594; , y &#969; ), we have</p><p>To prevent excessive runtime, our implementation selects only y &#8594; that is su!ciently close to y &#969; as input to Algorithm 1, specifically when X &#969;(y &#8594; ,y ) &gt; M, where M is a large integer.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Algorithm 1: Identify One Rival Structure</head><p>Input : y &#969; , y &#8594; ; // y &#8594; = MFE(x), x comes from RNA Design Output : (I, X); // X will store all the x that violates Theorem 1</p><p>In fact, if y &#8594; is always superior to y &#969; , any sequence x &#8594; X (y &#969; ) must be able to fold into y &#8594; , which leads to the following corollary.</p><p>Corollary 1. If y &#8594; satisfies the condition in Theorem 1, then we have pairs(y &#8594; ) &#8657; pairs(y &#969; ).</p><p>Proof. Suppose there exists a pair (i, j) such that (i, j) &#8594; pairs(y &#8594; ) but (i, j) / &#8594; pairs(y &#969; ). For any sequence x where x i x j is not among the allowed base pairs, i.e. x i x j / &#8594; {CG, GC, AU, UA, GU, UG}, x cannot fold into y &#8594; because &#969;G(x, y &#8594; ) = &#8659;. Therefore, if x prefers y &#8594; to y &#969; , then y &#8594; cannot have any pair (i, j) not in pairs(y &#969; ). Since y &#8594; &#8596; = y &#969; , it follows that pairs(y &#8594; ) &#8657; pairs(y &#969; ).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Theorem 2 and Algorithm 2: Identify Multiple Rival Structures</head><p>While Algorithm 1 is e"ective in verifying the potential rival structure y &#8594; , it is important to acknowledge that an arbitrary structure y &#8594; does not necessarily always have a lower free energy than the target structure y &#969; . Generally, the entire search space consisting of all possible RNA sequences can be divided into two subsets depending on whether each sequence x prefers y &#969; to y &#8594; .</p><p>X (y ? &#8719; y 0 1 ) X (y ? &#8719; y 0 2 ) X (y ? ) Fig. <ref type="figure">4</ref>: Undesignability proven by 2 rival structures, X (y &#969; &#8660; y &#8594;1 ) X (y &#969; &#8660; y &#8594;2 ) = X (y &#969; ) Proposition 1. Given a target structure y &#969; and another structure y &#8594; &#8596; = y &#969; , the RNA design space X (y &#969; ) can be divided into the two sets below.</p><p>Following Proposition 1, the feasibility problem in Eq. 13 is equivalent to</p><p>In cases when no feasible y &#8594; satisfiying Eq. 21 can be found, we consider extending Theorem 1 and feasibility problem 21 to multiple rival structures identification.</p><p>Theorem 2 can also be proven by the Definition 1. The corresponding optimization formulation is find Y = {y &#8594;1 , y &#8594;2 , .., y &#8594;k } subject to</p><p>Fig. <ref type="figure">4</ref> shows a venn diagram when we can prove undesignability by finding a set of 2 rivial structures</p><p>for any sequence x &#8594; X (y &#969; ), either y &#8594;1 or y &#8594;2 would have lower free energy than y &#969; .</p><p>Given input y &#969; and y &#8594; , we call the output of Algorithm 1 a design constraint, which characterizes the set X (y &#969; &lt; y &#8594; ). For example, Fig. <ref type="figure">5</ref> contains a target structure y &#969; from Eterna puzzle "Zigzag Semicircle", along with a designed sequence x and y &#8594; = MFE(x). Upon applying Algorithm 1, the output is a tuple consisting of I = #(y &#8594; , y &#969; ) = { <ref type="bibr">(11,</ref><ref type="bibr">22)</ref>, <ref type="bibr">(12,</ref><ref type="bibr">20)</ref>, 13, (14, 19), 21} and a set X = {x 1 , x2 , .., x90 }. Table <ref type="table">3</ref> displays 5 nucleotides compositions in X. The functionality of Algorithm 1 ensures that any sequence x &#8594; X (y &#969; &lt; y &#8594; ) must satisfy the design constraint (I, X) and any sequence satisfying the design constraint (I, X) is in</p><p>As a result, we can use (I, X) to represent the set X (y &#969; &lt; y &#8594; ) and conduct set operations such as intersection and union. A high level algorithm for solving Eq. 22 is shown in Algorithm 2. Starting from a seed x and y &#8594; = MFE(x), Algrithm 2 repeatedly calls Algorithm 1 to get new potential y &#8594; and corresponding design constraint </p><p>Algorithm 2: Identify Multiple Rival Structures Input : y &#969; , x ; // x come from (unsuccessful) RNA design Output : undesignable/designable/unknown 1 X &#8593; X(y &#969; ); // Design (search) space for y &#969; 2 Y &#8593; &#8843;; // Contains all potential rival structures y &#8594; 3 Q &#8593; {x}; // A queue contains RNA sequences for folding 4 while Q is not empty do 5 x &#8593; pop(Q); 6 if uMFE(x) = y &#969; then 7 return designable; // Identify designable case 8 y &#8594; = MFE(x); 9 if y &#8594; &#8595; Y then break; // Stop if no new y &#8594; 10 if | X !(y &#8594; ,y &#969; ) | &gt; M then // Continue if too many enumeration in Algorithm 1 11 continue 12 X (y &#969; &lt; y &#8594; ) &#8593; Algorithm 1(y &#969; , y &#8594; ); 13 X &#8593; X &#8600; X(y &#969; &lt; y &#8594; ) ; // Set intersection 14 Y &#8593; Y &#8599; {y &#8594; }; 15 if X = &#8843; then return undesignable; 16 if |Y | &gt; N then break; // Stop if Y is too large 17 if Q is empty then 18 for i = 1 to K do // Sample at most K sequences 19 Sample xnew &#8595; X ; 20 Q &#8593; push(Q, xnew); 21 return unknown X (y &#969;</p><p>&lt; y &#8594; ). Each new design constraint is intersected (line 13) with all the other design constraints previously found. An example of design constraint intersection is show in Table <ref type="table">4</ref>. Refer to Supplementary Section A for specific steps of constraint intersection. The algorithm stops if no new rival structure candidate can be found or there are too many rival structures in Y . Algorithm 2 has 3 parameters: (1) M is the maximum enumeration allowed for Algorithm 1; (2) N is maximum number of rival structures allowed in Y ; (3) K is the number of sampled sequences from design space X . At most N set intersections are executed, and at most NK sequences are sampled and folded. Assuming hash sets are used, the time complexity of set intersection is O(M ). Therefore, the overall complexity of Algorithm 2 is O(NM + NKn 3 ), where n is the length of the input target structure.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">Theorem 3 and Algorithm 3: Structure Decomposition</head><p>While Algorithm 1 and 2 are e!cient when the input #(y &#969; , MFE(x)) is small, it is not practical otherwise. For instance, Fig. <ref type="figure">6</ref> showcases the puzzle "multilooping fun" from Eterna100 benchmark. The di"erence between y &#969; and y &#8594; is so huge that is not suitable as input for Algorithm 1 and 2. It is worth noting that a base pair (i, j) &#8594; y &#969; divides the free energy &#969;G(x, y &#969; ) into two uncoupled parts: one within and one outside</p><p>When it is impractical to apply Algorithm 1 and 2 to the entire structure y &#969; , it might be beneficial to search for rival structures for a pair-bounded substructure y &#969; i&#8596;j . For example, if another pair-bounded y &#8594;&#8594; i&#8596;j is always more advantageous, then replacing y &#969; i&#8596;j with y &#8594;&#8594; i&#8596;j in y &#969; will yield another structure y &#8594;&#8594; that qualifies as a rival structure for y &#969; . However, the crucial point for such a decomposition and combination is that both y &#969; i&#8596;j and y &#8594;&#8594; i&#8596;j must be enclosed by a pair, ensuring that the free energy is the sum of the energy of loops within the pair and outside the pair (i, j). Therefore, we propose to decompose a target structure by base pairs such that the undesignability of a pair-bounded substructure can assure the undesignability of the original target structure. Definition 3. A structure y = y 1 y 2 . . . y n is context-constrained if (1, n) &#8594; pairs(y), i.e., its first and last positions are paired.</p><p>For a sequence x = x 1 x 2 . . . </p><p>A context-constrained structure y &#969; is the context-constrained uMFE structure of x, i.e., uMFE CC (x), if and only if &#8595;y &#8594; Y CC (x) and y &#8596; = y &#969; , then &#969;G(x, y &#969; ) &lt; &#969;G(x, y).</p><p>Accordingly, we can define context-constrained undesignability by uMFE criterion.</p><p>Definition 4. A context-constrained structure y &#969; is context-constrained-undesignable if and only if &#8595;x &#8594; X (y &#969; ), &#8656;y &#8594; &#8596; = y &#969; and y &#8594; is context-constrained, &#969;G(x, y &#8594; ) &#8599; &#969;G(x, y &#969; ).</p><p>The above definitions allow us to succinctly express the idea of proving undesignability via structure decomposition in Theorem 3. Theorem 3. A structure y &#969; is undesignable if there exists a pair (i, j) &#8594; pairs(y &#969; ) such that the structure y &#969; i&#8596;j is context-constrained undesignable, where y &#969; i&#8596;j = y &#969; i y &#969; i+1 . . . y &#969; j . Proof. By Def. 4, &#8595;x i&#8596;j &#8594; X (y &#969; i&#8596;j ), &#8656;y &#8594; i&#8596;j &#8596; = y &#969; i&#8596;j and y &#8594; i&#8596;j is context-constrained, &#969;G(x i&#8596;j , y &#8594; i&#8596;j ) &#8599; &#969;G(x i&#8596;j , y &#969; i&#8596;j ). We can construct a structure y &#8594;&#8594; &#8596; = y &#969; by substituting y &#969; i&#8596;j within y &#969; with y &#8594; i&#8596;j such that loops(y &#8594;&#8594; ) = loops(y &#969; ) \ loops(y &#969; i&#8596;j ) &#8601; loops(y &#8594; i&#8596;j ). As a result, &#8595;x &#8594; X (y &#969; ),</p><p>The algorithm for Theorem 3 is presented in Algorithm 3. Each substructure of the target structure bounded by a pair (i, j) can be regarded as a context-constrained structure, which is input to Algorithm 2. For e!ciency we excluded those pairs enclosing a hairpin loop or a stack loop. The target structure is then proven undesignable if one decomposed substructure is verified to be context-constrained undesignable. Since Algorithm 2 is called at most n/2 times, the overall complexity of Algorithm 3 is O(NMn + NKn 4 ).</p><p>Algorithm 3: Identify Rival Structures with Structure Decomposition Input : y &#969; , x ; // x comes from RNA Design Output : undesignable/unknown 1 foreach (i, j) &#8595; pairs(y &#969; ) do 2 if H&#8594;(i, j)&#8593; / &#8595; loops(y &#969; ) and S&#8594;(i, j), (i + 1, j &#8594; 1)&#8593; / &#8595; loops(y &#969; ) then // Hairpin&amp;stack excluded 3 if y &#969; i&#8593;j &#8771; = uMFECC(xi&#8593;j) then // Constrained folding 4 if Algorithm2(y &#969; i&#8593;j , xi&#8593;j) = undesignable then // Use MFECC&amp;uMFECC in Alg.2 5 return undesignable 6 return unknown;</p><p>5 Experiments on Eterna100 Dataset</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1">Setting</head><p>We applied the three algorithms described in Section 4 to structures from the Eterna100 dataset <ref type="bibr">[2]</ref>, a well-known benchmark for RNA inverse folding. Eterna100 contains a list of 100 secondary structure design challenges (also called puzzles) with a wide range of di!culties.</p><p>A previous study <ref type="bibr">[12]</ref> identified 19 puzzles were never successfully designed with the folding parameters of ViennaRNA 2.5.1. We took a step further and tried to prove that it is impossible to solve some of Eterna100 puzzles under the uMFE criterion.</p><p>For each target structure y &#969; in Eterna100, we first attempted RNA design using two state-of-the-art methods NEMO <ref type="bibr">[16]</ref> and SAMFEO <ref type="bibr">[25]</ref>. We chose the two because our previous studies show that they were able to solve the most puzzles <ref type="bibr">[25]</ref>. We adopted the same setting as the RNA design experiments in SAMFEO <ref type="bibr">[25]</ref>. Eventually, we obtained 22 structures that neither of the two programs designed successfully under the uMFE criterion with ViennaRNA 2.5.1 parameters. For each unsolved puzzle y &#969; , we selected the output x such that its MFE structure y &#8594; has the minimal structure distance d(y &#969; , y &#8594; ), then we used y &#969; , y &#8594; , and x as the input to our algorithms.</p><p>The three algorithms are implemented in C++ and running on Linux, with 3.40 GHz Intel Xeon E3-1231 CPU and 32G memory. Our implementation also utilized OpenMP to achieve parallelization and the program was ran with 8 CPUs. In Algorithm 2, we used LinearFold <ref type="bibr">[11]</ref> (beam size set as 0, which means exact search without beam pruning) with the energy parameter from ViennaRNA 2.5.1 to find MFE(x) and uMFE(x). LinearFold also provides the functionality for constraint folding, which is used in Algorithm 3 to obtain MFE CC (x i&#8596;j ) and uMFE CC (x i&#8596;j ). Notice our algorithms do not rely on any specific folding package, our released implementation also support using ViennaRAN package for folding and constrained folding which will yield the same output. To prevent the algorithms from running indefinitely, we set the parameters in Algorithm 2 as follows: M = 10 10 , N = 10 5 , K = 500.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">Results</head><p>The results of applying our algorithms are presented in Table <ref type="table">5</ref>. In total, we identified that 15 out of those the 22 puzzles are undesignable using ViennaRNA 2.5.1 parameters. The algorithms identified the rival structure(s) for 14 out of those 15 undesignable puzzles automatically. For the Puzzle 87, the algorithms took the puzzle and a candidate rival (sub)structure we manually selected then proved the puzzle is undesignable according to Theorem 3. The implementation of our algorithm also enable turning o" special hairpins in energy model. As a result, in addition to the aforementioned 15 undesignable puzzles, our algorithms can automatically prove the Puzzle 50 is undesignable when special hairpins are not considered.</p><p>An additional noteworthy finding is that Algorithm 2 can also identify a uMFE (or MFE) solution (line 7) in the process of searching rival structure candidates by folding new sequences. Remarkably, the puzzle "Short String 4" (in the 22 unsolved puzzles) turned out to be designable, i.e., Algorithm 2 successfully generated an RNA sequence that adopts the target structure as the unique MFE structure. See Supplementary Section C for the structure of "Short String 4" along with the designed sequence. Finally, the designability of remaining 5 puzzles remains uncertain, whose puzzles names are Taraxacum officinale, Mat-Lot2-2B, Gladius, Hoglafractal, and Teslagon.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3">Insights</head><p>For those puzzles proven undesignable by our three algorithms, we further compared the identified rival structures<ref type="foot">foot_1</ref> with original target structures. Main insights are summarized as follows.</p><p>1. The undesignability identified by Algorithm 1 is usually caused by some lonely pair or double pairs in the target structure, which is consistent to the observation of previous study <ref type="bibr">[2]</ref> on the di!culty of puzzles. For example, the y &#8594; in Fig. <ref type="figure">2</ref> has one less pair compared to y &#969; . However, our approach can provide loop-level reasoning and quantitative explanation, which goes beyond heuristics. 2. However, contrary to the principle <ref type="bibr">[2]</ref> that symmetry is a feature of di!culty for RNA design, we found that the undesignability is usually caused by some independent local region in a target structures, as is highlighted in the structures plot in Table <ref type="table">5</ref>. 3. If an undesignable structure can be proven by identifying multiple rival structures, the number of the rivals tends to be small and those rival structures can be very similar to each other. There are 4 cases with multiple rival structures in Table <ref type="table">5</ref>, and their number of rivial structures are 8, 9, 9, 2 respectively. 4. The constrained-context undesignable structures identified by Algorithm 3 often contains some hairpin enclosed by a single pair or double pairs as the cases highlighted in Table <ref type="table">5</ref>. However, it is hard to locate those regions by attempting RNA design and find a y &#8594; similar to target structure y &#969; , which demonstrates the cruciality of structure decomposition.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Conclusions and Future Work</head><p>Following the core idea of proof by construction, we propose three e!cient and explainable algorithms (RIGENDE) for proving undesignability in the context of RNA design with the nearest neighbor model. Theoretically, the theorems we introduced can shed some light on why and how some structures are not designable. The establishment of those concepts such as rival structure, designability constraint, and context-constrained undesignability can be regarded as a milestone for automatically verifying undesignability. Applied to Eterna100 benchmark, RIGENDE can prove 15 of them are actually undesignable using popular Turner model implemented in ViennaRNA 2.5.1 and LinearFold. Without doubt, the found rival structures can help humans understand more about RNA folding and RNA design. The main drawbacks of RIGENDE include:</p><p>1. The rival structure candidates are crucial for the algorithms to work, and the selection of candidates is dependent on the results of RNA design. 2. The structure decomposition in Algorithm 3 only considers a pair-bounded substructure, which may not be able to cover other sophisticated cases.</p><p>In the future, we would address those drawbacks. We will not only prove more cases of undesignability on structure level but also examine the undesignability on the level of structure motifs.</p><p>1. Design better ways to find rival structure candidates, such as devising approaches that eliminate the necessity of relying on external RNA design methods. 2. Decompose structures according to the topology of loops instead of splitting the entire structure into two via a base pair. 3. Experiment with more puzzles and RNA design settings to search for more general regularities of designability and undesignability.  Table SI 1: List of special hairpins in the Turner energy model. x "G special hairpin (x, (...)) CAACG 6.8 GUUAC 6.9 x "G special hairpin (x, (....)) CAACGG 5.5 CCAAGG 3.3 CCACGG 3.7 CCCAGG 3.4 CCGAGG 3.5 CCGCGG 3.6 CCUAGG 3.7 CCUCGG 2.5 CUAAGG 3.6 CUACGG 2.8 CUCAGG 3.7 CUCCGG 2.7 CUGCGG 2.8 CUUAGG 3.5 CUUCGG 3.7 x "G special hairpin (x, (......)) ACAGUACU 2.8 ACAGUGCU 2.9 ACAGUGAU 3.6 ACAGUUCU 1.8 B.4 Bulge Set length = k &#8600; i + j &#8600; l &#8600; 2. </p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>&#969; In Proceedings of RECOMB 2024, Lecture Notes in Computer Science (LNCS 14758), pp. 270-287, Springer.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_1"><p>We released those rival structures at https://github.com/shanry/RNA-Undesign/tree/main/data/results/rigend.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="6" xml:id="foot_2"><p>This puzzle is proven undesignable if we ignore energies of special hairpins.</p></note>
		</body>
		</text>
</TEI>
