Araara a — Araara

Share
Araara a — Araara
A trevally

For an introduction to the project, read Araara o — Introduction.

Give letters integer values, then add by writing them together. This is our first step toward names we can calculate with.


In what follows, text written in Araara, the object language, appears in color; English, the metalanguage, remains unmarked or within single quotation marks.


Consider the English alphabet:

abcdefghijklmnopqrstuvwxyz
All 26 English letters in uppercase and lowercase pairs, A a through Z z, printed in cobalt in four rows on warm paper.
The English alphabet

We begin with the twenty-six lowercase English letters. The alphabet is familiar; the choice is arbitrary.

Each letter has a fixed integer value. Concatenation lets us express any integer.

Call this type Ashort, after C’s short integer type. Unlike a C short, it has no fixed range, though large values require long expressions.

a : Ashort

declares that a has type Ashort. But what value does it have? We will declare it to have the value

a = 1.

Only the coloured symbols belong to Araara. The surrounding notation describes their interpretation. A value of one does not exhaust what an expression can mean.

Letters and values

We arrange the letters in pairs: a and b, c and d, and so on. The first letter of each pair has a positive value; the second has the opposite, negative value.

We have seen that a = 1. Because it is paired with b, this must mean that

b = -1.

Indeed it is. Now what about c and d? Simple: to compute the value of c, we multiply the value of a by three and subtract one. Thus,

c = a * 3 - 1 = 1 * 3 - 1 = 2
d = -c = -2

Repeating this gives e = 5 and f = −5, and so on. More precisely, if we write aₙ for the value of the nth letter in the English alphabet, the following recurrence gives all twenty-six values (1 ≤ n ≤ 26):

The recurrence gives small steps near the beginning and increasingly large ones later. The first few values suffice for the examples.

Recurrence relation: a sub n equals 1 if n equals 1; negative a sub (n minus 1) if n is even; and negative 3 times a sub (n minus 1), minus 1, otherwise.

Adding by concatenation

To concatenate letters means to add them. For example:

abc = a + b + c = 1 - 1 + 2 = 2

Two can also be written c or aa. Equal values preserve different spellings.

Try the exercises with pen and paper; the OEIS may help with the second.

Series guide & glossary

Follow the series in order, or begin with an example.

Values and expressions

Encoding and reference

Structure and operations

Names at physical scale

Lists and components

Word or typeWhat to keep in mind
Expression and valueThe expression is what we wrote. Its value depends on how we read it. Equal values can come from expressions that preserve different information.
Alphabet and indexAn alphabet supplies an order of characters. An index tells us a position in that order; a separate rule assigns numerical values.
Ashort; AkurtoInteger expressions using ø-English and Aglobasa respectively. A letter’s value belongs to its chosen alphabet. Concatenation adds.
Aplukurto; pluLists of Akurto with ø marking each entry. Concatenation joins lists; list normal form has no empty entries. A two-entry list can specify the real and imaginary parts of a Gaussian integer. Prefix plu to form other list-type names.
Normal formAn agreed representative for a value under the rules of a type. It need not be the shortest spelling.
Unicode normal form; AsksUnicode normal form encodes one code point. An Asks keeps a sequence of those encodings, in order.
Abece; AkurtosksAbece describes an ordered alphabet, with gaps when needed. Akurtosks uses short Unicode forms to encode strings more compactly.
SignatureHere, a sum of code points. It is easy to compute, but different strings or alphabets can have the same sum.
References and prefixesA declared prefix tells us which convention to use: an ISBN, a Unicode code point, a colour component, or another kind of reference.
Asoho; caseIn Asoho, uppercase letters express reciprocals, and concatenation has the corresponding reciprocal operation. Case is doing mathematical work.
ApeundekuAn uppercase reciprocal component and a lowercase integer component form a rational value, with one added infinity.
Attic; Alungo; levelsAttic supplies numeral symbols. Alungo uses Attic terms as labels for successive levels of the continuing letter-value recurrence.
Apar; ambient typeApar supplies variable names. The ambient type says where their assigned values live; the name itself does not choose a value.
Fraktur; AlocuFraktur supplies another alphabet. Alocu uses its letters to choose and combine arguments; the input and output types matter.
Tetragrams; tetrathetsTetragrams give us a named alphabet. We use them to build poetic names for physical scales and dimensions. Their glyphs have no letter case, so context matters.

The sunlight example brings several of these conventions together.

Exercises

  1. Continue the calculation through the first ten letters. What are the values of g, h, i, and j?
  2. Which OEIS sequence do we get for odd n? Find a closed-form expression for aₙ when n is even.
  3. What is the value of m? Does this number have any particular significance?
  4. Find three different representations of four using the letters from a to f. What happens to their values if we rearrange the letters?
  5. In Polish, z is followed by ź and ż. Continuing the same recurrence, what value would ż have if the English alphabet ended in yzźż rather than yz?

Next: Ashort arithmetic and the information a spelling preserves.