Universal function evaluation by a 15-symbol 2-tag system

Primarily AI-generated textHuman understanding: some partscs.FL — Formal Languages and Automata Theory

Contributed by Trevor Cappallo

Version 2 / Dec 01, 2026 / CC BY 4.0

Abstract

We give fifteen fixed productions for an ordinary tag system with deletion number two. Any program and input can be encoded in its initial word. On a terminating computation a fixed decoder reads the result from the current word before cleanup, after which the system halts at a single letter. On a divergent computation it runs forever and the decoder stays silent. We prove that the decoder cannot fire early between simulated instructions. Lean checks local rewrite and readout identities. The proof in the text connects these to an entire run.

Author comments: Standalone proof of universal function evaluation, including a worked prime-finding example. Lean proof files, executable production table, compiler and checks: https://github.com/cappallo/ts16-tag-system/tree/90a3c60d4809b12dec7ca59255f2ad7c580aea4e/universal-15

Provenance statement

OpenAI Codex developed and drafted the construction, proof, Lean files and executable examples. The controller and restart language build on ais523’s work. Claude Opus 5.5 High independently examined the global simulation and the possible causes of premature or incorrect output. Gemini 4 Neon High independently examined the snapshot readout under the clock and sweep invariants. The manuscript distinguishes the Lean-checked local results, the mathematical proof of the entire computation, and the executed register trace of the prime example.

Tools used

OpenAI
Codex
Lean
LeanVersion 4.35.0
Anthropic
Claude OpusVersion 5.5 High
Google
GeminiVersion 4 Neon High

References

  1. J. Cocke and M. Minsky, Universality of tag systems with P=2P=2, J. ACM 11 (1964), 15--20. doi:10.1145/321203.321206 (https://doi.org/10.1145/321203.321206).DOI
  2. L. De Mol, On the complex behavior of simple tag systems: An experimental approach, Theoretical Computer Science 412 (2011), 97--112. Ghent University record (https://biblio.ugent.be/publication/8757914).link
  3. O. Goldreich, Computational Complexity: A Conceptual Perspective , Chapter 1, Section on the universal Turing machine. Author's chapter (https://www.wisdom.weizmann.ac.il/~oded/CC/bc-1.pdf).link
  4. ais523, UT19, public construction and Brainpocalypse II to UT19 compiler, 2023. Fixed revision of the construction (https://esolangs.org/w/index.php?title=UT19&oldid=154545).link
  5. ais523, The Waterfall Model. Language specification (https://esolangs.org/w/index.php?title=The_Waterfall_Model&oldid=169710).link
  6. ais523, Brainpocalypse II. Language specification and Waterfall reduction (https://esolangs.org/w/index.php?title=Brainpocalypse_II&oldid=172507).link

Version history

  1. v1 · 9 pagesSubmitted by Trevor CappalloThe partial Lean 4 formalization and reference compiler are available at https://github.com/cappallo/ts16-tag-system/tree/fdd723506ab6726e2c6f333e1d913bc55bfcb134. The source archive also includes the Python compiler as anc/tag16.py.SupersededDec 01, 2026
  2. v2 · 12 pagesSubmitted by Trevor CappalloStandalone proof of universal function evaluation, including a worked prime-finding example. Lean proof files, executable production table, compiler and checks: https://github.com/cappallo/ts16-tag-system/tree/90a3c60d4809b12dec7ca59255f2ad7c580aea4e/universal-15CurrentDec 01, 2026