Manuscript Offprint
arXiv:2610.12251Universal Construction and Exact Self-Reproduction in Ternary McCulloch-Pitts Networks
Abstract
A fixed network of McCulloch–Pitts threshold units with weights in can hold other threshold networks in its state and run them: the state is a ring of banks of records, each record a unit of a stored network, and each step evaluates one record. We use such a network to carry out von Neumann's universal construction and self-reproduction exactly. As a cellular automaton keeps its rule, the fixed network keeps its weights, and what reproduces is a stored network. A constructor of 143 records reads the description of a network from its tape, builds that network in the next bank, copies the description onto the next tape and hands control to what it built; started on its own description, it rebuilds itself, weights included, in every generation. The scheme scales to a universal computer. A SUBLEQ computer of 17,598 ternary units, stored as 36,080 records and running a program of 27 instructions, builds any network that fits a bank and reproduces itself in the same way, at every word width from eight bits on; run directly, it emits the serialization of its own weights, memory and tape. Integer pre-activations give every orbit a margin of 1/2, and replicating each unit r times multiplies it by r. That suffices against noise of any size on the pre-activations, but against von Neumann's output flips only below a threshold inversely proportional to the fan-in. These results are proved in Rocq.
1 Introduction
McCulloch and Pitts introduced networks of binary threshold units as a logical calculus of neural activity [1], and von Neumann used their notation for the logical design of the stored-program computer [2]. He later asked how a machine can build a copy of itself, and answered with a universal constructor: given the description of a machine, it builds that machine, and, supplied with its own description and a mechanism that copies descriptions, it builds a copy of itself together with a copy of the description [3]. The self-reproducing automata that followed [4, 5, 6, 7, 8], surveyed in [9], reproduce configurations of a cellular space under a fixed transition rule.
This paper asks the same question of threshold networks: whether the weights of a threshold network can be reproduced exactly by the dynamics of a threshold network. The networks have weights in and integer thresholds and are iterated as a fixed composition of layers, so that each is a map whose behaviour is the orbit of an initial state. Exactness comes from the integers. A trained network that outputs an approximation of its weights loses information in every generation, while an orbit of integer pre-activations carries a weight set bit for bit and survives every perturbation of a pre-activation below one half.
We answer it with a fixed ternary network that holds other networks as data. Its state is a ring of banks of records with a tape for each bank. A record is a two-input unit of a stored network, and each step evaluates one record of the active bank. The fixed network plays the part of von Neumann's transition rule and the stored networks the part of his configurations. As in a cellular automaton, the transition rule keeps its weights, and what reproduces is the stored network, its weights and biases included.
These objects exist by classical results. By Kleene’s recursion theorem a universal computer has programs that print their own text [10]; universal circuits and fixed-weight networks run any circuit or network whose code they are given [11, 12]; and von Neumann’s design separates construction from copying [3]. This paper builds them as ternary threshold networks and proves what they do. It gives exact sizes and depths for every parameter, shows where ternary weights and threshold units cost a level of depth, reproduces a stored network bit for bit, weights and biases included, and bounds the effect of noise.
(2) A self-reproducing constructor. An organism of 143 records with a description code of its own builds every network whose description fits a tape into the next bank, copies the description onto the next tape and hands control to what it built. Started on its own description it reproduces: the copies accumulate until every bank holds one, and from then on the state repeats every K generations (Theorems 4.5 and 4.6).
(3) A universal computer. A family of ternary networks executes SUBLEQ, a computer with a single instruction [13], on words of A bits. Its step has depth 13 at every word width, and the member with eight-bit words has 17,598 units (Proposition 5.9); a read and the branch each need two levels of ternary units (Lemma 5.7, Remark 5.5). A program of 21 instructions builds every byte string from a run-length description of it, and one of 27, which separates construction from copying as von Neumann did, makes the host emit the serialization of itself, its memory and its tape (Theorems 6.9 and 6.12). This is the quine scheme on a universal machine: a map outside the network turns the emitted bytes back into a running network.
(4) A universal computer that reproduces by the dynamics. Stored in the ring machine, the host of every word width from 8 on runs the second program, builds every network that fits a bank and reproduces in every ring as the organism does, with no map outside the network; with eight-bit words it is 36,080 records (Theorems 7.4 to 7.6).
(5) Reproduction under noise. Every orbit survives perturbations below 1/2 of each pre-activation. Replicating every unit r times, Pierce’s interwoven redundancy [14] with threshold units, multiplies that margin by r. This suffices against Gaussian noise of any size on the pre-activations. Against von Neumann’s output flips with probability it suffices only for , the largest fan-in, and above a disjunction of fan-in fails with a probability that tends to one (Theorem 8.8, Proposition 8.10). A bound computed from the orbit is the exact probability that some unit of a step fails, as measured, and exceeds the rate at which the host leaves its orbit by the 5 to 6% of failures that the state does not show; a second-order bound certifies the complete run of the threefold host where the first-order bound exceeds one (Propositions 8.5 and 8.14).
Every result is proved in Rocq for every word width, ring and size it names, except Lemma 6.3, which concerns the serialization format. Extracted to OCaml, the Rocq definitions write the published files. The sizes of particular byte strings, the values of the profile and restoration bounds along particular orbits, and the measurements are computed by the artifact. Appendix F lists the Rocq theorems behind each result and the computations and runs that corroborate them, and the artifact [15] holds the development, the generators, the evaluators and the record of every run.
Section 2 fixes threshold units, layered maps and netlists. Section 3 gives the ring machine and Section 4 the organism. Sections 5 to 7 build the SUBLEQ host, its programs and its stored form, and Section 8 bounds the noise that a reproducing run tolerates. Section 9 discusses related work and Section 10 concludes. The appendices give the serialization format, the sizes of the constructions, the records of the organism, the restoration bound, the measurements under noise and the verification.
2 Ternary threshold networks
This section fixes the networks of the paper: ternary threshold units, the layered maps they form, and netlists, which describe such a map unit by unit and which levelization turns into layers. Throughout, is the set of bytes, the set of finite byte strings, the length of and concatenation. The Heaviside function is , with if and otherwise, applied coordinatewise to vectors.
2.1 Units and layered maps
Definition 2.1 (Ternary threshold unit). Let . A ternary threshold unit with inputs is a map of the form
The integer is the pre-activation. The effective fan-in of is .
Example 2.2. AND , OR , NAND , NOT , and the identity on . More generally is the conjunction of the literals ( ) and ( ), and is their disjunction, so a negated literal costs no unit. Ternary threshold units therefore form a functionally complete basis. A function that is not linearly separable, such as parity, needs depth at least two [16]; the exclusive or is XOR , of depth two.
Definition 2.3 (Layered ternary threshold map). Let be positive integers with , and for let and . The layered ternary threshold map (LTTM) with these parameters is , where . Its depth is , its size is , the number of its rows, and its dynamics is on .
Every LTTM is a finite automaton with states, and every orbit is eventually periodic; on threshold networks as finite automata see [17, 18].
2.2 Netlists and levelization
A network is easier to design unit by unit than layer by layer. A netlist lists its units in an order in which every unit comes after the units it reads, and levelization turns the list into layers.
Definition 2.4 (Netlist). A ternary threshold netlist consists of a finite set I of input signals and a finite sequence V of units. Each unit has a bias in Z and a list of distinct predecessors, each carrying a weight in ; a predecessor is an input signal or a unit that precedes v in the sequence. An input that a unit weights by 0 is not one of its predecessors. The depth of an input signal is 0, and the depth of a unit is one more than the largest depth of its predecessors, or 1 if it has none. A clocked netlist on n state bits is a netlist with in which each is assigned the unit or input signal that computes its next value.
Lemma 2.5 (Levelization). Let be a clocked netlist on state bits whose units have maximal depth . There is an LTTM of depth on such that is the next state computed by for every . Every unit of that contributes to a next-state value occurs in with its weights and bias unchanged, exactly once if its depth is less than and once for each state bit whose next value it is if its depth is ; all other units of are identity units .
Proof. Remove the units that no next-state value depends on, and place each unit v in layer depth(v) and the state bits in layer 0. For a signal u, let be the largest layer of a unit that reads it, a signal assigned as the next value of a state bit counting as read at layer . In every layer with depth( ) < < , place an identity unit that reads the copy of u in layer . A unit v then finds each predecessor u in layer depth( ) - 1, since depth( ) depth( ) - 1 < . Layer d holds one row for each state coordinate, in order: the unit assigned to it if that unit has depth d, and otherwise the copy of the assigned signal. Since on , induction on shows that each row of layer outputs the value of its signal of N.
3 Weights as state: the ring machine
This section gives a fixed network whose state holds threshold networks as data. The state is a window of cells, in which a stored network keeps its state, and a ring of banks and tapes; a bank lists the units of a stored network as records. Each step evaluates the record under the slot head of the active bank on the window and moves that head on by one slot. Three more heads read one tape and write the next bank and the next tape, and this is how one stored network builds another (Figure 1). Every head moves by absolute positions, so a bank or a tape need not have the size of what it holds.
Definition 3.1 (The ring machine). Let , and , and put . A state of the machine consists of a window , a bank index , banks of slots of bits, each with a slot head and a bit head, and tapes of cells, each with a head. Indices of banks and tapes are taken modulo : bank is active and bank idle, tape is the read tape and tape the copy tape; the arm is the bit of the idle bank under its bit head, in the slot under its slot head.
Window cell 0 is a sink, which reads 0 and keeps nothing written to it. Cells 1, 2 and 3 are not stored: they name the cell under the read head, under the arm and under the copy head. Cells 4 to 12 are requests: AR, AA and AC move the read head, the arm and the copy head on by one cell, RR, RA and RC return them to cell 0, CB and CT clear the idle bank and the copy tape, and HO hands over.
A record is a word : two weight codes of two bits, read as for 01, for 10 and otherwise, a bias in two's complement on four bits, and three window addresses of bits, most significant first. One step reads the record under the slot head of the active bank and the values of the cells it names, and
(i) computes ;
| window w | 0 | 1 | 2 | 3 | 4-12 | |||
|---|---|---|---|---|---|---|---|---|
| sink | rd | arm | cpy | AR AA AC RR RA RC CB CT HO | cells 13,...,2^α - 1 | |||
| v = H(w0xa0 + w1xa1 + θ) into cell ao | ||||||||
| active bank Qκ | record under the slot head | next slot | S slots of β bits | |||||
| read tape Dκ | rd | moved by AR, RR | ||||||
| idle bank Qκ+1 | arm | moved by AA, RA, CB | ||||||
| copy tape Dκ+1 | cpy | moved by AC, RC, CT | ||||||
Figure 1: The ring machine at bank index . A step evaluates the record under the slot head of the active bank on the cells and , writes the result into cell and moves the slot head to the next slot. Window cells 1, 2 and 3 are the cells under the read head, the arm and the copy head, shaded; the requests in cells 4 to 12 move these heads on or return them to cell 0, clear the idle bank and the copy tape, and hand over to bank . The other banks and tapes are left as they are.
(ii) writes into window cell if , under the arm if , under the copy head if , and nowhere if ;
(iii) returns the read head to cell 0 if RR holds 1 after the write, and otherwise moves it on by one cell if AR does; clears the idle bank if CB holds 1, and then returns the arm to cell 0 if RA does and otherwise moves it on by one bit if AA does; acts on the copy tape likewise with CT, RC and AC;
(iv) moves the slot head of the active bank on by one slot, and sets if HO holds 1;
(v) clears the requests.
Every head moves cyclically, from the last slot or cell to the first. We write for , whose window has 64 cells and whose records have 26 bits.
A pass is steps: the slot head of the active bank comes back to the slot it started from, so a pass evaluates the records of the bank once each, in order, each on the values the records before it left. The empty record, of zeros, reads the sink with weight 0 and writes the sink, so it only moves the slot head on. An image is the sequence of the bits of a list of records, and a bank holds an image ready when it holds it from slot 0, followed by empty slots, with its slot head at slot 0. A bank that holds an image of records ready evaluates them in steps and then idles for . The bank index is read at the start of a step, so a record that sets HO passes control to the next bank from the next step on, at that bank's current slot.
Theorem 3.2 (The machine as a ternary threshold network). Let , and , and put and . There is a clocked ternary threshold netlist of depth 19, every weight , on state bits: the stored window cells , the bank index in one-hot form, the bits of each bank with its slot and bit heads in one-hot form, and the cells of each tape with its head in one-hot form. For every state of , the next state that computes from the bits of is the encoding of the next state of .
Proof. The netlist has thirty-two blocks. For each bank, conjunctions of the slot head's lines with the bits select the record under the slot head, and a disjunction over the banks weighted by the lines of the bank index selects the record of the active bank. Conjunctions of head lines with cells give the cell under each head, and the lines of the bank index pick out the read tape, the idle bank and the copy tape. Three blocks of W units decode , and , the line of address j being the conjunction of the address bits that are 1 in j and the negations of those that are 0 (Example 2.2). A disjunction of the conjunctions of each decode line with the cell it names reads and , cells 1 to 3 through the selected heads.
From the weight codes, units for and give . Five units test for and five test on the four bits of , and is the disjunction of the five conjunctions, since exactly when some , namely , has and . A multiplexer on the decode line of writes into each stored window cell, and each request takes as its next value a unit that never fires. A bank bit is the multiplexer of and its old value on the conjunction of the bank being idle, the decode line of 2 and the bit's slot and bit lines, cleared when CB holds 1. A head line moves to the next line when its head advances, to the first when it returns, and stays otherwise; the slot head of the active bank always advances, and that of the idle bank advances when the arm advances from the last bit of a slot. The tapes are alike. The depth of a unit depends only on its block, the requests being decided at depth 14 and the slot head lines at depth 19.
Appendix B counts the units and edges of and the rows of its levelization.
3.1 Netlists in the ring
A stored network runs in the ring machine as a netlist of units with at most two predecessors, one record for each unit. The next two lemmas say when one pass over a bank evaluates such a netlist, and how every ternary unit becomes such units.
Lemma 3.3 (Stored netlists). If the active bank holds records followed by empty slots and no record but the last sets HO, a pass evaluates the records in order, each on the window and the cells under the heads as the records before it left them. Let a clocked netlist have units of at most two predecessors and its state bits in window cells, and list its units as records in an order in which every unit follows its predecessors. Let each record write a cell that holds the unit's value until the last record that reads it, and let the record of the next value of each state bit write that bit after every record that reads it. Then one pass over these records evaluates the netlist.
Proof. The slot head of the active bank moves on by one slot per step, the bank index, read at the start of a step, selects the bank, and the empty slots change nothing. Induction over the records shows that each reads the values of its predecessors on the current state, a state bit being unchanged until the record of its next value, which follows its last reader.
Lemma 3.3 is the rank-ordered schedule of gate-level simulation engines [19] and the fixed-order sequential schedule of automata networks [20].
Lemma 3.4 (Compilation). A ternary threshold unit is 1 exactly when at least of its literals ( ) and ( ) are true. It is a constant for and for , a disjunction for and a conjunction for , each a copy of the literal when and a chain of two-input units otherwise, and for the function , which is 1 exactly when at least of its arguments are, satisfies
Every unit so obtained is a record.
Proof. The pre-activation is the number of true literals minus . The unit with is the conjunction of any two literals and with their disjunction, a copy is or , and the constants are the disjunction and the conjunction of a literal and its negation; a chain conjoins or disjoins each further literal with the result so far. The recursion holds because at least of are true exactly when at least of are, or is and at least of the others are, and its base cases are the chains and the constants.
Example 3.5 (Exclusive or). Let the active bank of , whose window has 64 cells and whose records have 26 bits, hold the three records
written , ready, so that its fourth slot is empty. The first record writes the disjunction of cells 13 and 14 into cell 15, the second their negated conjunction into cell 16, and the third the conjunction of cells 15 and 16 into cell 13. From a window with , the four steps of a pass write 1 into cell 15, 0 into cell 16 and 0 into cell 13, and move the slot head from the empty slot back to slot 0. From every window the pass replaces by and keeps : this is Lemma 3.3 for the clocked netlist on the state bits and whose next values are and , its units compiled into records as Example 2.2 and Lemma 3.4 prescribe. A record that set HO in the fourth slot would pass control to the other bank at the end of the pass, and the other bank would then run whatever it holds.
4 A self-reproducing constructor
This section gives the main example, the organism: a stored network of 143 records that carries out von Neumann's cycle in , the ring machine with 64 window cells. It reads the description on the read tape twice. In construct mode it decodes the description into the next bank, in copy mode it copies the description onto the next tape, and then it hands control to what it built. Descriptions are written in a code of its own, in which a two-input gate costs four bits besides its addresses.
Definition 4.1 (The description code). A gate is a record that computes the conjunction or the disjunction of two literals , each a window cell or its negation, or a copy of one literal. Its weights are by the polarities of the literals, with bias for a conjunction and for a disjunction; a copy has weights and bias . Its codon is the four bits , with equal to 00, 01 and 10 for the three kinds and for a copy, and it determines the first eight bits of the record, its weight codes and its bias. The codons 1100, 1101 and 1110 are escapes and 1111 is end. A description of an image X is a word that the following reading carries to X: from a gate codon it emits the gate's eight bits and the next 18 bits, from an escape the next 26 bits, and at the end codon it stops, having read the whole word. The description code(X) of an image lists, record by record, the codon and the 18 address bits of each record whose first eight bits are those of a gate, and the escape 1100 followed by the 26 bits of every other record, and ends with 1111.
For an image X of n records of which e are not gates, code(X) has bits. Every unit that Lemma 3.4 produces is a gate.
Lemma 4.2 (Completeness of the code). For every image X of whole records, code(X) is a description of X.

Figure 2: The decoder of the organism, one step per pass, z counting down the bits of a phase: a codon in CODON, the eight bits a gate's codon determines or an escaped record's first eight in GATE, the address bits in ADDR. Construct mode writes each record under the arm, and copy mode copies every bit read under the copy head.
Proof. By induction on the number of records. The reading of a gate’s codon and address bits gives back the record, since the codon determines the first eight bits; the reading of an escape and the record’s 26 bits gives them back unchanged; and the end codon closes the induction.
Construction 4.3 (The organism). The organism is an image of 143 records, 3718 bits, listed in Appendix C. It uses 45 window cells: the sink, the three head cells, the nine requests, fourteen cells 13 to 26 that hold the state of a decoder, and eighteen temporaries in cells 27 to 44, each written in a pass before it is read in that pass. The decoder's state is a mode , construct or copy, in cell 13; a phase, one cell each from 14 to 17: START, CODON for a codon, GATE for the first eight bits of a record and ADDR for its addresses; a codon register , in cell ; and a counter , in cell . One pass carries out one step of the decoder. In phases CODON, GATE and ADDR, while , the step decrements and keeps the phase; at it enters the phase given below. With rd the bit under the read head, the step acts as follows.
(o) START: the read head, the arm and the copy head return to cell 0, the idle bank and the copy tape are cleared, and the decoder enters CODON with z = 3 in construct mode.
(i) CODON: rd is consumed and shifted into the codon register, and in copy mode it is also copied under the copy head. At z = 0 the codon is complete. At the end codon in construct mode, the read head returns to cell 0 and the decoder enters CODON again, with z = 3, in copy mode. At the end codon in copy mode, the arm and the copy head return to cell 0, the decoder enters START, and the pass hands over in its last record. At a gate codon in copy mode the decoder enters ADDR with z = 17, and in every other case GATE with z = 7.
(ii) GATE: in construct mode, bit 7 - z of the gate's eight bits is written under the arm for a gate codon, and the consumed bit rd at an escape; in copy mode, at an escape, rd is consumed and copied. At z = 0 the decoder enters ADDR with z = 17.
(iii) ADDR: rd is consumed and written under the arm in construct mode, and under the copy head in copy mode. At z = 0 the decoder enters CODON with z = 3.
A consumed bit moves the read head on, and a bit written under the arm or the copy head moves that head on, by the requests the pass sets.
A record is thus built in 30 passes, 4 in CODON, 8 in GATE and 18 in ADDR, and copied in one pass per bit of its description (Figure 2).
Proposition 4.4 (One pass). Let a state of , , hold ready in its active bank, and in the window clear requests and a decoder state whose counter lies in the range of its phase, at most 31, 3, 7 or 17 in START, CODON, GATE or ADDR. The first 143 steps carry out the decoder's step of Construction 4.3 on the read tape, the idle bank and the copy tape at their heads, and leave in the window clear requests and the next decoder state, whose counter again lies in the range of its phase, whatever the other window cells hold. They hand over at the 143rd step exactly when the step ends copy mode; otherwise the remaining S - 143 steps bring the slot head back to slot 0 and change nothing else.
Proof. A pass of is refined by a pass of an abstract machine that sees, of each head, the cell under it and what the pass does to it: the value it writes there, the cells it moves, whether it returns to cell 0 and whether its bank or tape is cleared. Every temporary is written before it is read, so the abstract pass from a decoder state does not depend on what the temporaries hold. The proposition is therefore a statement about the 1984 decoder states of its hypothesis and the eight values of the cells under the three heads, and evaluating the abstract pass in each of these 15,872 cases shows that it carries out the decoder's step, acts on each head as the step prescribes, and hands over only in its last record. An empty slot changes nothing but the slot head.
A state of starts the organism on a word when its active bank holds ready, its read tape holds from cell 0, and its window holds clear requests and the decoder in START; the other banks, tapes and window cells may hold anything.
Theorem 4.5 (Universal construction by the organism). Let and , let X be an image of records, and let be a description of X with . From a state that starts the organism on , after passes, steps:
(i) the next bank holds X ready, with its bit head at 0, and the next tape holds from cell 0, followed by zeros, with its head at 0;
(ii) the active bank holds and the read tape , the window holds the decoder in START with and the codon register 1111 in construct mode, and no other bank or tape has changed;
(iii) the bank index has moved to the next bank, at the last step.
From then on evaluates the records of X.
Proof. By Proposition 4.4 it suffices to follow the decoder over whole tapes. The pass of START clears the next bank and the next tape and returns every head to cell 0. In construct mode each record of X costs 30 passes and is written under the arm, and the end codon costs 4 passes, the last returning the read head to cell 0 and switching to copy mode; so the arm has written the 26n bits of X in order from bit 0, moving on once per bit. In copy mode every pass consumes one bit and copies it, so after passes the copy tape holds from cell 0; the last pass, on the end codon, returns the arm and the copy head to cell 0 and hands over. Only that pass hands over, so every pass before it has S steps and it has 143.
With Lemma 4.2, the organism therefore builds in every image of at most S records whose description fits the tape, whatever its size.
Theorem 4.6 (Self-reproduction of the organism). Let , and , and put . Let start the organism on code( ), followed by zeros, with the decoder in the state in which a generation ends, START with and the codon register 1111 in construct mode. For every :
(i) after gT steps the bank index has moved g banks on, and for every the bank that was active a generations before holds and its tape code( ), so that banks hold the organism; the banks and tapes not yet reached are those of ;
(ii) for , the state after steps equals the state after gT steps, the window included;
(iii) the network started from the bits of holds the bits of these states at the same steps, and its orbit is periodic from the K-th generation on, with period KT.
Proof. The first generation is Theorem 4.5 with and , a description of by Lemma 4.2, without escapes. After it the next bank holds and the next tape followed by zeros, and the window holds the decoder in START with the register 1111, so the hypothesis holds again for the next bank. Induction over the generations, keeping for each bank and tape the number of generations since it was active, gives the state after every generation bank by bank and tape by tape. After K generations every bank and tape has been rebuilt, and from then on they depend only on the bank index. In the window, the cells no record writes keep their values, and every other cell from 4 on ends each generation as a function of the decoder's state at the pass that hands over. That state is the same in every generation, since after the pass of START the decoder sees the same tapes. So for the state after generation equals the state after generation g, and Theorem 3.2 carries the statement to the network.
The description of has 3150 bits, against 3718 for the image: a gate is named by four bits, and the organism writes its eight bits itself.
5 A universal computer: the SUBLEQ host
The organism builds and copies stored networks and computes nothing else. The next three sections put a universal computer in its place: a ternary network that executes SUBLEQ, a computer with a single instruction, with memory-mapped tape and output devices. This section builds the network, one member for each word width A; Section 6 programs it, and Section 7 stores it in the ring machine, where it reproduces as the organism does.
5.1 The machine and its devices
A network reads and writes bytes through a tape transducer: a device outside the network that acts on designated coordinates of the state between steps.
Definition 5.1 (Tape transducer). A tape transducer consists of an LTTM on and disjoint designated coordinate sets: an input register and an output register of the same width , and single bits (read request), (rewind request), (write request), (end-of-tape status) and . An environment state is a triple with tape , head position and output word . One step maps to as follows. Let and initialize .
(i) If , then is followed by the low eight bits of , and ; otherwise .
(ii) If and , then holds in its low eight bits and copies of its sign bit above them, , and . If and , then and . If , then .
(iii) If , then .
(iv) Finally .
The transducer halts at the first step with , that step included. If it halts from with final output word , we write .
Definition 5.2 (SUBLEQ). Let . The memory is with arithmetic modulo , and the program counter is . One step reads , and and sets . It then sets if the new value of , read in two's complement on bits, is at most 0, and otherwise [13]. Indices are taken modulo , and the machine halts when . For the registers and the request and status bits of Definition 5.1 are memory words at the seven top addresses, in the order of Table 1; a request fires on the value 1, a read loads a tape byte into with its sign bit copied into the bits above the eighth, and an emission appends the low byte of . For a word does not hold a byte, and only the step is considered. We write for this machine. The host is : 256 words of one byte.
The bit is a state bit of the network that latches for the state the step produces, so a halted state is a fixed point, and the network treats the device words as ordinary memory.
| Address | Symbol | Role | Effect |
|---|---|---|---|
| 0xF9 | write request | value 1 emits and clears it | |
| 0xFA | end-of-tape status | set by a read at , cleared by a read at | |
| 0xFB | rewind request | value 1 sets | |
| 0xFC | read request | value 1 loads and advances | |
| 0xFD | input register | written by the device | |
| 0xFE | output register | written by the program, cleared on emit | |
| 0xFF | halt | the machine halts when |
Table 1: The memory-mapped device cells of the host, .
5.2 Cells
A cell below is a fixed small netlist; value bits are numbered from the least significant. The cells are a subtractor, the branch and the memory. The branch needs two levels of ternary units because the weights are ternary (Lemma 5.4 and Remark 5.5), and a read needs two levels of threshold units whatever the weights (Lemma 5.7).
Lemma 5.3 (Carry-lookahead subtractor). Let have value bits . Put for , and for
and for . Let and for . Then , every unit is ternary, and the cell has depth five over and , whatever .
Proof. , where complements the bits of . The unit is , the conjunction of , and , and that of , so unrolls the recursion , , of the carry into position of .
The sum bit is the parity of , and is 1 exactly when this sum is at least , so reads the parity; the carry-in being , . The depths are one for the , two for the terms, three for the carries, four for the and five for the sum bits.
Lemma 5.4 (Branch unit). For in two's complement with sign bit , let . Then if and only if , and the branch condition equals .
Proof. holds exactly when every . The value is at most 0 exactly when or , so .
Remark 5.5 (Ternary weights cost one level at the branch). The branch predicate on bits in two's complement, exactly when , is the single unit with integer weights, but no ternary unit computes it when . If with did, then would give , each unit vector with would give and then , and the vector of ones, whose value is negative, would force . So the cell of Lemma 5.4 has the least ternary depth.
Lemma 5.6 (Address decoder and memory). For with bits let
Then if and only if . Writing for bit of memory word , the read multiplexer returns bit of mem[ ], and for a data word and a halt bit the cell
leaves every word unchanged when and otherwise writes into mem[ ] and leaves the other words unchanged.
Proof. The sum equals , which is at most popcount(j), with equality exactly when . The rest follows from the definitions of AND and OR, the negated literals being carried by weights -1, and from the fact that exactly one sel_j is 1.
Lemma 5.7 (A read needs two levels). No threshold unit, whatever its real weights, computes the selection for and , , or computes on the inputs where is one-hot. So the read multiplexer, two levels deep over the decode lines, has the least possible depth.
Proof. Fixing inputs of a threshold unit leaves a threshold unit, so it suffices to fix all but , and , with the other address bits 0. The selection is 1 at and and 0 at and . If computed it, summing the inequalities at the two points where it is 1 would give , and at the two points where it is 0 the strict opposite, a contradiction. The one-hot case is the same argument on at and against and .
5.3 The host family
Construction 5.8 (The host family). For the netlist consists of the blocks of Table 2, in that order, each unit after its predecessors. Its state is, in this order, the counter bits, a halt bit and the memory bits word by word, the counter and each word most significant bit first, so . For the counter occupies coordinates 0 to 7, the halt bit 8, and bit of word , the most significant, coordinate . A step is computed in four parts.
(i) The decode lines of fetch the three operands by reindexing, , and give each bit of as the disjunction of the lines for which that bit of is 1.
(ii) The decode lines of and read and and give the write enables.
(iii) Lemma 5.3 gives . The branch is the single unit , where is the conjunction of the bitwise equivalences of and , since exactly when its sign bit is 1 or .
(iv) With , the next counter bit is and the next halt bit is . The next memory is the write cell of Lemma 5.6 with address and data .
The host is .
| Block | Units | Layer | Computes |
| 1 | decode lines of | ||
| 1 | |||
| 2 | |||
| 2 | bit of | ||
| 3 | the operands | ||
| 4 | decode lines of and | ||
| 4 | |||
| 5 | write enables | ||
| 5 | read conjunctions | ||
| 6 | |||
| 6 | |||
| subtractor | 7–11 | (Lemma 5.3) | |
| equality | 7–9 | ||
| LEQ | 11 | ||
| 12–13 | next counter | ||
| 12–13 | next halt bit | ||
| 12–13 | next memory (9–10 for ) |
Table 2: The blocks of in the order of the netlist. The layer is the depth of the block's units.
Proposition 5.9 (Constant-depth host). For every , one step of the netlist , from every state, is one step of SUBLEQ with the halt latch. Its weights are ternary, its biases are integers in , and its step has depth 13. For , with the device on its seven top words, it realizes the transducer of Definitions 5.1 and 5.2. The host has 17,598 units.
Proof. Each block computes what Table 2 states: the decoders, the reads and the write by Lemma 5.6, the subtraction by Lemma 5.3, and the rest by the identities of Construction 5.8.
The three terms of the next counter are mutually exclusive. The next counter is exactly when one of the two branch cases leads there or the machine is already halted, and exactly when . When the halt bit is 1, the next counter is , the write enables are 0 and the halt bit stays 1, so a halted state is a fixed point. The layers follow from those of the predecessors, and the longest paths end at the next counter, the next halt bit and the next memory in layer 13, whatever .
Appendix B gives the numbers of units, edges and parameters of for every , the sizes of , and the length of its serialization.
Remark 5.10 (Depth 11). Writing every fetch conjunction , every read conjunction , and every write enable as a single unit that reads the bits of its address directly, of fan-in , removes the decode lines of a and b and one level each from the fetch and from the operand reads. The folded netlist computes the step of SUBLEQ from every state with depth 11 for every , each of its units computing the value of the unit of in its place. For it has 17,086 units and 120,508 edges, against 17,598 and 51,132 for .
6 Programs for the host
This section programs the host. Section 6.1 says what it means for the host, with a memory image and a tape, to reproduce itself. A program P of 21 instructions decodes a run-length recipe into the byte string it describes, which makes the host a universal constructor of byte strings (Section 6.2). A program of 27 instructions also copies the recipe, so that the host emits a serialization of itself from which it is rebuilt (Section 6.3). Both programs are stated for and run on at every word width from 8 on (Remark 6.14).
6.1 Instances and reproduction
An instance pairs a network with an initial memory and a tape, and it reproduces itself when its output rebuilds it. The serialization of a clocked netlist N is a byte string from which N, the order of its units included, is recovered; Appendix A specifies it. Netlists with the same serialization differ only by renaming of units, and identifying such netlists, is injective.
Definition 6.1 (Instances, framing, instantiation). Let be a clocked netlist realizing the SUB-LEQ transducer with . For let , where is the eight-byte little-endian encoding of . An instance is a triple with initial memory image and tape . Its initial state has memory contents , program counter 0 and all other coordinates 0, the counter and every memory byte stored most significant bit first at the coordinates the state layout names. Define
and let inst be the partial map inst( ) = , defined when lies in the image of and .
Definition 6.2 (Self-description and self-reproduction). An instance is self-describing if it halts and . It is exactly self-reproducing if it halts and .
Lemma 6.3. If is exactly self-reproducing, then . Consequently the sequence , is constant, and every is exactly self-reproducing.
Proof. The length fields make the decomposition unique, and is injective, so inst ser is the identity on instances. The second statement follows by induction on .
The maps inst and Lev, together with the device of Definition 5.1, form the instantiation map: the network emits a description, and inst, and Lev turn it into the next running network. Section 7 removes this map: held as records in the ring machine, the host carries out the same step by the dynamics, as the organism does.
6.2 Universal construction
A universal constructor emits any prescribed object from a description of it. Here the objects are byte strings and the descriptions are run-length recipes. Every string has a recipe barely longer than itself, the encoder used later attains that bound, and the program P turns any recipe into the string it describes. For a byte x we write .
Definition 6.4 (Recipe language). The set of recipes is generated by the grammar
where a literal token LIT is a byte with followed by bytes, and a repeat token REP is a byte with followed by one byte. The tag 128 occurs in no recipe. The decoding map is defined token by token by
and extended by concatenation. Every payload byte is stored negated, so that a single subtraction from a zero register recovers it.
Lemma 6.5 (Completeness of the recipe language). For every there is with and .
Proof. Cut into blocks of length 127, the last possibly shorter, and let be the literal tokens of the blocks followed by END. Each block contributes one tag byte and its own length, so , and because is an involution.
Proposition 6.6 (Optimality of the bound). If has no two equal adjacent bytes, every with satisfies .
Proof. Write END. The tokens cover consecutive blocks of , which has no two equal adjacent bytes, so a repeat token covers one byte with two and a literal token at most 127 with one more: and .
Lemma 6.7 (The encoder). Let describe(f) scan f from its first position. At position i, let be the length of the run of bytes equal to that starts at i, capped at 127.
(i) If , emit the repeat token and move to .
(ii) Otherwise let be the least of , and the first position after at which four equal bytes begin; emit the literal token covering and move to .
After the last byte, emit END. Then and for every , with equality exactly when contains no four equal consecutive bytes.
Proof. The tokens partition and each decodes to the bytes it covers, so . Of its literal and repeat tokens, a literal token occupies one byte more than it covers and a repeat token two bytes for at least four, so . No run of four equal bytes begins inside a literal token, since one would have been emitted as a repeat token and a literal token ends where such a run begins; so exactly when has no four equal consecutive bytes, and then every literal token but the last covers 127 bytes and the bound holds with equality. Otherwise let literal tokens cover 127 bytes. A literal token of fewer bytes that is not the last ends where a run of four begins, so a repeat token follows it, and ; the full literal tokens and the repeat tokens cover disjoint bytes, so . Hence , and the bound is strict.
Construction 6.8 (The constructor ). Let , , , and be memory cells holding initially 0, 1, 0, 0 and 255. The program consists of the 21 instructions of Table 3, occupying the bytes 0x00 to 0x3E. The memory image contains and these constants and is zero elsewhere, apart from the cell EOK = 0xF5 holding 1, which never reads.
Since the device clears the request bits at the end of every step, a request cell holds 0 on entry, and the instruction NEG1 assigns mem[c] 0 - 255 = 1 and, the result being positive, passes control to the next instruction: one instruction sets one request.
Theorem 6.9 (Universal construction). For every the instance halts and ; by Lemma 6.5, every byte string is the output of an instance with host and memory image . Writing and for the numbers of literal and repeat tokens of , and and for the numbers of bytes each kind contributes to , the run takes exactly steps.
Proof. Write END, and let assert that control reaches 0x00 with the head at the first byte of and the output word , with Z, ONE, NEG1 and holding 0, 1, 255 and 0, all request bits 0 and the bytes of unmodified; holds at the start.
From , instructions 0 to 5 read the tag of , set T1 to and T2 to , and branch exactly when or . For a literal token, , the loop at 0x1B reads each payload byte , emits through and the write request, and counts T2 down to 0. For a repeat token, , T1 = 256 - is positive, and the loop at 0x2D reads once and emits while it counts T1 down. Both loops return to 0x00 with . At the end token T1 is 0, and at the tag 128 it is negative; both reach 0xFF, which halts with the output . Each token consumes a tape byte, so the run halts.
For the count, a literal token of length executes instructions 0 to 6, then passes of 9 to 12, all but the last also executing 13, and then 14: steps. A repeat token of run length executes 0 to 5, 7, 8 and 15, then passes of 16 to 18, all but the last also executing 19, and then 14: steps. The end token executes 0 to 5, 7 and 20: eight steps.
Corollary 6.10 (Self-description). For the instance is self-describing, and its run takes 793,709 steps.
Proof. Theorem 6.9 with by Lemma 6.7; Appendix B gives the census of .
The memory image and the recipe do not occur in the output, so this instance describes itself in the sense of the Turing machines of Lee and Thatcher that print their own description [21, 22]. The next program closes the gap.
6.3 Self-reproduction
Von Neumann’s self-reproducing automaton uses its description twice: once as instructions for building, and once as data to be copied. The program does the same on the host. Phase (A) decodes a recipe into the string it describes, phase (R) rewinds the tape, and phase (B) copies the recipe itself. Run on a recipe for the host’s own serialization and memory image, it emits everything from which the instance is rebuilt.
Construction 6.11. The program consists of three phases.
(A) Construction. The twenty instructions of the decoding loop of P, unchanged, except that on reading the end token control passes to phase (R) instead of halting.
(R) Rewind. One instruction NEG1 .
(B) Copying. Six instructions: set the read request; subtract from EOK, halting when the result is ; assign mem[Z] ; assign mem[R_{\text{out}}] ; set the write request; and restore mem[Z] while jumping back to the head of the phase.
It has 27 instructions, occupying 0x00 to 0x50 (Table 3). Let hold and the constants mem[ONE] = 1, mem[NEG1] = 255 and mem[EOK] = 1, and be zero elsewhere, and let
Theorem 6.12 (Exact self-reproduction). For every recipe the instance halts and ; its run reads no byte at before it requests the rewind, and requests it at . In particular is exactly self-reproducing, , and the generations starting from are constant.
Proof. Phase (A) consists of the instructions of with the same memory layout, and they do not address the cells EOK and , so the proof of Theorem 6.9 applies. Every token of is consumed in order, and no byte is read after the end token. When the end token is read, the output word is , the head is at , , , , and all request bits are 0. Phase (R) assigns , and the device sets .
Let assert that control reaches the head of phase (B) with head position and output word , with , , and all request bits . holds. Assume ; the first instruction requests a read. If , the device loads , clears and advances the head. The second instruction then leaves , the third and fourth assign and , the fifth emits , and the sixth restores and branches back, so holds. If , the device sets , and the second instruction assigns and halts with the output word .
For , by Lemma 6.7, so the output is ; the last statement is Lemma 6.3.
Proposition 6.13 (Running time of ). For with the census of Theorem 6.9, the instance halts after
steps. For the run takes 1,664,939 steps.
| k | addr | a | b | c | effect |
|---|---|---|---|---|---|
| 0 | 0x00 | T2 | T2 | 0x03 | mem[T2] ← 0 |
| 1 | 0x03 | T1 | T1 | 0x06 | mem[T1] ← 0 |
| 2 | 0x06 | NEG1 | 0x09 | read request | |
| 3 | 0x09 | T1 | 0x0C | mem[T1] ← | |
| 4 | 0x0C | T1 | T2 | 0x0F | mem[T2] ← |
| 5 | 0x0F | Z | T2 | 0x15 | branch if or |
| 6 | 0x12 | Z | Z | 0x1B | goto LIT |
| 7 | 0x15 | Z | T1 | 0x3C | branch to END if |
| 8 | 0x18 | Z | Z | 0x2D | goto REP |
| 9 | 0x1B | NEG1 | 0x1E | LIT: read request | |
| 10 | 0x1E | 0x21 | mem[] ← | ||
| 11 | 0x21 | NEG1 | 0x24 | write request | |
| 12 | 0x24 | ONE | T2 | 0x2A | mem[T2] -= 1; done → 14 |
| 13 | 0x27 | Z | Z | 0x1B | next literal byte |
| 14 | 0x2A | Z | Z | 0x00 | goto 0 |
| 15 | 0x2D | NEG1 | 0x30 | REP: read request | |
| 16 | 0x30 | 0x33 | mem[] ← | ||
| 17 | 0x33 | NEG1 | 0x36 | write request | |
| 18 | 0x36 | ONE | T1 | 0x2A | mem[T1] -= 1; done → 14 |
| 19 | 0x39 | Z | Z | 0x30 | emit again |
| 20 (P) | 0x3C | Z | Z | 0xFF | END: halt |
| 20 (P*) | 0x3C | NEG1 | 0x3F | R: rewind request | |
| 21 | 0x3F | NEG1 | 0x42 | B: read request | |
| 22 | 0x42 | EOK | 0xFF | mem[EOK] ← 1 - ; halt if ≤ 0 | |
| 23 | 0x45 | Z | 0x48 | mem[Z] ← | |
| 24 | 0x48 | Z | 0x4B | mem[] ← x | |
| 25 | 0x4B | NEG1 | 0x4E | write request | |
| 26 | 0x4E | Z | Z | 0x3F | mem[Z] ← 0; goto B |
Table 3: The constructor of Construction 6.8, instructions 0 to 20 at 0x00-0x3E, and the self-reproducing program of Construction 6.11, instructions 0 to 19 of followed by 20 to 26 at 0x3C-0x50. An instruction assigns mem[b] ← mem[b] - mem[a] and branches to when the result is at most 0; is the tape byte just read.
Proof. Phase (A) is the decoding loop of with its halt instruction replaced by the rewind. In phase (B) each of the positions executes the six instructions 21 to 26 of Table 3, and the last pass executes 21 and 22. The census of is in Appendix B.
Remark 6.14 (Wider words). For let and hold and in words, the cells 0xF0 to 0xFF and the addresses naming them moved to the top sixteen words, with mem[ONE] = mem[EOK] = 1 and mem[NEG1] = , so that and . Theorems 6.9 and 6.12 and Proposition 6.13 hold for , and with the same proofs: a byte read with its sign bit copied has the same value in two's complement on bits as on eight, and the low byte of is again or , since 256 divides . On every recipe the run of reads no byte at the end of the tape before it requests the rewind, and requests the rewind once, at the end of the tape.
7 The host reproduces itself by the dynamics
Inside the ring machine, the instantiation step of Section 6.1 is a write into the next bank followed by a hand-over. This section stores the host, at every word width from 8 on, as a network of records in a bank of a ring machine whose window holds its state bits. A device compiled into the same records writes the bytes the host emits under the arm until the tape is rewound, and under the copy head after it. Run on a recipe for its own records, then writes the host into the next bank, copies the recipe onto the next tape and hands control to the copy (Figure 3), as the organism does with its own code. The proofs reuse those of Section 6: a pass of the stored host is one step of the host followed by a device that agrees with the tape transducer on every run of .
Construction 7.1 (The stored host). Let and . The window holds, after the thirteen cells of Definition 3.1, a cell booted at 13, a counter cnt of w bits from 14 on, least significant first, a cell dest, a limit lim of w bits, the state bits of in the order of Construction 5.8, a cell for each unit of , three cells for each level of the recursion of Lemma 3.4, and cells for the device. The stored host lists the following records.
(a) Startup, records: for each memory bit , booted if its value in is 1 and booted if it is 0; then booted for the bits of the counter, the halt bit and the bits of cnt, lim and dest; then five records copying booted into RR, CB, RA, CT and RC; then booted 1.
(b) Step: the units of in the order of the netlist, each compiled by Lemma 3.4 into its own cell, which also accumulates its chain; the unit of the next value of a state bit writes that bit instead, with its last record. A unit compiled by the recursion holds , and the conjunction of each level in the three cells of that level.
(c) Device, records: the device of Definition 7.2 on the state that (b) leaves.
(d) Hand-over: the fewest empty records, at most seven, that make the image a whole number of bytes; then booted ← booted ∧ ¬h, where h is the halt bit, and three records copying h into RA, RC and HO, the last record.
The window is the least that holds these cells. The stored host has 36,080 records and a window of cells, and is the recipe of its image, its records in order read as bytes most significant bit first; Appendix B gives the layout of its window and the lengths of its image and of .
Definition 7.2 (The device of the stored host). The device acts on the state y of after a step, the registers cnt, lim and dest, the read tape, the idle bank and the copy tape, each request firing on the value 1:
(i) if , the low eight bits of , most significant first, are written under the arm if dest = 0 and under the copy head if dest = 1, that head moving on by one cell after each, and is cleared;
(ii) if , then is set if dest = 1 and cnt = lim; otherwise the eight bits under the read head, the head moving on by one cell after each, are loaded into the low byte of most significant first, their sign bit is copied into the bits above them, is cleared and cnt is incremented;
(iii) if , then , and , and the read head returns to cell 0;
(iv) the request cells are cleared.

Figure 3: A generation of the stored host. Each pass evaluates the records of S and carries out one step of the host on the window. The first pass clears the next bank and the next tape and returns every head to cell 0. then reads twice: in phase (A) it decodes it, and the device writes the decoded bytes, the image of S, under the arm; in phase (B) it copies under the copy head. At the halt the hand-over passes control to the next bank, whose first pass loads and runs the copy.
Proposition 7.3 (One pass). Let a state of , hold , of G records, ready in its active bank, and in the window clear requests and a state x of . If booted = 0, one pass replaces x by , clears cnt, lim and dest, returns the read head, the arm and the copy head to cell 0 and clears the idle bank and the copy tape. It then carries out one step of followed by the device of Definition 7.2, and sets booted to the negation of the halt bit. If the halt bit is 1, it returns the arm and the copy head to cell 0 and hands over at its G-th step; otherwise its S steps bring the slot head back to slot 0. It leaves in the bank it started in and the requests clear, whatever the temporaries held.
Proof. By Lemma 3.3 the pass evaluates the blocks of Construction 7.1 in order. The startup records leave every cell unchanged when booted = 1. Otherwise they set each memory bit to its value in , clear the other cells they name, and set the five requests that return the heads and clear the idle bank and the copy tape. The step block is compiled by Lemma 3.4 in the order of the netlist, which Lemma 3.3 admits: every unit follows its predecessors, a unit that reads a state bit comes no later than the unit of its next value, which reads the bit before its last record writes it, and no unit reads the unit of a next value. So after the block the state bits hold the next state of .
The device records form the requests as conjunctions of literals, the bit as a conjunction of equivalences, and its conjunction with dest. They then carry out clauses (i) to (iv) of Definition 7.2 in order. Each bit of the low byte of is written under the arm or the copy head by a multiplexer, followed by the request that moves that head on, and is cleared on a write. Each bit under the read head is loaded into by a multiplexer on the condition of a read, followed by the request that moves the read head on, and the sign bit is copied above them. Then is set, cnt is incremented by carries formed before any of its bits changes, the rewind is carried out, its last record setting RR, and the requests of the host are cleared.
The hand-over records set booted and, at the halt, the requests that return the arm and the copy head and, last, HO. Every temporary is written in the pass before it is read and is not written after its last read, so a cell shared by temporaries holds, at each read, the value of the temporary read. No record writes the active bank, and the empty slots after the records change nothing but the slot head.
The theorems below use what Proposition 7.3 states and one more property of the image: every cell read by a record after the startup records, other than the cells under the heads and the sink, is written earlier in the pass. The image has this property for every and , and it has bytes, with . The proofs apply to every image with these two properties, so the step block may compile any netlist that computes the step of . A state of starts on a recipe when its active bank holds ready, its read tape holds from cell 0 followed by zeros, and its window holds booted = 0 and clear requests; the other banks, tapes and cells may hold anything.
Theorem 7.4 (Universal construction by the dynamics). Let and , let have G records, and let and . Let be a recipe with whose string has at most bytes, let , and let P be the number of steps that Proposition 6.13 gives for . From a state that starts on , after P passes, each of S steps but the last, which has G:
(i) the next bank holds the bits of X from slot 0, followed by zeros, with both its heads at 0, and the next tape holds from cell 0, followed by zeros, with its head at 0;
(ii) the active bank still holds and the read tape , the window holds booted = 0 and clear requests, and no other bank or tape has changed;
(iii) the bank index has moved to the next bank.
From then on evaluates the records of X.
Proof. By Proposition 7.3 the first pass loads , returns the three heads to cell 0, clears the next bank and the next tape, and carries out the first step of the host. Each later pass carries out one more step, with the device of Definition 7.2, up to the pass in which the halt bit is set; that pass clears booted, returns the arm and the copy head to cell 0 and hands over at its last step. By Theorem 6.12 and Remark 6.14, on with the device of Definition 5.1 halts after the steps of Proposition 6.13 with output , reads no byte at before it requests the rewind, and requests the rewind once, at .
On this run the two devices agree. As , cnt does not wrap. Before the rewind dest = 0, and each read loads the next byte of from the read tape and increments cnt, so cnt = h. At the rewind the read head returns to cell 0 and lim becomes . After it, each read loads the next byte while cnt < lim and sets at cnt = , as Definition 5.1 does at .
The bytes emitted before the rewind, , are written under the arm from bit 0 of the cleared bank, the arm moving on by one bit after each, and they fit since . Those emitted after it, , are written under the copy head from cell 0 of the cleared tape, and they fit since . The active bank and the read tape are not written, and no other bank or tape is addressed. From the next step on, the bank holding X is active, at slot 0.
By Lemma 6.5 every byte string has a recipe, so builds every image that fits a bank from a recipe that fits a tape, itself among them, whatever the size of the image.
Theorem 7.5 (Self-reproduction of the host by the dynamics). Let and , let have records, let be a recipe of its image with , let , and , and let start on with . A generation is steps, where is the number of steps that Proposition 6.13 gives for . For every :
(i) after generations , and the banks of the ring, counted back from bank , hold from slot 0 and their tapes from cell 0: the copies accumulate until every bank holds one;
(ii) from the K-th generation on, the state repeats every K generations;
(iii) the network started from the bits of holds the bits of these states at the same steps.
Proof. The first generation is Theorem 7.4 with X the image of and . After it the next bank holds from slot 0 with its heads at 0, the next tape from cell 0 followed by zeros, and the window booted = 0 and clear requests, so the state satisfies the hypothesis of Theorem 7.4 for the next bank. A generation changes only the active bank's slot head, the read tape's head, and the next bank and tape, which it rebuilds; induction over the generations gives and the copies.
For the period, let . Every bank has then been rebuilt and has been active since: the bank active a generations ago, , holds with its slot head where its hand-over pass left it, at slot , and its bit head at 0, and its tape holds followed by zeros with the head where the copying left it, after ; the active bank and its tape have all heads at 0. So the banks, the tapes and after generation g depend only on . In the window, the cells no record writes keep their values. The first pass of a generation loads the same state of the host and the same registers into every window with booted = 0, and the heads and the tapes they read are the same in every generation; every cell a record after the startup reads is written earlier in the pass, apart from the cells under the heads and the sink. So, pass by pass, the windows of any two generations agree on every cell the records read or write, and after a generation the window is the same in every generation. The state after generation therefore equals the state after generation g, and Theorem 3.2 carries the statement to the network.
For with , and , a generation is 2,653,813 passes, 95,762,842,100 applications of ; Appendix B gives the number of passes in closed form.
Theorem 7.6 (Every word width). For every there is a least for which the image of , of bytes, has ; then its recipe of literal tokens and describe are shorter than . The stored host builds every image that fits a bank and reproduces itself by the dynamics of as Theorems 7.4 and 7.5 state. It has records and a window of cells with , and in banks of slots, its number of records, a generation takes applications of .
Proof. The records of grow linearly in and its window logarithmically, so grows at most quadratically in while grows exponentially, and exists. The recipe of literal tokens of Lemma 6.5 has bytes, and describe gives no more by Lemma 6.7. The window holds the state bits, a cell for each of the units of and further cells, so ; then , , and Theorem 7.5 gives a generation of passes of steps. Appendix B gives , and the bounds in closed form.
8 Reproduction under noise
The reproductions of Sections 4 to 7 are exact because every pre-activation is an integer: a run rebuilds the weights bit for bit while no perturbation of a pre-activation reaches one half. This section asks how much noise a reproducing run tolerates. It proves this margin of one half, bounds the probability of leaving the orbit under random perturbations from the pre-activations the orbit visits, and compares the bounds with the host under noise (Section 8.1). It shows that replicating every unit multiplies the margin, which keeps a run exact under three models of noise, below a threshold in one of them (Section 8.2), and it gives the noise under which a generation of the stored host, which rebuilds the host's weights in the next bank, runs exactly (Section 8.3).
The probabilistic theorems are proved in Rocq on a probability space given by its properties (Appendix F), and they assume independent perturbations. Noise that is correlated between units or drifts over time is covered only by Theorem 8.2, Proposition 8.3 and Theorem 8.8(i), which hold for every perturbation below the margin, whatever its law. The union bounds, thresholds and redundancies are evaluated in Rocq; the profile and restoration bounds along particular orbits are computed by the artifact.
Let if and otherwise; on integer arguments and H agree. A layered integer threshold map is defined as in Definition 2.3 with ; the results of this section hold in that generality.
Definition 8.1 (Perturbed evaluation). Let be a layered integer threshold map with parameters and let . An -perturbed trajectory from is a sequence with and , where and each satisfies . The perturbations may depend on , , the current input, and the past.
For a transducer the device of Definition 5.1 acts on the perturbed trajectory as on the exact one, between the steps; it is a function of the state, so every statement of this section holds for the sequence of states a run visits as it holds for an orbit of F.
Theorem 8.2 (Integer margin). If , every -perturbed trajectory from satisfies for all . If some unit has pre-activation -1 along the orbit, a perturbation of at that unit changes its output, so the constant cannot be increased.
Proof. Suppose the input of layer at time equals the unperturbed input. Then . If then , and if then , so and the layer's output is the unperturbed one. Induction over layers and time gives the first statement, and the second.
Along the first 4000 steps of the self-describing instance an average of 26,825 rows of per step sit at pre-activation -1 and 4,066 at 0, so the constant is attained there.
Proposition 8.3 (Weight and bias errors). Suppose each layer is realized with weights and biases , where if , if , and , with thresholding by .
(i) If for every layer and row , where is the effective fan-in of the row, every orbit of the realized system coincides with the orbit of .
(ii) Let be the states visited by a run of from , and let and be the largest numbers of inputs equal to 1 that a row reads at the nonzero and at the zero entries of its layer along the run. If , the realized trajectory from visits .
Proof. On an input , , which is at most the left side of (i), and of (ii) while the trajectories agree; the induction of Theorem 8.2 applies.
The term , the leakage of the entries the design sets to zero, grows with the width of the layer; along an orbit only the inputs equal to 1 leak, and few bits of a SUBLEQ state are set at any time.
Proposition 8.4 (Independent perturbations). Suppose each pre-activation evaluation is perturbed by an independent random variable with , and let . The probability that the perturbed trajectory differs from the orbit of at some time is at most . For centred Gaussian perturbations of standard deviation , .
Proof. By the argument of Theorem 8.2, the first deviation occurs at an evaluation whose input is unperturbed and whose perturbation satisfies . There are TM evaluations up to time .
Proposition 8.5 (Profile bound). Let the perturbations be independent centred Gaussians of standard deviation s, let be the orbit of F from , and for and each row i of each layer let be the pre-activation of row i on the input . Put
Given that a perturbed trajectory from agrees with the orbit up to step , the probability that it differs from it at step is at most , the probability that some row of the step fails while it reads the values of the orbit; and . If copies of the trajectory are run from , each stopped at its first deviation or after steps, the expected number of copies that deviate is at most the expectation of , where is the number of steps copy runs.
Proof. Condition on agreement up to step , so the input of the first layer at step is . As in Theorem 8.2, the output of the step differs from only if some row, reading an unperturbed input, fails, that is, has its perturbed pre-activation on the far side of : for this is the event , and for the event , each of probability . While no row has failed, every row of the next layer reads the values of the orbit, and the perturbations of its rows are independent; so no row of the step fails with probability , layer by layer, which gives . The union bound gives , and gives . For the last statement, copy deviates at step with probability at most given that it has run steps without deviating, so its probability of deviating is at most .
8.1 Tolerances of the host
For , with rows, the largest effective fan-in is 256, attained by the 40 units of the 256-way disjunctions of the operand fetch and the read multiplexer, and the widest layer has 8210 rows. Proposition 8.3(i) therefore makes every orbit exact for when nothing leaks, and for when the weights are exact. Along the first 10,000 steps of the self-describing instance and , so (ii) certifies and , each alone; along the self-reproducing run , which certifies . Under uniform random errors the first 10,000 steps stayed exact up to and up to .
Under Gaussian read noise of deviation , . Over the steps of the self-reproducing run , and Proposition 8.4 bounds the probability of a deviation by ; at this bound exceeds one. Along the first 4000 steps of the self-describing instance, 73.61% of the rows sit at distance from the comparator at every step and the rest at distance at least , so the sum of Proposition 8.5 lies a factor 2.7 below wherever it is below one.
With 256 noisy copies stepped beside the exact orbit, no copy left it in 768,000 step-copy pairs at , and failures were observed from on. The product form is the exact probability that some row of step fails while the state is on the orbit, and a failed row need not change the state: with noisy copies restarted from the exact state at every step, the steps with a failing row matched within 1.3 standard deviations at every level, and 4.9 to 6.3% of them ended on the orbit at to 0.12 (Appendix E). So exceeds the rate at which the host leaves
(a)
(b) , read by majority

Figure 4: The per-step probability of leaving the orbit under Gaussian read noise of deviation s, against the bounds of Section 8; the lines join the values computed at the deviations of Tables 4 and 5, and the error bars are exact 95% intervals for a Poisson count. (a) : the rate at which noisy copies first leave the exact orbit, the product form and the sum b of the profile bound of Proposition 8.5, and the bound of Proposition 8.4. (b) : the rate at which the state read by majority first leaves the orbit, the restoration bound of Proposition 8.14 and the first-order bound of Theorem 8.8(ii), with the rate at which some copy of some state bit first deviates.
its orbit by that fraction, and at the sample size of Table 4 it lies within the exact 95% Poisson interval of the measured rate at every level; the sum b does so up to s = 0.11 and lies above it from s = 0.12 on, where several rows of a step fail together (Figure 4(a)).
8.2 Fault tolerance by amplification
Theorem 8.2 tolerates perturbations below because every pre-activation is an integer. Replicating the state and letting every unit read every copy multiplies the margin. Let be the replication , copy occupying the coordinates , let be the all-ones matrix and the all-ones vector.
Definition 8.6 (Amplification). For an LTTM with parameters and an odd , the -fold amplification is the LTTM on with parameters
Row of layer reads every copy of input with the weight , so its effective fan-in is times that of row ; has rows and times the nonzero entries of , and .
Proposition 8.7 (Amplified margin). Let F be an LTTM and r odd.
(i) , and the same holds for each layer.
(ii) On the input , the pre-activation of row of layer is , where is the pre-activation of row of on , and its distance from is .
(iii) If the input differs from in coordinates, every pre-activation differs from the value in (ii) by at most ; a row whose inputs carry wrong copies therefore computes its value on under every perturbation of magnitude less than .
Proof. , so row has pre-activation . If this is at least , the row outputs , and the distance from is ; if it is at most , the row outputs , and the distance is . This is (ii), and (i) follows layer by layer. For (iii), every weight has magnitude at most 1, so each wrong input moves the pre-activation by at most 1.
Theorem 8.8 (Fault tolerance by amplification). Let be an LTTM with rows, odd and .
(i) Every -perturbed trajectory of from with equals .
(ii) Let the perturbations be independent with for a non-increasing . The probability that the perturbed trajectory of from differs from at some is at most . For centred Gaussian perturbations of standard deviation s it is at most , and at most in terms of the pre-activations of F of Proposition 8.5.
(iii) Let . Under Gaussian perturbations the trajectory follows the orbit for steps with probability at least whenever , so suffices. When it does so whenever : the bound at margin becomes .
Proof. By Proposition 8.7(ii), on an input equal to the replicated state of the orbit every row of lies at distance at least from the comparator, and the argument of Theorem 8.2 gives (i). For (ii), the first step at which the perturbed trajectory differs from the orbit, if there is one, reads an exact input, and a row of that step changes its output only if its perturbation has magnitude at least its distance from the comparator, on the far side: the probability is at most , and for Gaussian perturbations exactly , which is at most erfc( ). The union bound over the rows of a step and the steps gives the three bounds, the last summing the exact probabilities over the profile, each row of contributing rows of . For (iii), erfc( for , so erfc( ) when ; and when , where .
In (ii) and (iii) the perturbation of a row has the same distribution whatever the row's fan-in, as for noise added at the input of a comparator, and every copy adds margin against it. When the noise sits on every synapse instead, the error of a row grows with its active inputs, and a copy buys less.
Corollary 8.9 (Noise on every synapse). Suppose that at every step each programmed entry of every layer of is read with an independent centred Gaussian error of standard deviation , the biases exactly, and let be the largest number of active programmed inputs of a row of along the orbit of up to time , as in Proposition 8.3(ii). The probability that the trajectory of from differs from at some is at most erfc , which is at most when .
Proof. At the first step at which the trajectory differs from the orbit the input of every layer is exact, and on the error of row is the sum of the errors at the copies of each of the at most active programmed inputs of row of , a centred Gaussian of deviation at most . Its distance from the comparator is at least (Proposition 8.7(ii)); the union bound over the rows and the steps, and , give the two statements.
A copy thus divides the effective noise by on the pre-activation and by on the synapses. Along the self-reproducing run of the host , and the bound of Corollary 8.9 falls below with at and with at .
In von Neumann’s model of unreliable components [23] the error does not sit on a sum but on the output: every unit outputs the complement of its value with a fixed probability, whatever its margin. Amplification then helps only below a threshold.
Proposition 8.10 (Output flips). Suppose that every evaluation of every row of outputs the complement of its value with probability , independently, and let be the largest effective fan-in of a row of F and n its number of state bits.
(i) Started from , the probability that the state of read by majority differs from after one of the first steps is at most . For it is at most when .
(ii) Let a row of be the disjunction of inputs that hold 0 on the orbit, and let . There is , depending on and only, such that a row of that copies it, reading input copies each flipped with probability , independently, computes a wrong value with probability at least .
Proof. All copies of a row read the same copies of its inputs, so they compute the same value before their outputs flip; call the row wrong in a step when that value differs from the orbit's. Consider the first wrong row of the run. Every row it reads is right, so each of its at most input copies is wrong exactly when its own output flipped, independently with probability , and by Proposition 8.7(ii) and (iii) the row is wrong only if at least of them are. This has probability at most , since . While no row is wrong, the majority of the copies of a state bit is wrong only if at least of them flipped, with probability at most . The union bound over the rows and the state bits of each of the steps gives the bound of (i), and taking logarithms gives the redundancy.
For (ii), the copy has bias and reads its kr input copies with weight 1, so its pre-activation is the number of flipped copies minus , and it is wrong exactly when at least of them flipped. For and , fewer than of m independent copies flip with probability at most : by induction on m, either the first copy flips and fewer than of the others do, or it does not and fewer than t do, which has probability at most , the first term absent when . For , and this is with . Take , which lies in , and , so that . Then , and , so .
The threshold belongs to amplification, which keeps the fan-in of and adds no restoring stages, and not to computation with noisy threshold units: formulas of noisy three-input gates compute reliably for every [24], and gates of fan-in cannot do so above [25]. In the host it comes from 48 disjunctions, of fan-in 256 in the operand fetch and the operand reads and of fan-in 128 in the next counter, whose inputs all hold 0 when the bit they compute is 0. For , with , the amplification is therefore reliable for , and for such a disjunction is wrong with a probability that tends to one as grows. Every other unit of the host has fan-in at most 8. Split into trees of fan-in 8, each of the 48 disjunctions would take three levels instead of one. The step would then have depth 17, since the fetch and the reads lie on its longest path, and would rise to 0.023.
Integer weights reach the same margin without copies: the layer with weights and biases has pre-activation on the input itself, so Theorem 8.8 holds for it with M rows in place of rM. A ternary row cannot hold the weight r, and reading r copies of an input with weight 1 is how it realizes one.
Remark 8.11 (Thresholds and restoring organs). In von Neumann's multiplexing [23] every component fails with a fixed probability p whatever its inputs, and a restoring organ of majority elements follows every level; reliable computation then needs redundancy logarithmic in the size of the circuit [26, 27] and is possible only below a threshold on p [24, 25]. The amplification is Pierce's interwoven redundant logic [28, 14] with threshold units. The restoring organ is absorbed into every unit, which sums the r copies of each input with one weight, and the identity rows of Lev become majority units. Amplification does not enlarge the tolerance to systematic errors: for the conditions of Proposition 8.3 are those for F with in place of .
Construction 8.12 (The amplified host). is a clocked netlist: its rows are units, each reading rows of the layer before it, and the rows of its last layer are the next-state values. Let , a clocked netlist on state bits with 41,967 r units and 75,501 edges. Its rows are again in layer order, each reading only the layer before, so , and Proposition 8.7 describes every row of . Its device reads each bit of a register as the majority of the r copies and writes every copy.
Corollary 8.13 (Exact self-reproduction of the amplified host). realizes the transducer of Definitions 5.1 and 5.2 on replicated states. Hence, for , the instance is exactly self-reproducing and Proposition 6.13 gives its running time.
Proof. From a replicated state produces the replicated next state (Proposition 8.7(i)), and the device reads the majority of equal copies, which is their common value, and writes every copy, so the run of from visits the replications of the states visits from on the same tape and emits the same bytes. The proofs of Theorems 6.9 and 6.12 use the transducer alone, so they hold with in place of . The same holds for every odd and every with in place of : the run of from a replicated state visits the replicated states of the transducer's run with the same output, and on and every recipe it reads its halt bit as 0 for the steps of Proposition 6.13 and as 1 after them, with the output of Theorem 6.12.
Run with in place of under Gaussian read noise on every pre-activation, emits the whole instance at , 0.15, 0.20 and 0.25, where the host itself fails at after 143 bytes and at and 0.20 before emitting one (Appendix E). A single wrong copy is outvoted in the next layer, and the computation fails only when two wrong copies meet, an event of second order in the probability of a flip. The following bound counts these events.
Proposition 8.14 (Restoration). Let the perturbations of be independent centred Gaussians of standard deviation s on every pre-activation. The probability that the state of read by majority differs from the orbit of after one of the first T steps is at most , where , given in Definition D.1, is computed layer by layer along the orbit from the distance of each row to the comparator and from the inputs whose errors move it toward the comparator.
Appendix D defines and proves the proposition. The artifact computes the bound along the exact orbit, in C, by src/restore_bound.c. The matrix K is held sparse, and the entries it drops are carried by rank-one majorants that contribute less than of . The run is split into 36 chunks, each restarted twenty steps early from P = 1 and K = 0, values that bound the probabilities they stand for; the chunks reproduce the uninterrupted recursion to within .
Along the self-reproducing run, , the bound is at , where Theorem 8.8(ii) gives . It is at and 0.271 at , where the first-order bound exceeds one. Along the first 20,000 steps of the self-describing instance, lies within the exact 95% Poisson interval of the measured failure rate at , 0.30 and 0.33, and 1.47 times above the rate at , the highest level measured (Table 5, Figure 4(b)). The failure rates are 21 and 12 times below the rates at which some copy of the replicated state left its orbit at and 0.30.
8.3 A generation of the stored host under noise
The ring machine is a ternary threshold network like the host, so the bounds of this section apply to a whole generation of the stored host, in which the host decodes its recipe into the next bank, copies the recipe and hands over. The following corollary gives the noise under which such a generation runs exactly.
Corollary 8.15 (Self-reproduction under noise). For the ring of three banks in which Section 7 runs S, let be the number of rows of and the number of applications in a generation. Under independent centred Gaussian perturbations of deviation s on every pre-activation, a generation of S runs exactly with probability at least , which exceeds 0.999 for . The threefold and fivefold amplifications of Definition 8.6 reach the same probability for and .
Proof. Proposition 8.4 and Theorem 8.8(ii) over the applications; Appendix B gives the rows of in closed form.
9 Related work
Threshold computers. Von Neumann’s EDVAC report describes the stored-program computer with McCulloch–Pitts elements [2]. Goto’s parametron computes the majority of three inputs, an input inverted by reversing the polarity of its coupling [29], so parametron circuits are networks of ternary threshold units; MUSASINO-1 [30] and PC-1, of about 4,200 parametrons [31], were stored-program machines built from them, and DONUT a general-purpose computer of about 500 threshold gates [32]; see also [16]. Weighted threshold circuits of depth d are simulated by majority circuits of depth [33, 34, 35], and Remark 5.5 is the smallest instance of that exchange.
Networks as programmable computers. Recurrent networks of saturated-linear units with rational weights are Turing-universal [36, 37], and programs have been compiled into neural networks [38, 39]. A looped transformer with fixed weights executes SUBLEQ programs placed in its input [40], as does a looped ReLU perceptron [41]; a fixed transformer simulates any transformer of a class from a description in its input [42], and Loom executes compiled C programs in a looped transformer whose state holds the program [43]. A programmable neural network, a fixed-weight network with auxiliary inputs, behaves as any network of a class when those inputs carry a code of its weight matrix [12]. These use real-valued weights. The ring machine is a fixed ternary network of this kind, which evaluates any network stored in its state. Valiant's universal circuits simulate any circuit of size n from its program bits in size [11], and intrinsic simulation between automata networks [44] builds the simulating network from the simulated one; here the simulating network is fixed.
Finiteness and noise. Every network here is a finite automaton [17, 18]. Power beyond finite automata comes from unbounded precision [36], growing numbers of units [45] or changing weights [46], and von Neumann's cellular automaton is universal because its tape can be extended [3, 47]. Analog noise reduces discrete-time analog models to finite automata [48].
Self-reproduction. Von Neumann's universal constructor uses a description once as instructions for construction and once as data to be copied [3, 47]. Moore and Myhill gave abstract formulations [49, 50], Lee and Thatcher constructed Turing machines that print their own description [21, 22], cellular constructions were given by Arbib, Codd, Langton, Pesavento, and Perrier, Sipper and Zahnd, the last with an attached program and a growing data tape [4, 5, 6, 7, 8], and Ibáñez et al. reproduce by self-inspection [51]. Self-replicating field-programmable arrays copy configurations between cells [52], and Cell Matrix cells read and write the truth tables of their neighbours [53]. Program replicators include Tierra [54] and those that emerge in [55]. Cotler, Hongler and Hudcová give an informal condition for self-replication in cellular automata and place the automata that meet it strictly between the globally and the locally universal ones, so that Turing universality does not imply self-replication; they require the encoder and the decoder between symbolic computation and the dynamics to be computationally simpler than the computation attributed to the system [56]. In those terms the host running (Section 6.3) is a replicator relative to an instantiation map. The organism and the stored host need no such map: each is a configuration of a fixed threshold network, the only map between the computation and the dynamics is the encoding of a state of the ring machine in the bits of that network (Theorem 3.2), and what is reproduced includes the weights of the network that computes.
Networks that produce their own parameters. Neural networks have been trained to output their own weights [57, 58], to reproduce over generations [59, 60] and to emit the program text that trains them [61]; hypernetworks and self-referential weight matrices generate or modify weights [62, 63, 64]. In each case the relation between a network and its parameters is learned and approximate.
Machine-checked universal machines. A universal Turing machine has been programmed and verified in Coq, with polynomial time and constant-factor space overhead [65], and the Game of Life has been simulated in the Game of Life by circuits verified in HOL4 [66]. Here one Rocq development covers the interpreter, the universal computer, construction, reproduction and noise.
10 Conclusion
A fixed network of ternary threshold units holds threshold networks as records and runs them, and a stored network can build any network that fits a bank, copy its description and hand control to what it built. The organism and the stored SUBLEQ host rebuild themselves in this way, weights and biases included, in every ring, and integer pre-activations keep every generation exact while no perturbation of a pre-activation reaches one half.
The fixed network itself is not reproduced. Its netlist is ternary and compiles into records by Lemma 3.4, but its state, which contains the window, the banks and the tapes, cannot fit in its own window, so a network that also rebuilds the network that runs it needs another construction. Other questions are open: whether a ternary step of SUBLEQ can have depth below 11, since Lemma 5.7 and Remark 5.5 bound only a read and the branch; how few records a self-reproducing stored network needs; and how much noise a reproducing run tolerates when the perturbations are correlated or drift, which the independence assumed in Section 8 excludes.
A Serialization and file formats
Definition A.1 (Serialization). Let N be a clocked netlist on n state bits. Number its signals with the state bits first, in the order fixed by the state layout, and the units after them in the order of
N. The serialization is the safetensors encoding of four integer vectors:
(i) the bias of each unit, in the order of N;
(ii) the number of predecessors of each unit, in the same order;
(iii) one signed entry per edge, its magnitude the index of the predecessor plus one and its sign the weight, the edges of a unit consecutive and in the order the unit lists them;
(iv) for each state bit, the index of the signal computing its next value.
The file is an eight-byte little-endian header length, a JSON header object, and the concatenated tensor data in little-endian order. The biases are stored as eight-bit integers, and the fan-ins, the edges and the next-state indices as sixteen-bit integers when their values fit and as thirty-two-bit integers otherwise. Seven thirty-two-bit scalars record the address width, the data width, the number of memory words, the width of the program counter, the number of state bits, the number of units and the version of the format. Four choices that a general-purpose serializer leaves open are fixed. The header object begins with the key metadata, whose value lists the machine name, the quantization tag, the state layout and the device addresses of Table 1, in that order. The remaining entries are the tensors, ordered by element type and then by name, with the data in the same order. The JSON has compact separators and no non-ASCII escaping. Spaces pad the header so that the tensor data begins at an eight-byte boundary.
The fixed choices make a function. Every predecessor carries the weight , so the sign of an edge entry gives its weight, and the fan-in vector cuts the edge vector into the predecessor list of each unit; every index refers to a signal that these vectors define. So N, the order of its units included, is recovered from alone.
For the metadata has machine subleq8 and weight_quantization ternary. Its signal_registry is the first string below, the state layout of Construction 5.8 by first coordinate and width, with the number of words for the memory, and its io is the second, the addresses of Table 1:
The scalars are the I32 tensors manifest.addr_bits, data_bits, memory_words, pc_width, state_bits, units and version, holding 8, 8, 256, 8, 2057, 17,598 and 6, and the vectors are net.fanin, net.next and net.pred of type I16 and net.bias of type I8.
The netlists are written as files of little-endian 32-bit integers: the numbers of state bits, units and edges; the bias of each unit; the fan-in of each unit; one signed entry per edge, as in ; and, for each state bit, the index of the signal computing its next value. The state bits are numbered first, in the order of Theorem 3.2, and the units after them, in the order of the Rocq definition. An image of records, such as the organism or the stored host, is the sequence of its records, each laid out as in Definition 3.1, in the order of the Rocq definition, with the window cells of Construction 4.3 or 7.1; in the stored host the cells of the units, of the levels and of the device follow the state bits, in that order.
B Sizes of the constructions
This appendix gives the numbers of units, edges, rows, records and steps to which the main text refers. The closed forms are proved in Rocq (Table 6), and the census of a particular byte string is computed by the artifact.
B.1 The ring machine
With , and , the netlist of Theorem 3.2 has
and has depth 19 and rows.
B.2 The host
The netlist has
the sums over the blocks of Table 2. Of the units, form the memory, that is, the decode lines, the fetch, the operand reads and the write, and the other the arithmetic and control datapath. For these are 17,598 units, 17,448 of the memory and 150 of the datapath, carrying 68,730 parameters: 51,132 weights of and one bias per unit in . The serialization has 160,240 bytes.
Lev( ) has depth 13 and rows, of which are identity units and the others the units of . For these are rows on state bits, 24,369 of them identity units, in thirteen layers of 2313, 8210, 2090, 2587, 6427, 2347, 2379, 2389, 2609, 2353, 2339, 3867 and 2057 rows. As dense matrices the layers have 124,165,940 entries, 75,501 of them nonzero.
The folded host of Remark 5.10 has
17,086 and 120,508 for A = 8.
B.3 Programs and recipes
The recipe of Corollary 6.10 has 144,891 bytes, against 144,818 for the shortest recipe of . Its census is , , and , so Theorem 6.9 gives a run of 793,709 steps.
The tape of Construction 6.11 has 144,996 bytes, and has 305,508: for the framed serialization of the host, for the framed memory image and 144,996 for the tape. The census of is , , and , so the run of Proposition 6.13 takes 794,960 steps in phase (A), one in phase (R) and 869,978 in phase (B), 1,664,939 in all.
B.4 The stored host
In the window holds the thirteen cells of Definition 3.1, booted, cnt, dest and lim in cells 13 to 54, the state bits of in cells 55 to 2111, and after them the cells of its 17,598 units, of the levels and of the device, 19,765 cells in all, so and . Its 36,080 records are 2104 of the startup, 33,568 of the step, 403 of the device and of the hand-over. Its image has 1,912,240 bits, read as 239,030 bytes, and has 240,900 bytes.
For a recipe of literal and repeat tokens, , so Proposition 6.13 gives a generation of Theorem 7.5
passes. For of an image of bytes, when the image has no four equal consecutive bytes, since describe then emits literal tokens and nothing else, and in every case, since the proof of Lemma 6.7 gives and . The census of is , , and , which gives the passes stated after Theorem 7.5; there the tapes have cells.
For every and the stored host has startup records, device records,
step records and hand-over records, of them empty. The step records count the records of Lemma 3.4 over the blocks of Table 2: a conjunction or a disjunction of literals takes records, a unit of threshold 2 on three or four literals four or eight, and the cubic term comes from the carry terms. The stored host of Theorem 7.6 therefore has
records. Its window satisfies , its counter width satisfies , and a generation in banks of slots takes between and applications of .
For to 12, has 36,080, 80,463, 178,112, 391,220 and 853,176 records, windows of to cells, counters of 20, 21, 22, 23 and 24 bits and images of 239,030 to 6,932,055 bytes, and a generation takes 2,653,813, 6,253,470, 14,583,670, 33,661,915 and 76,962,164 passes, from to applications of with .
B.5 The amplified host
For the amplified host of Construction 8.12 has 6171 state bits, 125,901 units, 679,509 edges, depth 13 and biases in , and bytes. The tape has 3,022,111 bytes, has 6,143,922, and the run of takes 33,796,449 steps.
C The records of the organism
The organism of Construction 4.3 consists of the 143 records below, in the order of the bank, each written as the gate of Definition 4.1 that it computes into its output cell. Cells are named by their role: rd, arm and cpy are the cells under the read head, the arm and the copy head, AR to HO the requests, m the mode, START, CODON, GATE and ADDR the phase, the codon register, the counter, and the temporaries, each reused once its value has been read. Every record is a gate, so code( ) has no escape. The records are generated by src/twohead.py, which also writes them to rocq/Organism.v.
Record 1, the start flag: . Records 2–5, the counter at zero: ; ; ; . Records 6–14, the codon after this pass's shift, and its end and escape at completion: ; ; ; ; ;
11 ; 12 ; 13 ; 14 . Records 15–17, the escape of the codon held in GATE: 15 ; 16 ; 17 . Records 18–24, consume, write under the arm, copy: 18 ; 19 ; 20 ; 21 ; 22 ; 23 ; 24 . Records 25–63, the gate bit 7 - z that the held codon determines: 25 ; 26 ; 27 ; 28 ; 29 ; 30 ; 31 ; 32 ; 33 ; 34 ; 35 ; 36 ; 37 ; 38 ; 39 ; 40 ; 41 ; 42 ; 43 ; 44 ; 45 ; 46 ; 47 ; 48 ; 49 ; 50 ; 51 ; 52 ; 53 ; 54 ; 55 ; 56 ; 57 ; 58 ; 59 ; 60 ; 61 ; 62 ; 63 . Records 64–77, the next phase: 64 ; 65 ; 66 ; 67 ; 68 ; 69 ; 70 ; 71 ; 72 ; 73 ; 74 ; 75 ; 76 ; 77 . Records 78–107, the counter: load 3, 7 or 17, or count down: 78 ; 79 ; 80 ; 81 ; 82 ; 83 ; 84 ; 85 ; 86 ; 87 ; 88 ; 89 ; 90 ; 91 ; 92 ; 93 ; 94 ; 95 ; 96 ; 97 ; 98 ; 99 ; 100 ; 101 ; 102 ; 103 ; 104 ; 105 ; 106 ; 107 . Records 108–119, the codon register shifts in CODON: 108 ; 109 ; 110 ; 111 ; 112 ; 113 ; 114 ; 115 ; 116 ; 117 ; 118 ; 119 . Records 120–125, the bits under the arm and the copy head: 120 ; 121 ; 122 ; 123 ; 124 ; 125 . Records 126–133, the mode and the phase flags: 126 ; 127 ; 128 ; 129 ; 130 ; 131 ; 132 ; 133 . Records 134–143, the requests: 134 AA ; 135 AC ; 136 AR ; 137 RR ; 138 ; 139 RA ; 140 RC ; 141 CB ; 142 CT ; 143 HO .
D The restoration bound
Definition D.1 (The restoration bound). Let be the deviation of Proposition 8.14, and unroll along the orbit of , the rows of layer 1 of each step reading the rows of layer of the step before. For a row of a step, let be its pre-activation and its value on the orbit, and put , for and . Let be the set of rows that reads with a weight satisfying , the inputs whose error moves toward the comparator. Define, layer by layer,
where , and for distinct rows of one layer
with P and K zero on the state of step 0 and on the device cells of every state, and and zero on every state. Let
the first sum over the rows of the layers of step t and the last over the rows of its last layer.
Proof of Proposition 8.14. Call a copy wrong when its output differs from the replicated orbit. Every copy of a row reads the same copies, and a wrong copy of an input moves the pre-activation of a copy of by , toward the comparator exactly when . Let be the set of wrong copies of the rows of . By Proposition 8.7(ii) a copy of is wrong only if its perturbation, on the far side of the comparator, has magnitude at least ; given the perturbations of the earlier layers the three copies of therefore fail independently, each with probability at most . Call a layer a stop when it holds a wrong copy of a row with , or when it is the last layer of a step and one of its rows has two wrong copies. The state read by majority is wrong after a step only if the last layer of that step is a stop, and while no layer is a stop the device reads every cell correctly and writes every copy of it, so the probability to be bounded is at most the sum, over the layers of the first steps, of the probability that the first stop is that layer.
For a row let be the event that has a wrong copy and neither its layer nor an earlier one is a stop. On , , and only on the union of the with , so and, by induction over the layers, ; on the device cells of a state is empty, the device having written every copy. Two of three independent copies fail with probability at most and all three with probability at most , so the probability that no earlier layer is a stop, , and has two or three wrong copies is at most or ; for a row of a state it is zero as far as the layers after it are concerned, since two wrong copies of a state row make the last layer of the step before a stop. For distinct rows of one layer the copies of and of fail independently given the earlier layers, so
the expectation taken on the event that no earlier layer is a stop. Both indicators are 1 only on the union of the with and of the with , , ; expanding the product and bounding the latter events by induction gives , since .
If the first stop holds a wrong copy of a row with , then either consists of two or of three copies of one row , events of probability at most and after which a copy of fails with probability at most or , or two distinct rows have wrong copies, with probability at most . Otherwise the first stop is the last layer of a step and one of its rows has two wrong copies with , with probability at most . Summing over the rows of the layers of the first steps gives .
E Measurements under perturbation
This appendix gives in full the measurements that Sections 8.1 and 8.2 summarize; every run is recorded in the artifact.
E.1 The host
Table 4 compares the rate at which noisy copies first leave the exact orbit with , and the bound of Proposition 8.4.
Restarting 1024 noisy copies from the exact state at each of the first 4000 steps, 4,096,000 copy-steps in all, separates the failures of rows from the deviations of the state. At , 0.09, 0.10, 0.11, 0.12 and 0.15 some row failed in 31, 1739, 35,940, 333,003, 1,556,080 and 4,095,990 copy-steps, against 26.0, 1750.3, 36,109.5, 332,517.2, 1,554,804.7 and 4,095,992.7 under , and 1, 100, 2269, 19,939, 76,719 and 11 of them ended on the orbit; at every copy-step failed and none did.
| s | Deviated | Exposure | Measured rate, 95% interval | b' | b | Mp |
|---|---|---|---|---|---|---|
| 0.06 | 0/256 | 768,000 | 0, [0, 4.80 × 10-6] | 1.21 × 10-12 | 1.21 × 10-12 | 3.30 × 10-12 |
| 0.08 | 7/256 | 1,008,916 | 6.94 × 10-6, [2.79, 14.3] × 10-6 | 6.34 × 10-6 | 6.34 × 10-6 | 1.72 × 10-5 |
| 0.09 | 202/256 | 496,131 | 4.07 × 10-4, [3.53, 4.67] × 10-4 | 4.27 × 10-4 | 4.27 × 10-4 | 1.16 × 10-3 |
| 0.10 | 256/256 | 29,384 | 8.71 × 10-3, [7.68, 9.85] × 10-3 | 8.81 × 10-3 | 8.85 × 10-3 | 2.41 × 10-2 |
| 0.11 | 256/256 | 3,325 | 7.70 × 10-2, [6.79, 8.70] × 10-2 | 8.07 × 10-2 | 8.42 × 10-2 | 2.30 × 10-1 |
| 0.12 | 256/256 | 714 | 3.59 × 10-1, [3.16, 4.05] × 10-1 | 3.77 × 10-1 | 4.73 × 10-1 | 1.30 |
| 0.15 | 256/256 | 256 | 1.00, [0.88, 1] | 1.00 | 1.30 × 101 | 3.60 × 101 |
| 0.20 | 256/256 | 256 | 1.00, [0.88, 1] | 1.00 | 1.89 × 102 | 5.21 × 102 |
Table 4: The per-step probability that leaves the exact orbit under read noise of standard deviation . One noise-free copy and 256 noisy copies were stepped together from the initial state of the self-describing instance, 3000 steps for and 4000 otherwise, the full state compared after every step; the exposure is the number of step-copy pairs before a first deviation, and the interval is the exact interval for a Poisson count over it. and are the product form and the sum of Proposition 8.5 averaged over the same exposure; at and bounds the expected number of deviating copies by 6.4 and 212.0, against 7 and 202 observed.
The complete self-reproducing run was executed under the same noise on every pre-activation of every layer at every step, a run ending when it emits a byte that differs from , when the halt bit is set, or when the whole instance is emitted. On it emitted the whole instance at , and set the halt bit after 10,517 steps and 143 bytes at , after 135 steps at and after 2 at . With in place of , the device reading each register bit as the majority of its three copies, it emitted the whole instance and halted on the step of the exact orbit at , 0.15, 0.20 and 0.25, where Theorem 8.8(ii) bounds the probability of a deviation over the run by , , and .
E.2 The amplified host
Repeated on , the measurement of Table 4 gives the rate at which some copy of some state bit leaves the orbit: , , and per step at , 0.27, 0.30 and 0.33. These rates lie below the profile bound of Theorem 8.8(ii) by factors between 9.8 and 19, since a flip in a layer before the last is absorbed unless a second error meets it (Proposition 8.7(iii)). Restricted to the rows of the last layer, whose wrong copies nothing outvotes, the bound is at , inside the interval of the measured rate, which comes from 74 events. At to 0.36 the measured rate exceeds this restricted bound by factors 1.4 to 1.6, a wrong copy of an earlier layer then meeting a second error more often.
Table 5 measures the failure itself: 64 noisy copies of were stepped beside an exact one from the initial state of the self-describing instance for up to 20,000 steps, each stopped at its first wrong majority-read state. At the restoration bound gives probability 0.091 that a copy fails within the 20,000 steps, against 5 of the 64 copies.
| s | Failed | Exposure | Measured rate, 95% interval | Restoration bound | rM erfc(r/2) |
|---|---|---|---|---|---|
| 0.10 | — | — | — | ||
| 0.15 | — | — | — | ||
| 0.20 | — | — | — | ||
| 0.22 | — | — | — | ||
| 0.25 | — | — | — | ||
| 0.27 | 5/64 | 1,237,505 | , [1.31, 9.43] | ||
| 0.30 | 63/64 | 295,163 | , [1.64, 2.73] | ||
| 0.33 | 64/64 | 17,472 | , [2.82, 4.68] | ||
| 0.36 | 64/64 | 2,188 | , [2.25, 3.74] | 3.89 |
Table 5: The per-step probability that the state of read by majority leaves the orbit under read noise of standard deviation : 64 noisy copies stepped beside an exact one from the initial state of the self-describing instance for up to 20,000 steps, each stopped at its first wrong majority-read state, with the exact interval for a Poisson count over the exposure, against the bound of Proposition 8.14 along the same orbit, weighted by the steps each copy ran where copies ran and averaged over the 20,000 steps elsewhere, and the first-order bound of Theorem 8.8(ii).
F Verification
The artifact [15] holds the Rocq development, the generators, the evaluators and the record of every run. Everything was run with Python 3.12.3, PyTorch 2.14.0 with CUDA 12.6, NumPy 2.5.3, safetensors 0.8.0 and GCC 13.3.0 on Ubuntu 24.04, on an Intel Core i9-12900H with 20 hardware threads and 31 GiB of memory and an NVIDIA GeForce RTX 3070 Ti Laptop GPU with 8 GiB of memory.
F.1 The Rocq development
The Rocq development, rocq/ in the artifact, has 66 files and 24,230 lines. With Rocq 9.1.1, its standard library 9.2.0, Coquelicot 3.4.5, Interval 4.11.4 and MathComp 2.4.0 it builds in about two minutes. Table 6 gives the Rocq theorems behind each result. rocq/Assumptions.v names them and the lemmas they rest on, 144 theorems in all, and src/paper.py rocq rebuilds the development and prints the axioms of each.
The theorems on netlists give every unit its value in terms of the state and show by induction over the units that each unit fires to it; those on programs follow a run step by step in SUBLEQ with the device of Definition 5.1; and those on stored networks relate each pass of the ring machine to one step of the machine stored in it, the organism's decoder or the host with its device.
Section 8 is proved on a probability space given by its properties. A function on the events of the perturbations is monotone and subadditive, is 0 on the empty event and 1 on the sure one, multiplies on events that depend on disjoint sets of perturbations, and is additive and complementary on the events built from the threshold events ; each perturbation has the tails and , and in Proposition 8.10 each output flips with probability . The product of Gaussian measures with its outer measure is such a space: on events that depend on disjoint sets of perturbations the outer measure is multiplicative, as integrating the sections of a measurable cover shows. Corollary 8.9 assumes in addition that a sum of independent centred Gaussians of deviation is a centred Gaussian of deviation . In Proposition 8.14 the device writes every copy of its cells with the values of the run, as the device of does while the state read by majority is the run's. The identity is proved from its derivative, which is 0, with the integrals and derivatives of Coquelicot [67]. With it gives for and, for ,
from which the values of erfc in Sections 8.1 and 8.2 and in Corollary 8.15 are evaluated with the interval tactic of the Interval library [68]: the failure probability at , the bound over the self-reproducing run, the redundancies of Corollary 8.9, the threshold of Proposition 8.10, the first-order bound for over the run and the noise levels of Corollary 8.15. The profile bound of Proposition 8.5, the restoration bound of Proposition 8.14 and the per-step values of Tables 4 and 5 are computed by the artifact in floating point. The results on real numbers rest on the classical axioms of Rocq's real numbers and on functional extensionality, and the evaluated values also on the specifications of its primitive integers and floating-point numbers.
Table 6: The Rocq theorems behind each result.
| Result | Rocq theorems |
|---|---|
| Lemma 2.5 | Lev.lev_ok |
| Theorem 3.2 | PhysSem.netlist_step, PhysFacts.phys_ternary, PhysLev.phys_dmax |
| Lemmas 3.3 and 3.4 | Schedule.netlist_pass, Compile.compile_unit, Compile.compile_records |
| Lemma 4.2, Proposition 4.4 | Complete.describe_complete, PassLemma.machine_pass |
| Theorem 4.5 | Run.universal_construction, Main.builds_every_image |
| Theorem 4.6 | Maincopies, Main.periodic, NetMain.network_reproduces, NetMain.network_periodic |
| Lemmas 5.3 and 5.6 | Adder.sub_value, Gates.sAND_fire, Gates.sOR_fire |
| Lemma 5.4, Remark 5.5 | Lower.branch_unit, Lower.branch_not_ternary |
| Lemma 5.7 | Lower.read_needs_two_levels, Lower.onehot_needs_two_levels |
| Proposition 5.9 | HostSem.host_step, HostLev.host_dmax, HostCount.host_weights_biases |
| Remark 5.10 | FoldHost.fold_step, FoldHost.fold_dmax |
| Lemmas 6.5, 6.7, Prop. 6.6 | Recipe.recipes_complete, Recipe.describe_spec, Recipe.recipe_optimal |
| Theorem 6.9 | Pstar.constructor_run |
| Theorem 6.12, Proposition 6.13 | Pstar.selfrep_run |
| Proposition 7.3 | StoredProp.stored_pass, StoredWbr.wbr_stored |
| Theorem 7.4 | StoredRun.stored_construct |
| Theorem 7.5 | StoredMaincopies, StoredMain.periodic, StoredMain.network_reproduces, StoredMain.network_periodic |
| Theorem 7.6 | StoredWidth.width_exists, StoredCount.stored_records |
| Theorem 8.2, Proposition 8.3 | Margin.margin, Margin.margin_tight, Margin.mismatch_all, Margin.mismatch_run |
| Propositions 8.4 and 8.5 | Noise.union_gauss, Noise.profile_step, Noise.copy_bound |
| Proposition 8.7, Theorem 8.8 | Margin.amap_rep, Margin.amp_margin, Noise.amp_gauss, Noise.amp_profile |
| Corollary 8.9 | Noise.synapse_bound |
| Proposition 8.10 | Noise.flip_bound, FlipLower.flip_fails |
| Corollary 8.13 | AmpHost.amp_selfrep |
| Proposition 8.14 | Restore.restoration |
| Corollary 8.15 | NoiseNumgeneration_1, NoiseNumgeneration_3, NoiseNumgeneration_5 |
| The other values of Section 8 | the theorems of NoiseNum, from the bounds on erfc in Erfc |
| Appendix B | the counts in PhysFacts, PhysLev, HostCount, HostLev, FoldHost and StoredCount |
F.2 Evaluators and runs
Four evaluators of the host were used: (a) an integer reference of Definitions 5.1 and 5.2; (b) the netlist that denotes, unit by unit; (c) ; and (d) , with its own reference, device, parser and levelization. The self-describing instance ran on (a), (b) and (d), 793,709 steps emitting , and for three generations on (a), (b) and (d) and one on (c), each started only from the output of the one before, split by inst and rebuilt by ; (d) compared the full state and the output with its reference after every step. One step of agreed with Definition 5.2 on 65,536 replicated random states, and on (d) halted after the 33,796,449 steps of Proposition 6.13 and emitted . Separate code in , written from the definitions of this paper, rebuilds for to 12, levelizes and repeats the measurements of Section 8.1 and Appendix E, and rebuilding the host from source reproduces byte for byte. One step of the folded host agreed with on random states for each from 3 to 10, and on and for and 12, and none of the 137,781 ternary units on eight inputs with biases in computes the branch predicate.
The encoder satisfies Lemma 6.7 on the 29 serialized machines of the artifact, 971,266,155 bytes, and on 68,061 strings straddling every boundary of the token format; the shortest recipe attains the bound of Lemma 6.5 on 3,203 strings without equal adjacent bytes; the step counts of Theorem 6.9 and Proposition 6.13 agree with the reference on 880 recipes; and inst(ser(Ω)) = Ω on 310 instances. The constructor emitted all 29 machines on the reference, and four of them on the netlist of σ(N_{host}).
For , of 151,892 units on 32,301 state bits, and for and , src/twohead.py writes byte for byte the file that the extracted netlist definition writes, and one step of the netlist agreed with a transcription of Definition 3.1 on 700 random states of three other members. Six generations of the organism, 1,191,183 steps each, ran in with the outcome Theorem 4.6 states, the first also on beside the transcription, the full state compared after every step. The extracted definition of writes for A = 8 and 9 the images that src/twohead.py builds, and src/ring_run.c ran six generations of S in a ring of three banks, S = 36,085 and L = 1,927,264, about eight minutes each, with the outcome Theorem 7.5 states. One pass of S agreed with the startup, one step of and the device of Definition 7.2 from 300 random states, as did one pass of from 100 and of from 30, and reduced ordered decision diagrams show that from every window each block of to leaves what Construction 7.1 and Definition 7.2 prescribe. The counts of Theorem 7.6 agree with the construction for A = 8 to 12.
F.3 Digests
Every run of produced the same output. Table 7 gives the SHA-256 digests of three files of the artifact, in the formats of Appendix A, the organism's image taken as 3718 bytes of value 0 or 1; the digests of the others are recorded with the runs that produce them, in paper/runs/.
ser( ) c5950d3fec6bcf70e8111586a030d21b2dfa55bd69a1c7fe5f016cb06e7fb523
organism d4913db0b5ef6d3f122c44974cf9a58015fe7dabacb7176cf377d5cd0743f00b
stored host S 9a7821a540fed2ed58fbb263213f65aead6bbbd8cca6344abcabcc5f4289903c
Table 7: The SHA-256 digests of the artifact's files.
References
[1] W. S. McCulloch and W. Pitts, A logical calculus of the ideas immanent in nervous activity, Bull. Math. Biophys. 5, 115 (1943).
[2] J. von Neumann, First Draft of a Report on the EDVAC (Moore School of Electrical Engineering, University of Pennsylvania, Philadelphia, 1945).
[3] J. von Neumann, Theory of Self-Reproducing Automata, edited by A. W. Burks (University of Illinois Press, Urbana, 1966).
[4] M. A. Arbib, A simple self-reproducing universal automaton, Inf. Control 9, 177 (1966).
[5] E. F. Codd, Cellular Automata (Academic Press, New York, 1968).
[6] C. G. Langton, Self-reproduction in cellular automata, Physica D 10, 135 (1984).
[7] U. Pesavento, An implementation of von Neumann's self-reproducing machine, Artif. Life 2, 337 (1995).
[8] J.-Y. Perrier, M. Sipper and J. Zahnd, Toward a viable, self-reproducing universal computer, Physica D 97, 335 (1996).
[9] M. Sipper, Fifty years of research on self-replication: An overview, Artif. Life 4, 237 (1998).
[10] S. C. Kleene, On notation for ordinal numbers, J. Symb. Log. 3, 150 (1938).
[11] L. G. Valiant, Universal circuits (preliminary report), in 8th Annual ACM Symposium on Theory of Computing, 196 (1976).
[12] F. Donnarumma, R. Prevete and G. Trautteur, Programming in the brain: a neural network theoretical framework, Connect. Sci. 24, 71 (2012).
[13] F. Mavaddat and B. Parhami, URISC: The ultimate reduced instruction set computer, Int. J. Electr. Eng. Educ. 25, 327 (1988).
[14] W. H. Pierce, Failure-Tolerant Computer Design (Academic Press, New York, 1965).
[15] C. C. Norton, threshold-computers: a family of threshold-logic machines, Hugging Face repository (2026), https://huggingface.co/phanerozoic/threshold-computers.
[16] S. Muroga, Threshold Logic and Its Applications (Wiley-Interscience, New York, 1971).
[17] S. C. Kleene, Representation of events in nerve nets and finite automata, in Automata Studies, edited by C. E. Shannon and J. McCarthy, Ann. Math. Stud. 34 (Princeton University Press, Princeton, 1956), 3.
[18] M. L. Minsky, Computation: Finite and Infinite Machines (Prentice-Hall, Englewood Cliffs, NJ, 1967).
[19] M. M. Denneau, The Yorktown simulation engine, in 19th Design Automation Conference, 55 (1982).
[20] M. Ríos-Wilson and G. Theyssier, Intrinsic universality in automata networks III: On symmetry versus asynchrony, Theor. Comput. Sci. 1022, 114890 (2024).
[21] C. Y. Lee, A Turing machine which prints its own code script, in Proceedings of the Symposium on Mathematical Theory of Automata (Polytechnic Press, Brooklyn, 1963), 155.
[22] J. W. Thatcher, The construction of a self-describing Turing machine, in Proceedings of the Symposium on Mathematical Theory of Automata (Polytechnic Press, Brooklyn, 1963), 165.
[23] J. von Neumann, Probabilistic logics and the synthesis of reliable organisms from unreliable components, in Automata Studies, edited by C. E. Shannon and J. McCarthy, Ann. Math. Stud. 34 (Princeton University Press, Princeton, 1956), 43.
[24] B. Hajek and T. Weller, On the maximum tolerable noise for reliable computation by formulas, IEEE Trans. Inf. Theory 37, 388 (1991).
[25] W. S. Evans and L. J. Schulman, Signal propagation and noisy circuits, IEEE Trans. Inf. Theory 45, 2367 (1999).
[26] R. L. Dobrushin and S. I. Ortyukov, Upper bound on the redundancy of self-correcting arrangements of unreliable functional elements, Probl. Inf. Transm. 13, 203 (1977).
[27] N. Pippenger, On networks of noisy gates, in 26th Annual Symposium on Foundations of Computer Science, 30 (1985).
[28] W. H. Pierce, Interwoven redundant logic, J. Franklin Inst. 277, 55 (1964).
[29] E. Goto, The parametron, a digital computing element which utilizes parametric oscillation, Proc. IRE 47, 1304 (1959).
[30] S. Muroga and K. Takashima, The parametron digital computer MUSASINO-1, IRE Trans. Electron. Comput. EC-8, 308 (1959).
[31] S. Okoma, The first Japanese computers and their software simulators, in The First Computers: History and Architectures, edited by R. Rojas and U. Hashagen (MIT Press, Cambridge, MA, 2002), 419.
[32] C. L. Coates and P. M. Lewis II, DONUT: A threshold gate computer, IEEE Trans. Electron. Comput. EC-13, 240 (1964).
[33] M. Goldmann, J. Håstad and A. Razborov, Majority gates vs. general weighted threshold gates, Comput. Complexity 2, 277 (1992).
[34] M. Goldmann and M. Karpinski, Simulating threshold circuits by majority circuits, SIAM J. Comput. 27, 230 (1998).
[35] K.-Y. Siu, V. Roychowdhury and T. Kailath, Discrete Neural Computation: A Theoretical Foundation (Prentice Hall, Englewood Cliffs, NJ, 1995).
[36] H. T. Siegelmann and E. D. Sontag, On the computational power of neural nets, J. Comput. Syst. Sci. 50, 132 (1995).
[37] J. Šima and P. Orponen, General-purpose computation with neural networks: A survey of complexity theoretic results, Neural Comput. 15, 2727 (2003).
[38] F. Gruau, J.-Y. Ratajszczak and G. Wiber, A neural compiler, Theor. Comput. Sci. 141, 1 (1995).
[39] D. Lindner et al., Tracr: Compiled transformers as a laboratory for interpretability, in Advances in Neural Information Processing Systems (2023).
[40] A. Giannou et al., Looped transformers as programmable computers, in 40th International Conference on Machine Learning, PMLR 202, 11398 (2023).
[41] Y. Liang, Z. Sha, Z. Shi, Z. Song and Y. Zhou, Looped ReLU MLPs may be all you need as practical programmable computers, in 28th International Conference on Artificial Intelligence and Statistics, PMLR 258, 2647 (2025).
[42] J. Liu, A. Andoni and D. Hsu, Fixed universal transformers, arXiv:2605.31423 (2026).
[43] M. K. Turkcan, Loom: A scalable analytical neural computer architecture, arXiv:2604.08816 (2026).
[44] M. Ríos-Wilson and G. Theyssier, Intrinsic universality in automata networks I: Families and simulations, Theor. Comput. Sci. 997, 114511 (2024).
[45] S. Chung and H. T. Siegelmann, Turing completeness of bounded-precision recurrent neural networks, in Advances in Neural Information Processing Systems 34, 28431 (2021).
[46] J. Cabessa and H. T. Siegelmann, The super-Turing computational power of plastic recurrent neural networks, Int. J. Neural Syst. 24, 1450029 (2014).
[47] A. W. Burks (ed.), Essays on Cellular Automata (University of Illinois Press, Urbana, 1970).
[48] W. Maass and P. Orponen, On the effect of analog noise in discrete-time analog computations, Neural Comput. 10, 1071 (1998).
[49] E. F. Moore, Machine models of self-reproduction, Proc. Sympos. Appl. Math. 14, 17 (1962).
[50] J. Myhill, The abstract theory of self-reproduction, in Views on General Systems Theory, edited by M. D. Mesarović (Wiley, New York, 1964), 106.
[51] J. Ibáñez et al., Self-inspection based reproduction in cellular automata, in Advances in Artificial Life (ECAL 1995), LNCS 929, 564 (1995).
[52] D. Mange et al., Embryonics: A new methodology for designing field-programmable gate arrays with self-repair and self-replicating properties, IEEE Trans. VLSI Syst. 6, 387 (1998).
[53] L. J. K. Durbeck and N. J. Macias, The Cell Matrix: an architecture for nanocomputing, Nanotechnology 12, 217 (2001).
[54] T. S. Ray, An approach to the synthesis of life, in Artificial Life II, edited by C. G. Langton et al. (Addison-Wesley, 1991), 371.
[55] B. Agüera y Arcas et al., Computational life: How well-formed, self-replicating programs emerge from simple interaction, arXiv:2406.19108 (2024).
[56] J. Cotler, C. Hongler and B. Hudcová, Self-replication and computational universality, arXiv:2510.08342 (2025).
[57] O. Chang and H. Lipson, Neural network quine, in ALIFE 2018 (MIT Press, 2018), arXiv:1803.05859.
[58] T. Gabor et al., Self-replication in neural networks, Artif. Life 28, 205 (2022).
[59] E. Randazzo, L. Versari and A. Mordvintsev, Recursively fertile self-replicating neural agents, in ALIFE 2021 (MIT Press, 2021).
[60] B. Shvartzman and Y. Ram, Self-replicating artificial neural networks give rise to universal evolutionary dynamics, PLoS Comput. Biol. 20, e1012004 (2024).
[61] S. Schmidgall, Self-replicating neural programs, arXiv:2109.12786 (2021).
[62] D. Ha, A. M. Dai and Q. V. Le, HyperNetworks, in International Conference on Learning Representations (2017).
[63] J. Schmidhuber, A self-referential weight matrix, in International Conference on Artificial Neural Networks (ICANN 1993), 446 (1993).
[64] K. Irie, I. Schlag, R. Csordás and J. Schmidhuber, A modern self-referential weight matrix that learns to modify itself, in 39th International Conference on Machine Learning, PMLR 162, 9660 (2022).
[65] Y. Forster, F. Kunze and M. Wuttke, Verified programming of Turing machines in Coq, in 9th ACM SIGPLAN International Conference on Certified Programs and Proofs (CPP 2020), 114 (2020).
[66] M. O. Myreen and M. Carneiro, GOL in GOL in HOL: Verified circuits in Conway's Game of Life, in 16th International Conference on Interactive Theorem Proving (ITP 2025), LIPIcs 352, 25 (2025).
[67] S. Boldo, C. Lelay and G. Melquiond, Coquelicot: A user-friendly library of real analysis for Coq, Math. Comput. Sci. 9, 41 (2015).
[68] G. Melquiond, Proving bounds on real-valued functions with computations, in IJCAR 2008, LNCS 5195, 2 (2008).