Araara dc — Aplukurto

Keep Akurto terms in order with ø-marked entries; read a pair as a Gaussian integer.

Share
A trevally turns through coastal water among kelp and filtered sunlight.

Keep several Akurto terms together, without adding them into one number.

In Ashort, we kept a budget and its individual costs by marking where each numeral ended. In Akurto, bcobao preserved seven and three while evaluating to ten. Let’s now take the list itself as our object.

Lists of Akurto

Append ø to each Akurto term to mark a list entry. Seven followed by three becomes:

two entries, in order

bcøbaø

(7, 3)

We will call this type Aplukurto. The ø is a boundary marker; the familiar o remains available inside an Akurto term. The last entry has a marker too.

Concatenation now joins lists. Appending eø, a one-entry list, gives:

bcøbaø concatenated with eø gives bcøbaøeø.

We have (7, 3, −1), of length three. Order and repetition remain:

baøbcø represents (3, 7).

aøaø represents (1, 1).

Recall ε, our notation for the empty expression. Here it represents the empty list, of length zero. Concatenating it changes nothing.

The same construction gives lists of other types. Prefix plu to the type’s name: Akurto gives Aplukurto; Asoho gives Aplusoho. Each element keeps the interpretation belonging to its type.

Normal form

Begin with an entry, and terminate each entry with ø. A list is in normal form when it has no empty entries: equivalently, there is no øø in the string.

For example, bcøøbaø has an empty entry between seven and three. Removing it gives bcøbaø.

A zero entry is different:

bcøoøbaø represents (7, 0, 3).

The middle entry contains o. It stays. This is already a list normal form, even though bc is not the numerical normal form of seven. List normal form removes empty entries; it need not choose one spelling for each integer.

Gaussian integers

A Gaussian integer is a complex number x + yi whose real and imaginary parts, x and y, are both integers. Here i is the imaginary unit, satisfying i2 = −1. These numbers form a square grid in the complex plane.

We can represent a Gaussian integer by an Aplukurto of length two: the first component gives its real part, and the second its imaginary part.

Two integer components, one Gaussian integer
AplukurtoReal
part
Imag.
part
Gaussian
integer
bcøbaø737 + 3i
bøeø2−12 − i
oøaø01i
aøoø101

As with our colour components, each position has an agreed role. The pair (7, 3), its sum ten, and the Gaussian integer 7 + 3i are different readings. We state which one we mean.

Exercises
  1. Write the list (2, 0, −5), then append (1, 1).
  2. Remove the empty entries from bøøoøjøø. What is the resulting list’s length?
  3. Read eøbø as a Gaussian integer. What does reversing its two entries give?

Next: Araara dca — overdots, underdots, and middle dots