We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
Crystalline Cloudscape
| Paradigm(s) | Declarative |
|---|---|
| Designed by | User:Hakerh400 |
| Appeared in | 2026 |
| Computational class | Turing complete |
| Major implementations | Implemented |
| File extension(s) | .txt |
Crystalline Cloudscape is a formally verified esolang invented by User:Hakerh400 in 2026.
Overview
A node is either nil or a pair of two nodes. [1] Every two nils are equal to each other. Nil is not equal to any pair. Two pairs are equal iff their left subnodes are equal and their right subnodes are equal.
Program defines a set of nodes using inference rules.
Nodes can be named. Names are natural numbers. Nil implicitly has name 0 and a pair of two nils implicitly has name 1.
Syntax
Source code consists of two parts. The first part assigns names to nodes. The second part defines inference rules that induce a set of nodes. The output is the minimal set (under inclusion) satisfying all of the inference rules. It represents the fixpoint of applying the inference rules.
Name assignment has form <name> <left> <right> where <name> is the name of the new node, <left> is the left subnode and <right> is the right subnode. The same pair cannot be named twice.
Two programs are equivalent iff they generate the same set.
Examples
All examples are formally verified.
Examples titled S_<num> are randomly generated. We generated a list of random programs and picked the ones with interesting properties. The <num> represents the index of the program in the list of the randomly generated programs that we created.
S_21
2 0 1 ⊢ 1 a ⊢ 1 (0 0) ⊢ 0 a ⊢ (0 a)
This program has a single name assigment and 4 rules. It assigns pair (0 1) to name 2. Note that 2 is not used in the rules, so it's useless.
The first rule says that 1 is in the set. The second rule says that whenever a is in the set for any a, then 1 is also in the set. The third rule says that if the pair (0 0) (which is equivalent to 1) is in the set, then 0 is also in the set. The last rule says that for any a in the set, (0 a) is also in the set.
The output is the infinite set:
{0, (0 0), (0 (0 0)), (0 (0 (0 0))), ...}
It is equivalent to the following program: [2]
⊢ 0 a ⊢ (0 a)
Name 2 is not used, so we can remove it. Rule a ⊢ 1 is implied by ⊢ 1, so we can remove a ⊢ 1 as well. Since 1 is in the set and 1 is just (0 0), by the rule (0 0) ⊢ 0 we conclude that 0 is also in the set. But the last rule a ⊢ (0 a) says that if 0 is in the set, then (0 0) is also in the set, which means that 0 being in the set implies that 1 is in the set as well. So we can replace both ⊢ 1 and (0 0) ⊢ 0 with just ⊢ 0 because of the last rule.
S_24
2 0 1 3 1 1 ⊢ (3 (2 ((1 ((2 0) 1)) (2 0)))) a ⊢ ((a 0) a) (a (1 b)) ⊢ b 0 ⊢ 2 a ⊢ (a 2) (((a (0 a)) a) b), a, 3, a, a ⊢ b a, 2 ⊢ (0 a)
Note that here we have rules with multiple premises, such as a, 2 ⊢ (0 a). It means that if we can find some a such that both a and 2 are in the set, then (0 a) is also in the set.
This program is equivalent to the following program: [3]
2 0 1 a ⊢ ((a 0) a) a ⊢ (a 2)
S_32
2 1 0 3 0 1 4 1 1 5 0 4 6 5 0 7 6 1 8 7 1 9 0 8 10 0 9 ⊢ 1 (a 0) ⊢ (a (0 ((((a ((0 a) (0 a))) a) (0 a)) 1))) 0 ⊢ 1 (0 a), (0 a), 1 ⊢ a
It produces the following finite set: [4]
{0, 1, 8, 9, 10}
S_61
2 1 0 3 2 1 ⊢ (2 1) a ⊢ ((a 0) 3) (1 a), b ⊢ a
It is equivalent to the following program: [5]
2 1 0 3 2 1 ⊢ 3 a ⊢ ((a 0) 3)