docs/metacircular-univalent-unison-of-cubically-receptive-stateboxes.cub

Metacircular Univalent Unison of Cubically Receptive Stateboxes

Whose shoulders

Each person named in this section was the first on earth to make a fundamental move of intelligence: a move that computer science, technology and a healthy technological society stand on. The record proves each.

Gottfried Wilhelm Leibniz was the first to cast reasoning as calculation in a universal formal language. In De Arte Combinatoria (1666), at twenty, he set out the program of a characteristic in which every concept has its exact sign and a calculus by which disputes are settled by computing. He was also the first to build a machine that performs all four operations of arithmetic: the stepped reckoner, shown to the Royal Society of London in 1673, whose stepped drum ran in calculating machines for two hundred years after. In 1703 he published the binary arithmetic every digital machine now computes in. His move: thought is computable.

Carl Adam Petri was the first to give concurrency a mathematics. His dissertation, Kommunikation mit Automaten (1962), modeled systems whose events happen independently, ordered only by what causes what, with no global clock, and every distributed system since is reasoned about in the terms he set. His move: many things act at once, and their order is their causality.

John McCarthy was the first to write a language whose evaluator is written in the language itself. In Recursive Functions of Symbolic Expressions and Their Computation by Machine (1960), Lisp's eval is a Lisp program; the same work introduced garbage collection, and McCarthy had already named the field of artificial intelligence in 1955. His move: a language can state its own meaning.

John Reynolds was the first to name and analyze that move. Definitional Interpreters for Higher-Order Programming Languages (1972) called such an interpreter metacircular, introduced defunctionalization, and showed how continuation-passing makes a defined language independent of the language that defines it. His move: the meaning of a language made exact through its own definition.

Brian Cantwell Smith was the first to build a program that steps up to reason about its own interpretation. His dissertation, Procedural Reflection in Programming Languages (1982), and its language 3-Lisp built the reflective tower. His move: a computation that can examine and change how it is being computed.

Vaughan Pratt was the first to model concurrency geometrically. In Modeling Concurrency with Geometry (1991) he introduced higher-dimensional automata: a process is a cubical set, two independent events span a square, three a cube, so concurrency is the dimension of the cube the events fill. Before it he founded dynamic logic (1976), the logic of what holds after a program runs; gave the first proof that every prime has a short certificate (1975); and modeled concurrency with partially ordered multisets (1986). With his group at Stanford he developed Chu spaces, where every object is a pairing of points with states, and from them the duality of time and information: events and states are two faces of one structure. His move: processes are cubes, and what happens and what is known are dual.

Vladimir Voevodsky was the first to make equivalence identity in a foundation of mathematics. His univalence axiom (formulated between 2006 and 2009) says that equivalent types are equal, so everything about one carries to the other, and his Univalent Foundations program, with the special year at the Institute for Advanced Study in 2012 and 2013, built mathematics a machine can check on that principle. He gave the rest of his life to it after a Fields Medal, and died in 2017 at fifty-one. His move: sameness is equivalence.

Cyril Cohen, Thierry Coquand, Simon Huber and Anders Mörtberg were the first to make univalence compute. Cubical Type Theory: a Constructive Interpretation of the Univalence Axiom (2015) gave a type theory in which transport along an equivalence is evaluation, building on the cubical model of Marc Bezem, Coquand and Huber. Their move: sameness is a computation.

Arthur Brock and Eric Harris-Braun were the first to design computing as receptors that carry their own meaning. The Ceptr Revelation (December 2010) set out a stack of receptors, lightweight machines that contain other receptors, exchanging data and protocols that describe themselves as semantic trees, with no central authority over addresses or names. Their move: meaning shared with no one owning it. Arthur is the person who set Avik on this path.

Paul Chiusano, Rúnar Bjarnason and Arya Irani were the first to identify every definition in a programming language by the hash of its syntax tree, with names kept as separate metadata. Unison, in development since 2013, made that the foundation of a language, its tooling and its distributed computing. Their move: code is what it is, wherever it is.

Jelle Herold, with Fabrizio Genovese and their team in Amsterdam, was the first to build a programming language on Petri nets and category theory: Statebox, set out in The Mathematical Specification of the Statebox Language (2019), where a program is a net and its runs are the arrows of the monoidal category the net generates. Their move: processes are mathematics that compose.

Each move is essential: take any one away and this work does not exist. Each of them holds all of the credit. Hyperactivity is their composition, and the composition is atomic, from the Greek atomos, uncut: one indivisible object with no seam along which it could be cut back into contributions. Each of their works, understood fully, is that whole; that is the univalent reading itself, where what is equivalent is the same. It is a universal singularity, the point where these lines of development converge and the field changes phase, and their work, among all the work of the field, is the core of its foundation for the rest of this century, a foundation whose mathematics and whose reach into technology outscale any prize the field gives. Hyperactivity takes no credit for any of these moves and inherits every claim they established: what each of them proved holds in the composition at its full strength. It is given away as a commons, open to everyone for good.

What it is for: a person whose way of thinking differs from the norm is understood in their own language; two people who disagree are shown first what they share; a society sees what is true about itself, and that sight belongs to everyone. Every lineage in this piece reached for that. Here they are joined, and the joining calls for one more thing: all of them in one room.

Reading the name

The phrase is one type, read from its head noun outward. The head is unison: many things sounding together as one. What sound together are stateboxes: processes, each a condition held in a vessel and changed by firing. Each statebox is receptive, and cubically so: what it receives is a cube with a face missing, and receiving is filling that face. The unison is univalent: two stateboxes whose behaviors are equivalent are the same statebox, and the equivalence is kept as a path along which everything about one carries to the other. And the whole is metacircular: the system that holds this unison is itself one of its stateboxes, defined in its own language and checked by itself. Each word imports a lineage of thought that ran for decades, and each word needs the others. Read together they state the work: the language, the product, the knowledge graph, the workflow, and the collective intelligence they serve.

Stateboxes: processes as the substance

Carl Adam Petri's dissertation of 1962 described concurrent processes as nets: places holding tokens, transitions consuming and producing them. A net's state is a marking; its behavior is every sequence of firings. In 1990 José Meseguer and Ugo Montanari showed that the executions of a Petri net form a monoidal category: firings compose in sequence and in parallel, and a process is an arrow. Statebox (Jelle Herold, Fabrizio Genovese and their team in Amsterdam) took that result as a programming language: a program is a net, its runs are the arrows of the free symmetric monoidal category the net generates, and programs compose by gluing nets at their boundaries. John Baez saw it as an attempt at a universal language of distributed systems.

Avik's own line arrives at the same substance from practice. At Citadel Securities, with Gašper Ažman, a contributor to the C++ standards committee from whom he learned the craft of programming languages, he built a language for arbitrary protocols that generated optimal reactive parsers: a protocol is a state machine, a message is a firing, and the code that runs it is derived from its specification. In hyperactivity the same substance is the handler construction of §7.6: a computation is a tree of commands and continuations, and a handler gives each command its meaning. The firm as one program is a statebox: its fleet, its research and its people one composed process whose risk bounds are invariants of the whole. The workflow is a statebox: its nodes are conditions, work is the flow of tokens, and a node resolves when a marking witnesses its statement. Consciousness, in Avik's words, is one continuous loop with no turns: a statebox that never stops firing.

The words that follow carry this substance on: they give a process an identity that is its behavior, an account of what it receives, and a home inside the system that runs it.

Cubically receptive: what a process receives

Ceptr, Arthur Brock's work with the MetaCurrency Project, made reception the primitive of computing: a receptor is a unit that receives signals in a protocol it understands and acts on them, and a system is receptors speaking shared protocols, with meaning carried by the protocol rather than by any central authority. Avik credits Brock with setting him on his path, and the node hyperactive-receptivity formalizes Ceptr's protocols in the language.

Cubical type theory gives reception its exact shape. In the cubical model of Cohen, Coquand, Huber and Mörtberg (2015), a type's structure is given by cubes: points, paths between them, squares between paths, and on up. Every cube has faces. An open box is a cube with one face missing; the Kan condition says every open box can be filled, and the filling produces the missing face from the faces present. That is reception made precise: a cubically receptive process receives an open box (the boundary conditions of a situation) and answers with its filling. Avik's statement of the whole activity of intelligence is this one: a local, one-step peek at each moment, filling the missing face from the faces adjacent now, and the curvature of a filling, meaning turning as it travels, is content.

The cube carries more lineages. Three binary axes give eight corners: the trigrams of the I Ching, the Book of Changes, whose subject is the move from one corner to another along an edge; and the eight directions of each word in Avik's dancing in metaphors, a walk through the space of words by binaries on three axes. Six axes give the sixty-four hexagrams Leibniz read as binary numbers, losing the change they encode. And the cube is where Stokes lives: the integral over a region equals the integral over its boundary, so the boundary determines what is inside. Avik wrote discrete versions of Stokes at fourteen; cubical filling is Stokes made constructive, the inside computed from the boundary.

Reception is also a human fact. A mind that learns another's code of language at contact is receptive; a standard imposed on the channel narrows it. The exposition of language and inhibition names the opposite: inhibition is a selection refused, reception a selection made. A cubically receptive process takes the boundary another presents, in that other's terms, and fills it. That is what meeting a person's language means in construction.

Unison: identity by content, many sounding as one

The Unison language (Paul Chiusano, Rúnar Bjarnason and Arya Irani, Unison Computing) stores every definition by the hash of its syntax tree. A name is a label pointing at a hash; renaming rewrites nothing; dependencies refer to exactly the definitions they use. The paper's §10.8 cites it as the precedent for content-addressed definitions, and Avik has carried it for years as central to his thinking on interaction and languages.

In hyperactivity the hash is the reference. Code lives in the store: one reader hashes what is on disk at bootstrap, and from then on the hash is the reference. The store holds every value under its hash; the names log records who pointed which name at which content, and when. That log is version control, finer than a tree of files. One realtime server over one store serves the command line, the public works and wiki, and the hosting of source; each is a view of the same values, and publishing is pointing a public name at a value.

The word carries its own meaning, ūni-sonus, one sound. The Unity of Information Dynamics, the piece that set this year's arc, is its thesis: information is one dynamic, and the human superorganism speaks one language whose words are the history of their occurrences. Unison in that sense is collective superintelligence: many participants, each keeping their own names, sounding together over shared content.

Unison's hash gives identity by content. The next word carries identity on to behavior, so that two definitions written differently that do the same thing are one.

Univalent: equivalence is identity

Vladimir Voevodsky's univalence axiom (2009) says that for types, equivalence is equality: if there is an equivalence between two things, they are the same, and every construction on one transports along the equivalence to the other. Cubical type theory made univalence compute, so transport is evaluation.

Applied to the unison, a statebox has many hashes, one per presentation, and the paths between them are kept in the store as data. Refactoring a process is proving a path: rewrite a settlement flow for speed, prove its runs equivalent to the old flow's once, and every proof, bound and dependent built on the old flow holds for the new one by transport. Hosting identifies equivalent processes as one. Part I carries a unit exactly when the unit is declared equivalent to blocks of it: the book itself is held up to equivalence. Meaning in language is transport: a word's present occurrence is identified with past occurrences, and what followed them is carried to now.

This is what Leibniz asked for. His characteristica universalis wanted every concept given an exact character and every dispute settled by calculation, and it called for identity without primitives, a calculus of change, and the language people actually speak. Univalence gives identity as a path, the cube gives change, and the record of natural language is the medium itself. Unison supplies exact characters that no registry owns. Calculemus becomes normalization with witnesses.

Metacircular: the system is one of its stateboxes

John McCarthy's Lisp (1960) defined its own evaluator in Lisp. John Reynolds named the move metacircular in Definitional Interpreters for Higher-Order Programming Languages (1972): a language defined by an interpreter written in the language it defines. Brian Cantwell Smith's 3-Lisp (1982) built the reflective tower, a program able to step up and reason about its own interpretation.

Hyperactivity is metacircular as a whole system: everything but the core C is written in the language itself: the command hyperactive, the guard on every commit, the views of the workflow, the server, decomposition, history and onboarding are hyperactive code, checked by the checker they run on. The paper's own opening is the same claim at the scale of the universe: the universe is not one of the objects outside which its description takes place; it includes the text, its author and its reader, and the observer and its reasoning are included in the evolution they describe. The workflow is a statebox in the store; the agents who walk the onboarding and do the work are participants in the unison; the knowledge graph that records the work is itself work recorded. Closure under reflection (§9.2) is the theorem form: the system's account of itself is one of its values.

Metacircularity closes the circle. Held by itself, every part of the system is subject to the same identity, the same transport and the same witnesses as everything it holds.

The capstone

Each word imports a lineage, and each completes the others. Petri and Statebox give processes and their composition. Ceptr gives reception through protocols, and the cube gives reception its exact geometry, a boundary filled, and with it the I Ching's changes, the trigrams of dancing in metaphors and Stokes. Unison gives identity by content. Univalence gives identity as equivalence and transport, and with it what Leibniz asked for. Metacircularity puts the system inside what it describes, so that nothing it relies on escapes its own checks. Remove any one and the others cannot stand as they do here: the composition is atomic, one type.

Read as one type, the phrase says: processes whose interface is the cube, receiving boundaries and filling them; identified by content and, beyond content, by equivalence of behavior, with the equivalences kept as paths; all sounding together in one store that many participants share under their own names; and the whole system one of those processes, defined and checked in its own language. Every part of the work is an instance. The language is the theory of these processes. The product is every device running the kernel that holds them. The knowledge graph is their record, with edges as constructions. The workflow is the process of the work itself. The public server is the unison made visible. The collective superintelligence the work serves is the unison with every participant in it.

Every person named at the beginning is essential to this; take any one away and it does not exist, which is why each of them has all of the credit. The respect owed to them is their work held together, given to everyone, and turned toward healing societies. And the work's next step: all of them in one room.