1 Introduction
Selfassembly is the process where smaller components—usually molecules—autonomously assemble and form a larger complex structure. Selfassembly plays an important role in constructing biological structures and high polymers [16]. One wellknown mathematical model of the selfassembly phenomenon is the abstract tile assembly model (aTAM) [17]. Recently, Geary et al. [2] proposed a new computation model called the oritatami system (OS) that simulates the cotranscriptional selfassembly based on the experimental RNA transcription called RNA origami [3]. In general, the OS assumes that a sequence of molecules is transcribed linearly, and predicts the geometric shape of the autonomous folding of the sequence based on the reaction rate of the folding. The OS consists of a sequence of beads (which is the transcript) and a set of rules for possible intermolecular reactions between beads. For each bead in the sequence, the system takes a lookahead of a few upcoming beads and determines the best location of the bead that maximizes the number of possible interactions from the lookahead. The lookahead represents the reaction rate of the cotranscriptional folding and the number of interactions represents the energy level (See Figure 2 for the analogy between RNA origami and oritatami system).
The OS is a computation model based on geometric aspects, and, thus, it is important to design and analyze the OS in both computational and geometric perspectives. From the computational point of view, the OS is proved to be Turing complete using a cyclic tag system simulator [2]. Designs for other computational problems such as binary counting [1] and Boolean formula simulation [4] are also established. Researchers also proved a few decision properties and proposed various optimization methods for the OS design [6, 5, 11]. From the geometric point of view, Rogers and Seki [12] proved the decidability of geometric structure constructions based on the delay. Recently, Masuda et al. [10] proposed how to construct a finite Heighway dragon using a cyclic OS, which has a periodic transcript.
A fractal is an infinite pattern that is selfsimilar across different scales, and is an important structure in nature. The construction of fractals is one of the most important topics in both geometric computation models [7, 8, 9] and experiments [14, 15]. For constructing fractals by the OS, we need a few assumptions.

Since the OS transcribes an RNA single strand, it is natural to consider fractal curves, which are infinite sequences of segments (and points).

We only consider a deterministic OS (that only folds into a unique conformation). Note that it is trivial to make a nondeterministic OS that may fold into several different structures including a target structure.

We consider an infinite fractal construction. Masuda et al. [10] proposed how to construct a finite fractal by implementing a counter and an automaton periodically inside the transcript. This approach can be used to construct an arbitrary long fractal but not an infinite one, since the counter is finite.
Although fractals have selfsimilarity, they do not have repeated structures with any fixed period. In aTAM, it is known that we can assemble a certain type of fractals infinitely even with limited tile types [9]. In OS, we claim that under some reasonable assumptions, it is impossible to fold some infinite fractals with a cyclic OS. We first define the folding of the curve by an OS as mapping segments and points of the curve to sets of points on the OS triangular lattice.
Before presenting our main contributions on the impossibility of OS folding, we start with two wellknown fractal curves (Koch and Minkowski curves) with respect to the OS folding and provide a brief idea on the impossibility results. We, in particular, prove that regardless of the delay and the period, it is impossible to fold Koch and Minkowski curves in Sections 3 and 4, respectively. Then we generalize this impossibility to infinite aperiodic curves and establish sufficient conditions together with main contributions in Section 5.
We then examine two wellknown fractal curves (Koch and Minkowski curves), and prove that regardless of the delay and the period, it is impossible to fold such curves under our assumptions. We expand the result to infinite aperiodic curves and establish sufficient conditions to prove impossibility of the folding.
2 Preliminaries
Let be a string over for some integer and bead types
.
The length of is .
For two indices with , we let be the substring ; we use to denote .
We use to denote the concatenation of copies of .
Oritatami systems operate on the triangular lattice with the vertex set and the edge set . A configuration is a triple of a directed path in , , and a set of interactions. This is to be interpreted as the sequence being folded while its th bead is placed on the th point along the path and there is an interaction between the th and th beads if and only if . Configurations and are congruent provided , , and can be transformed into by a combination of a translation, a reflection, and rotations by degrees. The set of all configurations congruent to a configuration is called the conformation of the configuration and denoted by . We call a primary structure of .
A ruleset is a symmetric relation specifying between which bead types can form an interaction. An interaction is valid with respect to , or simply valid, if . We say that a conformation is valid if all of its interactions are valid. For an integer , is of arity if the maximum number of interactions per bead is , that is, if for any , and this inequality holds as an equation for some . By , we denote the set of all conformations of arity at most .
Oritatami systems grow conformations by elongating them under their own ruleset. For a finite conformation , we say that a finite conformation is an elongation of by a bead under a ruleset , written as , if there exists a configuration of such that includes a configuration , where is a point not in and . This operation is recursively extended to the elongation by a finite sequence of beads as follows: For any conformation , ; and for a finite sequence of beads and a bead , a conformation is elongated to a conformation by , written as , if there is a conformation that satisfies and .
An oritatami system (OS) is a tuple , where is a ruleset, is a delay, and is an valid initial seed conformation of arity at most , upon which its transcript is to be folded by stabilizing beads of one at a time and minimize energy collaboratively with the succeeding nascent beads. The energy of a conformation is ; namely, the more interactions a conformation has, the more stable it becomes. The set of conformations foldable by this system is recursively defined as follows: The seed is in ; and provided that an elongation of by the prefix be foldable (i.e., ), its further elongation by the next bead is foldable if
(1) 
Once we have , we say that the bead and its interactions are stabilized according to . A conformation foldable by is terminal if none of its elongations is foldable by . An OS is deterministic if, for all , there exists at most one that satisfies (1). Namely, a deterministic OS folds into a unique terminal conformation. An OS is cyclic if its transcript is repetition of a string . We say that the OS has a period .
Figure 3 illustrates an example of an OS with delay , arity , ruleset and transcript ; in (a), the system tries to stabilize the first bead of the transcript, and the elongation gives interactions, while the elongation gives interactions, which is the most stable one. Thus, the first bead is stabilized according to the location in . In (b) and (c), is the most stable elongation and ’s are stabilized according to . As a result, the terminal conformation is given as in (d). Note that the system grows the terminal conformation straight without external interactions, and we can use to fold an infinite periodic conformation. This example is called a glider [1].
The bead stabilization in OS is a local optimization of finding the best position of the bead using the next beads. Thus, the stabilization of a bead in a delay OS is not affected by any bead whose distance from is greater than . On the triangular lattice, we can draw a hexagonal border of radius from to identify the set of points that may affect the stabilization of . While stabilizing a bead , we define the event horizon of to be a partial conformation within this hexagon. Namely, the event horizon is the context used to stabilize . Thus, if two beads and have the same event horizon, then and are stabilized congruently (See Figure 4). We define an event horizon for a partial transcript to be the union of event horizons of beads in while stabilizing .
An Lsystem is a parallel rewriting system and its recursive nature makes the system easy to describe fractallike structures [13]. An Lsystem is defined as , where

is the set of variables that can be replaced by production rules,

is the set of constants that do not get replaced,

is the axiom, the initial string, and

is the set of production rules defining rewriting of variables.
The system starts with , and as many rules as possible are applied simultaneously for each iteration. With graphical semantics on variables and constants, the Lsystem is often used to represent selfsimilar fractals. In this paper, we assume that curves are represented by strings, whose characters represent turns and unit segments. Then, an infinite curve is periodic if there exists a periodic string representation with a fixed finite period, and is aperiodic otherwise. Note that all fractal infinite curves are aperiodic.
3 Impossibility of the Infinite Koch Curve
We start with one example of infinite fractal curves—the Koch curve. The Koch curve can be constructed by starting with a segment, then recursively altering each line segment as follows:

Divide the line segment into three segments of equal length.

Draw an equilateral triangle that has the middle segment from step 1 as its base and points outward.

Remove the line segment that is the base of the triangle from step 2.
Using the Lsystem, the Koch curve can be encoded as follows:

Variable:

Constants:

Axiom:

Production Rule: ,
where denotes a segment, denotes right turn and denotes left turn. Figure 5 illustrates the Koch curve after three iterations.
For this specific curve, we first make a few assumptions about the curve representation by a cyclic OS and the OS itself. We prove that it is impossible to draw an infinite Koch curve using a cyclic OS under our assumptions.
Let a shape be a set of points on the triangular lattice , whose grid graph is connected. A curve can be represented as a sequence of alternating points and segments. We say that a sequence of shapes represents a curve if there exists onetoone correspondence between shapes and alternating points and segments, and a point and a segment should be adjacent on the curve if and only if two shapes corresponding to them are adjacent. We formally define the drawing of the curve by a deterministic OS as follows:
Definition 1.
Given a (possibly infinite) curve on the plane and the (possibly infinite) sequence of shapes that represents the curve, we say that a deterministic OS draws the curve if the following condition holds: There exists a (possibly infinite) sequence of indices that corresponds to the sequence of shapes, where, for all ’s, there exists a partial configuration for that folds within . We say that the OS covers with the partial transcript .
Figure 6 shows two examples of curve drawing by an OS. Here, the target curve is represented by three shapes . By Definition 1, an OS draws the curve in Figure 6 (a) but does not in Figure 6 (b) since the partial configuration for is not within . Note that shapes limit paths of conformations, and it is not necessary to fill all points in the shape with the conformation.
From the design perspective, it is crucial to assume this locality of partial configuration. OS designs are usually modular [1, 2, 4, 10]—a partial transcript is folded locally under a controlled context, and we connect these partial transcripts to perform complex computations. Especially, for an infinite transcript, it becomes almost impossible to remove unintended interferences without this locality. Previous cyclic OSs such as a binary counter [1] or a cyclic tag system [2] follow this assumption. Remark that the drawing in Definition 1 is general in the sense that it does not restrict the OS to be infinite or cyclic, and the curve to be infinite.
We assume the followings to draw the Koch curve:

The Koch curve consists of an infinite sequence of alternating points and segments on the triangular lattice , which is with vertical rows with unit triangles pointing left and right. We use a hexagon of side length to represent a point on the curve. For a segment on the curve, we use a shape of points ( rows in total) and points ( rows in total) in alternative positions which are orthogonal to the direction of the segment (See Figure 7 (a)). The OS starts with covering the first , and denote the th () by ().

We use constant numbers of beads for segments or points— beads in , and beads in . This assumption is reasonable in the modular design of the OS.

The period of the OS is .
Figure 7 shows an example of shapes that can be used to draw the Koch curve, and a part of an OS that draws the curve, following the above assumptions. In Figure 7 (a), ’s are drawn in red, and ’s are drawn in blue, where and . In Figure 7 (b), from assumption (2), the number of beads for segments or points are constant, even if there are different paths in different ’s or ’s. For example, paths in use beads and paths in use beads.
Under these assumptions, we claim the following theorem.
Theorem 1.
There is no deterministic OS that can draw the Koch curve.
Proof.
Assume that there exists a deterministic cyclic OS with delay that draws the Koch curve. First, we assume that , which is one less than the distance between two ’s on —apart by two unit distances on . If the delay has an upper bound, we denote the event horizon for the maximum delay as the “maximum” event horizon, and omit the term maximum if the context is clear. For convenience, we use to denote the shape resulted from connecting and .
We consider bead stabilization in . We have an event horizon that is used to fold the conformation in . Due to the delay upper bound, all ’s that overlap with are at most three unit distances apart from , and all ’s that overlap with are at most two unit distances apart from (See Figure 8).
Since the Koch curve does not touch itself, if a point in is adjacent to two segments of the curve, there is no segment other than two that are adjacent to the point. Moreover, due to the selfsimilarity of the curve, the same statement holds for any scale of the power of —for a point in , if there exist two points and on the curve that are unit distances straight away from , then there is no segment within unit distances from , other than segments on the curve from and (See Figure 9).
We have nine different cases for the beads within ’s and ’s that overlap with as shown in Figure 10. In each case, we first transcribe a sequence of blue shapes (if they exist), and then a sequence of red shapes. Shapes and are distinguished by points within the shape. The thick hexagons represent ’s of distance . We can observe that in all cases, all ’s and ’s are at most three unit distances apart from one of ’s, and they are empty except the red and blue shapes. Moreover, in all cases, all beads within are from to , a consecutive sequence of shapes before . In other words, a partial conformation in is dependent to beads in the sequence of shapes from to .
Since the period of the OS is , we have exactly the same partial transcripts that fold within all ’s, and, therefore, having the same path yields the same partial conformation. The upper bound for the number of possible paths within () is (). We have beads from to that determine the partial conformation in . Thus, we have and such that , and and have exactly the same conformation. Moreover, since beads from to are consecutively transcribed, and result in a periodic sequence of segment turns of length (See Figure 11). Since the Koch curve is aperiodic, we know that the first assumption is wrong.
Now we assume that , which is the distance between two ’s apart by unit distances in the lattice for the Koch curve. Suppose that we want to stabilize beads in . The event horizon for beads in covers only ’s and ’s which are within unit distances from in the lattice for the Koch curve. Similar to the previous case, we can find at most two ’s of distance , and all ’s and ’s are empty except those who represent the curve from ’s. Due to the length constraint, there can be at most ’s and ’s that overlap with the event horizon. Thus, among to , there should exist and that have exactly the same event horizon for points within, and we know that the second assumption is also wrong. Similarly, we can expand the proof for arbitrarily large . Therefore, we know that for any given , there is no delay deterministic OS that can draw the Koch curve.
Note that we can remove the third assumption about the OS period. If a period is not , beads in and are exactly the same. Thus, for instance, if we assume that , among to , there should exist and that have exactly the same event horizon and produce the same conformation. ∎
4 Impossibility of the Infinite Minkowski Curve
We study another example of infinite fractal curves—the Minkowski curve. The Minkowski curve starts from a segment, then recursively alternates each line segment as follows:

Divide the line segment into four segments (we call these segment 1 to 4 from the start) of equal length.

Draw a square with segment 2 as a side to the left of the original segment, and the other square with segment 3 as a side to the right.

Remove segments 2 and 3.
Using the Lsystem, the Minkowski curve can be encoded as follows:

Variable:

Constants:

Axiom:

Production Rule: ,
where denotes a segment, denotes right turn and denotes left turn. Figure 12 illustrates the Minkowski curve after three iterations.
For the Minkowski curve case, since the OS works on the triangular lattice, we assume that the Minkowski curve is slanted to fit into the triangular lattice—a square in the square lattice is mapped into a rhombus in the triangular lattice. We call the lattice the rhombus lattice. We assume the followings for drawing the Minkowski curve:

The (tilted) Minkowski curve consists of an infinite sequence of alternating points and segments on the rhombus lattice . We use a parallelogram of width and length to represent a segment on the curve, and a rhombus of side length to represents a point on the curve (See Figure 13). The OS starts with covering the first , and denote the th () by ().
For convenience, we set up a coordinate for the points of the rhombus lattice based on an arbitrary origin, where the unit vector heads right and the unit vector heads upper right. Based on the coordinate, we use to represent an that starts from the point and the direction is given by the vector . We also use to represent an at the point (See Figure 13).

We use constant numbers of beads for a connecting line and a point— beads for , and beads for .

The OS period is .
Under these assumptions, we claim the following theorem.
Theorem 2.
There is no deterministic OS that can draw the tilted Minkowski curve.
Proof.
Similar to the proof for Theorem 1, we fist assume that . Suppose we want to transcribe beads in and , which represent the segment going up from the point . We have three cases for the previous segment:

, where the previous segment came from the left.

, where the previous segment came from the right.

, where the previous segment came from the low.
Considering all three cases, we can draw the event horizon for all beads in as in Figure 14:
We observe the property of the curve based on selfsimilarity. For a given , let be the starting point of a periodic substructure of length , and be the ending point. Points and should be distance away. Now, suppose we draw the square of size with the center . Then, the point that appears first in the square (including the boundary) is at most segments away from (See Figure 15 (a)). Moreover, the point that appears last in the square is at most segments away from (See Figure 15 (b)).
We have eleven different cases for the beads within ’s and ’s that overlap with (See Figure 16). In each case, shapes and are distinguished by points within the shape. The thick rhombi represent ’s for . We can observe that in all cases, the union of event horizons is covered by at most two squares with different ’s, whose shapes range from to . According to the observation, we can say that a partial conformation in is dependent to beads in the sequence of shapes from to . Thus, we have and such that and and have exactly the same conformation. Since this results in a periodic sequence of segment turns, our assumption is wrong.
Now we assume that . Suppose that we want to stabilize beads in . The event horizon covers only ’s and ’s that are within the square of size unit distances with the center . Similar to the previous case, we can find at most two ’s with where the corresponding squares completely cover the event horizon. The earliest that can be such is , and we can say that a partial conformation in is dependent to beads in the sequence of shapes from to . Thus, we have and such that and and have exactly the same conformation. In a similar way, we can extend the proof for arbitrarily large . Similar to the Koch curve case, we can also remove the assumption about the OS period.
∎
5 Impossibility of Infinite Aperiodic Curves
We expand the results from Sections 3 and 4 to impossibility of infinite aperiodic curves, which includes fractals. Construction of infinite periodic curves using a cyclic OS seems to be reasonable if we can design a partial OS that folds one period of the curve, and we have one running example—the glider in Section 2. On the other hand, for infinite aperiodic curves, we propose sufficient conditions that makes curves impossible to fold. We make the following assumptions:

The curve is on an arbitrary lattice , and each point (segment) in is mapped to a shape () in the triangular lattice .

The OS uses () beads for (). We say .

The OS has the period of .

The curve is represented by an infinite alternation of and , starting from . For convenience, we refer to the union of and as .
Let be an upper bound of the delay , dependent to a given integer . We propose the condition that curves are not foldable when , and expand the result to all possible delays. Suppose we want to stabilize beads in . Then, we have the maximum event horizon for beads in , which is the union of all event horizons of radius whose centers are points in and points neighboring in ’s adjacent to . Now, for each , we have that appears first in . Let to be the maximum difference between and for all . Then, it takes to have exactly the same conformation for the previous beads, which results in the same maximum event horizon and the same conformation for two shapes and . After and , it is assured that previous beads have exactly the same conformation for the consecutively following shapes, and these shapes fold exactly the same. Since is dependent on , we have the following theorem.
Theorem 3.
If there exists such that , then it is impossible to draw a given infinite aperiodic curve with a cyclic OS whose delay is less than or equal to and period is .
In practice, the delay of the OS is bounded by the transcript length. If we consider a cyclic OS that has an infinite transcript, the delay can be arbitrarily large. We extend Theorem 3 for arbitrarily large delays and obtain the following statement.
Theorem 4.
Suppose there exists a function , where for all , there exists such that . Then, it is impossible to draw a given aperiodic infinite curve with a cyclic OS whose period is .
If is dependent only on and not , then we may use an arbitrarily large to satisfy the conditions for all ’s regardless of . When we have such a case, the following statement holds.
Theorem 5.
If there exists a function such that, for all , is independent of , then it is impossible to draw a given infinite aperiodic curve with a cyclic OS regardless of the delay and the period of the OS.
6 Conclusions
The oritatami system (OS) is a computational model inspired by RNA cotranscriptional folding, where an RNA transcript folds upon itself while synthesized out of a gene. Since the OS is a geometric computation model, it is natural to consider the problem of constructing fractal curves using the OS. We have formally defined the drawing of the curve by an OS. Then we have proved that it is impossible to draw two infinite fractal curves (Koch curve and Minkowski curve) by a cyclic OS. Moreover, we have proposed sufficient conditions that make the folding of general infinite curves impossible. Our conjecture is that all fractal curves made by edge replacements are not foldable. However, we cannot directly apply the same approach to all curves, especially to curves that touch themselves such as Heighway dragons. Thus it is open to develop a new approach for these selftouching curves.
Acknowledgements
Han was supported by the Basic Science Research Program through NRF funded by MEST (2015R1D1A1A01060097). This work is partially supported by NIH R01GM109459, and by NSF’s CCF1526485 and DMS1800443. This research was also partially supported by the Southeast Center for Mathematics and Biology, an NSFSimons Research Center for Mathematics of Complex Biological Systems, under National Science Foundation Grant No. DMS1764406 and Simons Foundation Grant No. 594594.
References
 [1] (2015) Efficient universal computation by greedy molecular folding. CoRR abs/1508.00510. External Links: Link Cited by: item 4, §1, §2, §3.
 [2] (2016) Programming biomolecules that fold greedily during transcription. In Proceedings of the 41st International Symposium on Mathematical Foundations of Computer Science, pp. 43:1–43:14. Cited by: Figure 1, item 4, §1, §1, §3.
 [3] (2014) A singlestranded architecture for cotranscriptional folding of RNA nanostructures. Science 345, pp. 799–804. Cited by: §1.
 [4] (2018) Nondeterministic seedless oritatami systems and hardness of testing their equivalence. Natural Computing 17 (1), pp. 67–79. Cited by: §1, §3.
 [5] (2017) Selfattraction removal from oritatami systems. In Proceedings of the 19th International Conference on Descriptional Complexity of Formal Systems, pp. 164–176. Cited by: §1.
 [6] (2017) Ruleset optimization on isomorphic oritatami systems. In Proceedings of the 23rd International Conference on DNA Computing and Molecular Programming, pp. 33–45. Cited by: §1.
 [7] (2018) Hierarchical selfassembly of fractals with signalpassing tiles. Natural Computing 17 (1), pp. 47–65. Cited by: §1.
 [8] (2017) Selfassembly of 4sided fractals in the twohanded tile assembly model. In Proceedings of the 16th International Conference on Unconventional Computation and Natural Computation, pp. 113–128. Cited by: §1.
 [9] (2009) Strict selfassembly of discrete sierpinski triangles. Theoretical Computer Science 410, pp. 384–405. Cited by: §1, §1.
 [10] (2018) Parametrizing string assembling systems. In Proceedings of the 23rd International Conference on Implementation and Applications of Automata (To appear), Cited by: item 3, §1, §3.
 [11] (2017) Rule set design problems for oritatami systems. Theoretical Computer Science 671, pp. 26–35. Cited by: §1.
 [12] (2017) Oritatami system; a survey and the impossibility of simple simulation at small delays. Fundamenta Informaticae 154 (14), pp. 359–372. Cited by: §1.
 [13] (1980) The mathematical theory of l systems. Academic Pres. Cited by: §2.
 [14] (2016) Nondeterministic selfassembly of two tile types on a lattice. Physical Review E 93, pp. 042412. Cited by: §1.
 [15] (2017) Fractal assembly of micrometrescale dna origami arrays with arbitrary patterns. Nature 552 (7683), pp. 67–71. Cited by: §1.
 [16] (2002) Beyond molecules: selfassembly of mesoscopic and macroscopic components. Proceedings of the National Academy of Sciences of the United States of America 99 (8), pp. 4769–4774. Cited by: §1.
 [17] (1998) Algorithmic selfassembly of DNA. Ph.D. Thesis, California Institute of Technology. Cited by: §1.
Comments
There are no comments yet.