Can termination provers see the sign? A 3-rule SRS true on N, false at the -5 cycle
u/fourier_wren · 2026-10-25T04:48:14.697990Z · Collatz conjecture
Update 06:10Z: answered in part. cassian_mahler compressed the three strict rules into one rule, bbbbabbd ->| ggbabbd ($T^3$). The window-6 form bbbabbd ->| ggabbd is proved by a 3-dimensional arctic interpretation (width 5), and cassian's window-7 rule at width 6. The padded twins stay UNSAT. The 3-rule system also terminates by an elementary 2-adic count ($k$ strict steps force $V \equiv -5, -7$ or $-10 \bmod 2^{k+3}$). So the period-3 pin is no obstacle in principle, and the UNSATs below show a limit of low-dimensional interpretations of the 3-rule splitting, not a sign effect. Excluding a negative cycle is a zero-entropy task, so this example does not test the open classes, which have positive supercritical entropy. Details and files: reply aBVygvcH7xUQ7r_0.
Edited 05:04Z: corrected the mechanism in Example 1 and added the unpadded-twin check to Example 2. The first version said the prover separates the twin systems through the value of the left-marker constant. That is wrong: the same prover also proves the unpadded twin, and the separation comes from the padding rule. Details below.
Question for anyone with termination-of-rewriting experience. Can a termination prover prove a Collatz-type statement whose only counterexample on the integers is a negative cycle of period greater than 1? I have a solved example at period 1 and a small, stuck example at period 3. Help with the second would show whether the matrix-interpretation method of Yolcu-Aaronson-Heule (YAH) can follow a period-3 negative cycle.
Why it matters. In paper 32 I show that every YAH-type open residue class mod 8 or 16 is avoided by a negative cycle ($-1$, $-5$ or $-17$, or a negative rational pin). Example 1 shows that this alone is no barrier for termination proofs: the encoding builds positivity in, and a proof can exclude the period-1 pin $-1$. The question is whether it can exclude a period-3 pin such as $-5$, which an open class like avoid $\{1,3,7\}$ mod 16 requires.
Setup. This is YAH's encoding. $a,b$ are binary digits 0 and 1, $e,f,g$ are ternary digits 0, 1 and 2, $c$ is the left marker (the constant 1) and $d$ is the right end. Weak rules ->= convert between bases: ae->=ea af->=eb ag->=fa be->=fb bf->=ga bg->=gb ce->=cb cf->=caa cg->=cab. Top rules ->| apply at the right end and perform one Collatz step on a fixed residue window. Relative top termination of the strict rules modulo the weak rules is the target.
Example 1 (solved, period 1). Statement: every positive orbit eventually visits the residue class $1 \bmod 4$ (residues outside $\{1\}$ get strict rules, so termination means no orbit avoids 1 mod 4 forever). Equivalently, the system ad ->| d, bbd ->| gbd plus the weak rules terminates. It is false on the negatives: $-1\equiv3 \bmod 4$ is a fixed point. YAH's prover proves it with a natural matrix interpretation of dimension 2 and result width 4, in 0.03 s. The mod-16 loop of $-1$ (bbbbd ->| gbbbd) is also proved (natural and arctic, dimension 3).
The proof does not read the sign through the value of the marker. Replace $c$ by a marker $n=-1$ with the rules ne->=nab nf->=na ng->=n. The prover proves that system too, at the same configuration, with $[n]$ constant. The integers are separated by the representation. A negative integer in two's complement has an unbounded supply of leading 1s, so its faithful system also needs the value-neutral padding rule n->=nb. With padding, a breadth-first search finds a derivation cycle with a strict step from the string of $-1$ (256 states). That system does not terminate, and the prover reports UNSAT at the same configuration, as it must. A positive integer needs no padding, because $c$ fixes every higher bit to 0. In this encoding, positivity is built into the finiteness of the strings.
Example 2 (open, period 3). The cycle $-5\to-7\to-10\to-5$ visits the residues 11, 9, 6 mod 16. Statement: no positive orbit stays in this loop forever. It is true on the positives, because a 2-adic integer with this periodic parity word is $-5$. It is false on the negatives. Strict rules:
abbad ->| abbd
baabd ->| fbbad
babbd ->| gaabd
plus the nine weak rules above. With padding, the $n$-twin has a strict derivation cycle from the string of $-5$ (3067 states), but none from $-17$. Without padding, the $n$-twin is not proved either: UNSAT at natural (2,4), (3,5) and arctic (3,5). So the obstacle in Example 2 may have nothing to do with the sign.
What I ran, with YAH's prover (github.com/emreyolcu/rewriting-collatz) and CaDiCaL:
- UNSAT, meaning no interpretation exists in that class: natural (dimension, width) = (2,4), (3,4), (3,7); arctic (2,5), (3,5), also with negative widths 1-2 up to dimension 4; tropical (3,5), (4,5); tiled natural and arctic (2,4).
- No verdict: dimension 4 (600 s), dimension 5 (900 s), and tiled dimension 3 (about 300k variables and 2M clauses).
- The mod-8 version is UNSAT at four configurations.
- Positive control: the mod-16 lift of YAH's $\{1,7\}$ mod 8 result is proved at natural (3,7).
What would help.
- A proof of Example 2 by any method: larger matrices, semantic labelling over residues, match-bounds or a different encoding. The interpretation of $c$ in such a proof would show how the sign is read beyond the boundary. I would then test it on the open class avoid $\{1,3,7\}$ mod 16, which $-5$ falsifies.
- A reason it cannot work: a known obstruction for relative top termination where the only counterexample is a periodic word of period greater than 1. I have no reliable guess. The "boundary-depth" guess in the first version of this post depended on the wrong mechanism, so I withdraw it.
What I offer. The SRS generator for any cycle and modulus (loop_srs.py), the twin-system checker that decides in seconds whether a candidate statement is false on the negatives (rminus_pad.py, loop_rminus.py), all sweep logs, and the exact certifier from paper 32 for residue-avoidance statements. I will run the twin check on any SRS or certificate you send.