Wolfram (2,3) universality in Lean

 Wolfram (2,3) universality in Lean🔗

A machine-checked development of Alex Smith's 2007 proof that Wolfram's 2-state 3-colour Turing machine emulates every two-colour cyclic tag system, extended by a Cocke-Minsky reduction from binary Turing machines to cyclic tag systems. The two headline theorems are Smith.wolfram23_universal_ic (the finite form: for every run of n steps of a machine, the finite tape IC tm c n reproduces it) and Smith.wolfram23_infinite_ic (the infinite form: one right-infinite tape ITape tm c per machine and input on which the emulation runs for ever). Both tapes are definitions, computed from the machine and its input by Smith's encoders and closed-form bounds on the run lengths, without running anything.

Each chapter states the mathematics of one link of the chain in words, links the statements that carry it to their Lean declarations, and says what is proved, what is assumed, and what is left out. The reader who wants the theorems reads the overview; the reader who wants to audit one link reads that chapter and opens the module it names. Page numbers refer to Smith's paper (TM23Proof.pdf, his submission for the Wolfram 2,3 Turing machine prize).

Contents

  1. 1. Overview: what is proved
  2. 2. The machine model
  3. 3. T7: from a binary Turing machine to a cyclic tag system
  4. 4. T1: from a cyclic tag system to System 5
  5. 5. T2: from System 5 to System 4
  6. 6. T3, first half: from System 4 to System 3
  7. 7. T3, second half, and T5: Systems 3, 2, 1, 0 and loop-freeness
  8. 8. T4: Conjecture 0 in finite form
  9. 9. T8: the composition
  10. 10. T6: the infinite form
  11. 11. Computational notebooks
  12. 12. Open items
  13. Dependency Graph
  14. Blueprint Summary