r/compsci • u/wraitii_ • 2d ago
A Turing-complete queue machine with just 6 string-rewriting rules
Got GPT 6.2 astra to discover what I believe to be the smallest known universal 2-deletion tag system. A 2-deletion tag system reads the first letter of a queue, deletes the first two letters, and appends a fixed word for the letter read, so it's a very, very simple machine.
The rules here are:
I → ezII
D → DDez
z → e
a → b
b → aaaeaeae
e → [empty]
Halting is halting <=> a cycle is reached.
De Mol constructed a 3-symbol tag system that encodes Collatz, and proved that 2-symbols is decidable, so this puts the universality limit somewhere between Collatz and 6 symbols.
Full result here (along with a 2000 lines lean proof): https://github.com/wraitii/tag-systems
This improves on UT19: https://esolangs.org/wiki/UT19