Paclet Resource

WolframInstitute/TuringMachine

Tools for exploring and analyzing Turing machines

Contributed By: Wolfram Institute

The paclet identifies a Turing machine by its enumeration number and its {s, k} state/color counts. OneSidedTuringMachineFunction runs a one-sided machine on an integer input and returns its halting value, step count, or tape width; OneSidedTuringMachinePlot draws the space-time evolution; and OneSidedTuringMachineFind searches for machines reproducing given outputs. The MultiwayTuringMachineFunction family explores nondeterministic (multiway) machines, while TuringMachineRuleCount and the TuringMachineOutput primitives tabulate behavior across whole rule spaces. TuringMachineToTagSystem, TagSystemToCyclicTagSystem, CyclicTagSystemToSystem5, System5ToSystem4, System4ToSystem3 and System3ToWolfram23 carry a Turing machine along the chain of Smith's universality proof to Wolfram's 2,3 machine.

Installation Instructions

To install this paclet in your Wolfram Language environment, evaluate this code:
PacletInstall[ResourceObject["https://wolfr.am/1IXVEgDNO"]]


To load the code after installation, evaluate this code:
Needs["WolframInstitute`TuringMachine`"]

Details

A Turing machine is specified by its Wolfram enumeration number together with its state and color counts, written {number, s, k} — for example {600720, 3, 2} is rule 600720 with 3 states and 2 colors.
The one-sided functions read a non-negative integer input off the tape, run the machine, and report the halting value, the number of steps taken, or the maximum tape width reached.
A machine that does not halt within the given step bound reports Infinity / Undefined for the parts it could not resolve.
The multiway functions explore nondeterministic machines, where a {state, color} pair may carry several transitions, and return all reachable configurations.
A Rust backend (loaded from the paclet's Binaries) accelerates the bulk enumeration and search functions over whole rule spaces.
The chain of Alex Smith's proof that Wolfram's 2,3 Turing machine is universal has one function per arrow, from a binary Turing machine through a 2-tag system, a cyclic tag system and Smith's Systems 5, 4 and 3 to the 2,3 machine, with a decoder for each way back and an evolution function for each system. Each follows the Lean formalization of the proof in the paclet's repository.

Paclet Guide

Examples

Disclosures

  • Wolfram Language built-in symbols
  • Paclet dependencies

Paclet Source

Source Metadata

See Also