the vertex is concave, the angle is negative. The ex-
pression is a sequence of the angles of the rotations.
For example, the figures in Figure 1(a),(b)
and (c) are expressed as the following se-
quences: (2π/3, 2π/3,2π/3), (2π/3, 2π/3,−2π/3,
2π/3,2π/3), and (2π/3,2π/3, 2π/3,−π/3,π/3),
respectively. In the figure, the bold arrow shows the
startpoint of the sequence.
Figure 1: Angles of rotation.
It is known that the sum of the angles of rotation is
2π if and only if a closed figure can be drawn without
an intersection on a two-dimensional plane. Tosue et
al. required this proposition to define a consistency,
which is the condition to be satisfied by an expression
for the existence of a corresponding figure. However,
they did not show an algorithm that drew the figure.
In this paper, we present an algorithm that draws a
figure corresponding to the expression and present a
constructive proof of the algorithm.
We formalize the expression and the algorithm
as an abstract rewriting system (Klop, 1992). An
abstract rewriting system is generally used for dis-
cussing computational models, but can be employed
more widely to formalize a rewriting system. Here,
we define an abstract rewriting system over a set of
expressions and the rewriting rules, and present a con-
structive proof. Each rewriting rule corresponds to
the deletion of a concave part. Starting with a fig-
ure corresponding to a consistent expression, the con-
cave parts are deleted one-by-one in each step until
a simple convex shape remains. The inverse of this
procedure yields an algorithm that draws a figure cor-
responding to a given consistent expression starting
from a simple convex shape.
It is crucial to define the rewriting rules. If we try
to rewrite an edge, many possible shapes may be ob-
tained starting with a single shape. For example, con-
sider the figures shown in Figure 2. Figure (a) can be
obtained from all shapes (b)-(f) (and more) by rewrit-
ing one or two edges. It is thus essential to define rules
embracing all possible cases, but this is burdensome.
Here, we define rules for rewriting angles instead of
edges. Then, we require only four rules, which greatly
simplifies our proof.
Using this approach, the following questions
arise: (1) When a shape changes to another shape, is
there more than one sequence of rewriting steps? (2)
Figure 2: Rewriting rules.
Figure 3: Example with its corresponding expression.
For a given shape with concave parts, does the rewrit-
ing terminate, and is the given shape always rewritten
to the same convex shape?
These two questions are reduced to the principal
issues addressed by abstract rewriting systems: con-
fluence and termination. In this paper, we show that
when a shape changes to another shape, there may be
more than one sequence of rewriting steps, and for a
given shape with concave parts, rewriting terminates
at the same convex shape.
The remainder of this paper is organized as fol-
lows. In Section 2, we define our descriptive language
and rewriting system. In Section 3, we describe the al-
gorithm used to draw a figure. In Section 4, we prove
that the system exhibits confluence and termination.
In Section 5, we discuss the properties of the system.
In Section 6, we provide conclusions and describe our
planned future work.
2 LANGUAGE
Here, we define our directional language D. As ex-
plained above, D denotes figures as sequences of ro-
tational angles. We use A, B, A, and B to denote ro-
tations of 2π/3, π/3, −2π/3, and −π/3, respectively.
For example, figure (a) in Figure 1 is described by
AAA. Figures (b) and (c) are described by AAAAA
and AAABB, respectively. Another example is shown
in Figure 3; the figure is described by AABABAA.
In D, any expression denotes a closed figure. The
startpoint of the rotational sequence is irrelevant. The
use of different startpoints simply rotates the expres-
sion; for example ABABAAA or BABAAAA in Fig-
ure 3. These expressions correspond to the same fig-
ure.
The formal definition of D is as follows:
Definition 1 (Expression). An expression in D is de-
fined as a finite sequence of {A, B,A,B} (i.e., x
1
.. . x
n
where x
i
∈{A,B,A, B} for all i). We use ε to denote
Operations for Shape Transformations based on Angles
577