Английская Википедия:Iota and Jot

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Шаблон:Short description Шаблон:Infobox programming language In formal language theory and computer science, Iota and Jot (from Greek iota ι, Hebrew yodh י, the smallest letters in those two alphabets) are languages, extremely minimalist formal systems, designed to be even simpler than other more popular alternatives, such as the lambda calculus and SKI combinator calculus. Thus, they can also be considered minimalist computer programming languages, or Turing tarpits, esoteric programming languages designed to be as small as possible but still Turing-complete. Both systems use only two symbols and involve only two operations. Both were created by professor of linguistics Chris Barker in 2001. Zot (2002) is a successor to Iota that supports input and output.[1]

Note that this article uses Backus-Naur form to describe syntax.

Universal iota

Chris Barker's universal iota combinator Шаблон:Mvar has the very simple λf.fSK structure defined here, using denotational semantics in terms of the lambda calculus,

Шаблон:NumBlk

From this, one can recover the usual SKI expressions, thus:

Шаблон:NumBlk

Because of its minimalism, it has influenced research concerning Chaitin's constant.[2]

Iota

Iota is the LL(1) language that prefix orders trees of the aforementioned Universal iota Шаблон:Mvar combinator leafs, consed by function application Шаблон:Mvar,

iota = "1" | "0" iota iota

so that for example Шаблон:Val denotes <math>((\iota\iota)(\iota\iota))</math>, whereas Шаблон:Val denotes <math>(\iota(\iota(\iota\iota)))</math>.

Jot

Jot is the regular language consisting of all sequences of 0 and 1,

jot = "" | jot "0" | jot "1"

The semantics is given by translation to SKI expressions. The empty string denotes <math>I</math>, <math>w0</math> denotes <math>(([w]S)K)</math>, where <math>[w]</math> is the translation of <math>w</math>, and <math>w1</math> denotes <math>(S(K[w]))</math>.

The point of the <math>w1</math> case is that the translation satisfies <math>(([w1]A)B) = ([w](A B))</math> for arbitrary SKI terms <math>A</math> and <math>B</math>. For example, <math display="block">[w11100] = (([w1110]S)K) = (((([w111]S)K)S)K) = ((([w11](SK))S)K) = (([w1]((SK)S))K) = ([w](((SK)S)K)) = ([w]K)</math> holds for arbitrary strings <math>w</math>. Similarly, <math display="block">[w11111000] = (((((([w11111]S)K)S)K)S)K) = ([w](((((SK)S)K)S)K)) = ([w]S)</math> holds as well. These two examples are the base cases of the translation of arbitrary SKI terms to Jot given by Barker, making Jot a natural Gödel numbering of all algorithms.

Jot is connected to Iota by the fact that <math>[w0] = (\iota[w])</math> and by using the same identities on SKI terms for obtaining the basic combinators <math>K</math> and <math>S</math>.

Zot

The Zot and Positive Zot languages command Iota computations, from inputs to outputs by continuation-passing style, in syntax resembling Jot,

zot = pot | ""
pot = iot | pot iot
iot = "0" | "1"

where Шаблон:Val produces the continuation <math>\lambda cL.L(\lambda lR.R(\lambda r.c(lr)))</math>, and Шаблон:Val produces the continuation <math>\lambda c.c\iota</math>, and Шаблон:Mvar consumes the final input digit Шаблон:Mvar by continuing through the continuation Шаблон:Mvar.

See also

References

Шаблон:Reflist

External links