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 1 / 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: The 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.

Provenance statement

OpenAI Codex developed the construction and mathematical proof, wrote the Lean 4.35.0 proofs and Python reference compiler, and drafted the manuscript. The construction builds on ais523’s UT19, Brainpocalypse II and Waterfall Model. Claude Opus 5.5 independently reviewed the mathematical arguments outside Lean. The manuscript incorporates the resulting proof clarifications. The Lean proofs cover local identities, the literal sweep rule, unary halting and finite-stream synthesis. The global reduction and eleven-sweep cleanup are proved in the paper.

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. T. Neary, Undecidability in binary tag systems and the Post correspondence problem for five pairs of words, STACS 2015 , 649--661. doi:10.4230/LIPIcs.STACS.2015.649 (https://doi.org/10.4230/LIPIcs.STACS.2015.649).DOI
  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. A. Dudenhefner, Certified decision procedures for two-counter machines, FSCD 2022 , article 16. doi:10.4230/LIPIcs.FSCD.2022.16 (https://doi.org/10.4230/LIPIcs.FSCD.2022.16).DOI
  6. ais523, The Waterfall Model. Language specification (https://esolangs.org/w/index.php?title=The_Waterfall_Model&oldid=169710).link
  7. 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