MACHINE — a state that only multiplies, read as a machine

The object: a state M that only ever multiplies, M ↦ Mm, driven by a program that may read the state before each move. Read through its depths v_p(M) as counters, which only rise, the machine has no decrement. Which reads leave a program's halting decidable, and which make it universal? Universality is Minsky's: two counters with increment and a decrement fused to a zero-test (Minsky 1967).

λ is the Carmichael function, W(L) the largest modulus whose λ divides L, and ξ(M) = W(λ(M))/M the headroom (HEADROOM: The headroom): a move m is transparent at M, λ(Mm) = λ(M), exactly when m divides ξ(M). A push is a move by one prime p, M ↦ Mp. An odd prime l is seated in M when l | M, and at a seated l, v_l(ξ) = v_l(λ) + 1 − v_l(M).

The answer: the depths are counters with no decrement and decide, but the headroom's exponents at the seated primes are counters that pushes move both ways, so a program that reads λ and chooses its increments by it is universal, while one that reads only its moves' blind demands (support on their primes, squarefreeness) is not, its moves reading λ and the support only to choose a fresh prime off the fixed moves' primes, each that prime alone or times a fixed one. What decides is the number of classes of the coarsest equivalence that refines the reads and that every move carries into itself: finite for pushes under presence reads and for a move that clears a place, where the quotient, built from the program, decides; one per value for a single division or a read of λ choosing the increments, where the machine is universal. Past finite the count grades nothing: tests comparing two depths through one form α·v_p − β·v_q keep one class per value and decide, and two forms, with as many classes, can run Minsky.

The depth machine decides its halting

Tier: theorem.
Verifier: proof; machine.py::section_decide.

The depth machine takes counters c_i = v_(p_i)(M), the increment the push of p_i and the zero-test the presence read p_i | M. A counter once nonzero stays nonzero, and a program over increments and zero-tests passes from (instruction, zero-pattern) to the next such pair by a map reading nothing else. So its run projects to a deterministic run on the finite set I × {0, +}^η, I the instructions and η the counters, which halts or revisits a pair within |I|·2^η steps, and that decides halting. The quotient agrees with a direct run on all 258,352 cases of every such program of up to three instructions over two counters, from the starts (0, 0), (0, 1), (1, 0) and (2, 3).

The decrement breaks it. The program "at q₀: if zero halt, else decrement and go to q₁; at q₁: if zero loop, else decrement and go to q₀" halts from 2 and loops from 3, and both runs start at the pair (q₀, +): the magnitude the quotient discards decides whether the run halts.

Clearing a place decides and dividing once does not

Tier: theorem.
Verifier: proof; borrow.py::section_clear; borrow.py::section_classes; borrow.py::section_divide.

Give the depth machine a move that lowers a depth. CLEAR p sends M to M/p^(v_p(M)), dropping the place whole; DIVIDE p sends M to M/p when p divides M, dropping one, and leaves it alone otherwise. Let the tests ask whether p^t divides M for t ≤ T. Under pushes and clears, v ↦ min(v, T) respects every move and every test: min(v + 1, T) is a function of min(v, T), a clear sends the cleared place's depth to 0, and v ≥ t iff min(v, T) ≥ t. So (instruction, min(v_p, T) at each place) is a bisimulation onto |I|·(T + 1)^η states, and halting decides; the depth machine is the clear-free case T = 1. A hand making finitely many pushes between consecutive steps of the program, choosing its primes by any rule, uncomputable or not, moves that quotient by the same law, so program and hand play a finite game, and whether some hand makes the program halt, or every hand does, decides there. Division has no such quotient. DIVIDE^v followed by the presence test separates the depth v from every larger one, so the coarsest equivalence that refines the tests and that every move carries into itself is equality, and two places with pushes, division and the presence test run Minsky's machine. The program "if 2 does not divide M halt, else divide by 2; then if 2 does not divide M loop, else divide by 2 and repeat" halts from 4 and loops from 8, and both runs start at the presence pair (q₀, +).

So what separates the two moves is that equivalence's number of classes and not their direction: a clear takes a depth all the way to zero and leaves T + 1 classes, while division leaves one per depth. A tested depth falling back to zero is not the mark of the danger, as push-and-clear flips its test from yes to no 100 times in 400 steps and still decides. The quotient decider matches a direct run on all 1,016,280 (program, start) cases over pushes, clears and tests at the places 2 and 3, from every start in {0, 1, 2}², with tests to T = 2 in programs of up to two instructions and to T = 1 in programs of three. Counting classes through words of length up to 4, 6 and 8 over the depths 0 to 30 prints T + 1 for push and clear at T = 1, 2 and 3 at each length, and the length plus 2 for push and divide under the presence test. Whether a move erases is another axis: clear merges the depths 0 to 30 into one and truncated division merges 0 with 1, while push merges none, nor does division on the positive depths, the only ones it meets after the presence test, so forgetting decides neither way (borrow.py::section_classes; reversible machines are universal, Bennett 1973). In a nondeterministic system a decrement blocks at zero, a one-sided test, and vector addition systems, with no other test, keep reachability decidable (Mayr 1981; Kosaraju 1982) though their counters keep one class per value, while two reset arcs lose it (Dufourd, Finkel and Schnoebelen 1998, Theorem 11) and one does not (Reinhardt 1995, by one inhibitor arc).

One form decides and two can run Minsky

Tier: theorem.
Verifier: proof; comparison.py::section_one; comparison.py::section_minsky.

Let the tests compare depths: the three-way sign of f − γ for a form f = α·v_p − β·v_q, p ≠ q, α, β ≥ 1, and finitely many offsets γ, at least one, beside presence reads, the moves still pushes. A comparison flips as the two depths leapfrog, which defeats the depth machine's argument, yet one form still decides. Its state is the instruction, the presence bits and f. On one side of the range of the offsets every comparison answers alike, so there the instruction and the bits trace a path that halts or cycles, and the cycle moves f by a fixed drift: once the path and one pass of the cycle stay on that side, a drift of zero or away from the range never returns, and one toward it returns at a point computed with whole cycles skipped, no farther from the range than one move can change f. The states a run can hold at a return or inside the range are finitely many, so it halts or repeats one. Any two forms on three or four places run Minsky's machine. A push moves each form by its coefficient at the pushed place, and these images span the plane of the two forms positively: on four places each form's two places move it alone, opposite ways; on three, each form's unshared place moves it alone, against the sign the shared place moves it, so the three images span the plane and a positive mix of them is zero. So fixed words move either form alone by ±L, and a counter n is a form at nL, tested at the offset 0, both 0 at M = 1. For X = v_2 − v_3 and Y = v_3 − v_5: the push 2 raises X, the pushes 3 then 5 lower it, the pushes 3 then 2 raise Y and the push 5 lowers it. A difference of two depths that only rise is a counter one push lowers.

Both machines keep one class per value, since pushes move f both ways and the offsets tell every value apart by the pushes it takes to cross one, so what separates the two machines is how many linearly independent forms the tests read: one form keeps every program decidable, a one-counter machine, and two admit a universal program on three or four places, differences at three being the undecidable case of Ibarra, Su, Dang, Bultan and Kemmerer (2000, Theorem 6: counters that only rise, tested T = C₁ and T = C₂), and at two places for 1:1 beside α:β (the next section). Whether two forms at the same two places, neither of ratio 1, run Minsky is open; at two places no word moves one form alone both ways (the next section), and the cheapest probe is that section's construction homed where the second form reads 0. Over every program of two instructions reading one form, each a push at 2, 3 or 5, a comparison at an offset γ ∈ {−1, 0, 1} or a presence read at 2, 3 or 5, its targets the two instructions and a halt, at the ratio 1:1 or 3:2, from six starts, 164,268 cases, the decider's halts match a direct run and its loops run 200 steps without halting, while the finite quotient of the depth machine, applied as if the signs were presence bits, disagrees with it on 98. Three compiled two-counter programs match a reference interpreter at all 421 trace states of 21 runs, the looping ones cut at 80 steps.

Two places at the ratios 1 and α/β run FRACTRAN

Tier: theorem.
Verifier: proof; comparison.py::section_read; comparison.py::section_block; comparison.py::section_fractran.

At exactly two places the counters above have no linear encoding: the moves add (1, 0) and (0, 1) to (v_p, v_q), so under any two linearly independent forms a program's displacements lie in the cone of two independent vectors, which never holds a vector and its negative, and so cannot move one counter both ways while the other stands still. A cycle does it instead. Read G = c − d and F = α·c − β·d at the two depths c and d, α > β ≥ 1 coprime, and call c = d = u home, where F reads (α − β)u. Walk a word of c-steps and d-steps cyclically until F reads a chosen offset below that, then take c-steps until G reads 0; they do reach it, since F = αG + (α − β)d, so G is at most 0 when F reads the offset with d ≥ u. A cycle of a c-steps and b d-steps drops F by D = bβ − aα, so F first hits the offset at a substep j, its position within one pass of the word, fixed by u's residue mod D once the home clears the offset by the deepest dip, and the new home is ρu + s_j with ρ = 1 + b(α − β)/D and s_j a shift fixed by the substep j and the offset.

The read word (c^(β−1) d^(α−1))^k has ρ = α. Its d-steps visit α − 1 consecutive multiples of α modulo α − β, which is prime to α, so they cover every residue there, and the k repetitions cover every residue mod D: the word fires at every u at the offset 0, each repetition lowering F by α − β from (α − β)u to 0 at the u-th's end and no sooner (c-steps raise F, so a first hit, at d-step i ≤ α − 1 of the m-th repetition from the last, asks α(m + β − 1) = β(m + i), so m = 1 + tβ and i = α − 1 + t(α − β): t = 0), so the substep that fires reads u mod k. At P/Q ≥ α/β the block c^a d^b with a = Pβ − Qα and b = α(P − Q) has ρ = P/Q, and with Q prime to β its d-steps cover every residue once b ≥ D, that is once P/Q ≥ α − β + 1, at least α/β since β(α − β + 1) − α = (β − 1)(α − β). The control zeroes s_j: it fires at a larger offset, then walks a number of cycles and d-steps a finite table assigns to j, counting them in its states: on Q | u, −s_j is an integer fixed by j, nonnegative once the offset is large. So on Q | u the home moves to (P/Q)u exactly.

That is FRACTRAN (Conway 1987). Over primes prime to αβ, each fraction multiplied by a power of a prime J dividing α until its value is at least α − β + 1, a step runs the read word at each denominator in turn, each run multiplying u by α, until one divides u, and multiplies by its padded fraction; with the primes of α stripped, u is the FRACTRAN state. So u never falls, and a start holding enough powers of J keeps every home that far above the offsets the read words and the blocks fire at. At 3:2 with J = 3, a two-number multiplication program relabelled onto 5, 7, 11, 13, 17 and 19 takes 5²·7³ to 11⁶ in 25 steps and 5³·7² to 11⁶ in 26, step for step with a reference, each word applied by its closed form, the home value ending at 63 and 64 digits; the starts hold no power of J and the closed form assumes the walk's reach, so it checks the homes' arithmetic. The read word fires at five ratios, k to 12 and u to 300, the closed form agreeing with a literal walk that reads only signs on all 18,000 walks; eight blocks at 3:2 land exactly on 320 multiples of their Q, 64 walked literally; and below the threshold ×11/7 never fires on u ≡ 14 mod 21 below 420.

The headroom is a bank of Minsky counters

Tier: theorem.
Verifier: proof; machine.py::section_control; machine.py::section_counters; machine.py::section_minsky.

Fix odd primes l₁, …, l_η seated in M and read h_i = v_(l_i)(ξ(M)). Two moves and one read run Minsky's instructions on these counters.

So pushes alone, the increment's prime chosen by a selector that reads v_l(λ), run any Minsky program, and a multiply-only world is universal. As with division, decrements followed by the zero-test separate each value of h_i from every larger one: one class per counter value. The three laws hold with no exception and no sibling moved at 2,816 decrement cells over odd M ≤ 3000 and 25,546 increment cells over odd M ≤ 1200 and primes q < 3000, against W computed from its closed form, while a prime 1 mod a sibling (31 from 15) moves that sibling too. From the seed 15, counters at 3 and 5, three programs match a reference interpreter step for step from the first counter's values 0 to 6, the second at 0, the counter read off λ and M at every step; over one run at each of two to five counters, three rounds of increments then one decrement per counter, 56 moves in all, no move shifts a sibling.

A blind read decides and a sighted read is universal

Tier: theorem.
Verifier: proof; machine.py::section_square; borrow.py::section_read.

Of the demands GROWTH: The three fates asks of a move, the rate aside, which chooses among moves rather than testing one, two are blind to the headroom, and so is semisimplicity, a third demand this page adds: independence (gcd(m, M) = 1), new idempotents (m brings a prime M lacks) and Mm squarefree answer, for a fixed m, as functions of M's support on the primes of m and of whether M is squarefree. Give a program the moves above, fixed pushes, the increment selector and the padded decrement below, each selector reading λ and M's support only to choose its fresh prime off the fixed moves' primes, which Dirichlet's theorem still allows. An import, the fresh prime a selector pushes, is a prime M lacks, and a selector's move is its import times a fixed prime or none, so on it the three answers are functions of the support on the fixed primes and the squarefree bit, and what they can see is the instruction beside the support on the fixed moves' primes and that bit, both write-once; the depth machine's argument decides it. On the moves these programs offer, the bare push of a seated l, the increment's fresh import and the padded decrement, every blind answer is fixed by the move's kind and that bit, by construction, while the zero-test takes both values at every (counter, bit) key: 15 and 105 read 0 and 1 at the counter 3, squarefree, 2565 and 855 not, as 15 and 165 do at 5, 45 and 495 not. Only the read differs. The other three are sighted: dynamics (λ rises), new orders (the same predicate) and transparency (its complement) answer the zero-test exactly, since a one-bit probe separates what its negation separates.

With these moves, the price is a read and not a move. v_l(ξ) compares λ's depth at l, the most any place's unit group carries there and so a depth across places, against M's depth at the one place l, and no blind demand reads it. With the move held fixed, the read sets which states are told apart: the push 3 from 21, 57 and 489 passes 1, 2 and 4 times before λ rises, so dynamics tells the three apart, while the blind demands answer the push 3 alike at every state of the three orbits until λ rises, 3 dividing every state (borrow.py::section_read).

A program may also be held to moving only where its own demand admits. Under dynamics the bare decrement is transparent and so forbidden, but the padded decrement l·q′ is admitted: q′ a fresh prime with q′ ≢ 1 mod each counter prime and q′ − 1 not dividing λ raises λ without touching a counter, and the push of l decrements. The increment raises λ by construction. So a dynamics-autonomous program is universal, spending its probe on the bare push it never makes; the three programs run that way match the reference with every one of 210 moves raising λ. Under transparency an autonomous program with computable selectors has its states among the divisors of W(λ(seed)) (GROWTH: The three fates), finitely many, and decides.

Reading and hosting are separate axes. A demand hosts an instruction when it admits, at some state, a move doing it: independence and semisimplicity host no decrement, which pushes a seated prime, and transparency no increment, which moves λ, while new idempotents, dynamics and new orders host both, the padded decrement bringing a new prime. New idempotents cannot read the zero-test and transparency hosts only the decrement, so with these moves only dynamics and new orders both read and host, and an autonomous program is universal there alone.