Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

TuringMachine

Tutorials

  • Exploring One-Sided Turing Machines
  • The Chain of Smith's Universality Proof

Guides

  • Turing Machine

Symbols

  • boundaryAxiomsFor
  • cachedProofFor
  • CompressToRunLength
  • CyclicTagSystemEvolution
  • CyclicTagSystemEvolutionPlot
  • CyclicTagSystem
  • CyclicTagSystemToSystem5
  • CyclicTagSystemToTagSystem
  • DecodeTuringMachineRules
  • EmulationParameters
  • EmulationSizes
  • FindInductiveProof
  • forAllBody
  • goalFor
  • inductionProofGraph
  • IslandsPanel
  • mergedProofFor
  • MultiwayBothPanel
  • multiwayCloudOverlap
  • multiwayDistance
  • MultiwayEquationalGraph
  • MultiwayGeodesicGraph
  • MultiwayInductiveProofPanel
  • MultiwayNonHaltedStatesLeft
  • MultiwayRuleGraph
  • multiwaySubProofCones
  • multiwaySystemFor
  • MultiwayTokenEventGraph
  • MultiwayTuringMachineFunction
  • MultiwayTuringMachinePlot
  • MultiwayTuringMachineRules
  • NonTerminatingTuringMachineQ
  • OneSidedTuringMachineEvolution
  • OneSidedTuringMachineFind
  • OneSidedTuringMachineFunction
  • OneSidedTuringMachineFunctionPlot
  • OneSidedTuringMachinePlot
  • OneSidedTuringMachineRuntimePlot
  • onesRunDefinitions
  • ParityBlock
  • proofGraph
  • RenderAxiomGrid
  • RenderConfiguration
  • RenderEquation
  • RenderUniversalGoal
  • RuleSpacePanel
  • RunMachine
  • SettingsPanel
  • ShowTapeConfiguration
  • StatementPanel
  • System3Evolution
  • System3EvolutionPlot
  • System3
  • System3ToWolfram23
  • System4Evolution
  • System4EvolutionPlot
  • System4
  • System4ToSystem3
  • System4ToSystem5
  • System5Evolution
  • System5EvolutionPlot
  • System5
  • System5ToCyclicTagSystem
  • System5ToSystem4
  • TagSystemEvolution
  • TagSystemEvolutionPlot
  • TagSystem
  • TagSystemToCyclicTagSystem
  • TagSystemToTuringMachine
  • TokenEventPanel
  • transitionAxiomsFor
  • TuringMachineEvolutionPlot
  • TuringMachineOutput
  • TuringMachineOutputWithStepsFloat
  • TuringMachineOutputWithSteps
  • TuringMachineOutputWithStepsWidthsFloat
  • TuringMachineOutputWithStepsWidths
  • TuringMachineRuleCases
  • TuringMachineRuleCount
  • TuringMachineSteps
  • TuringMachineStepsWidths
  • TuringMachineToTagSystem
  • TuringMachineWidths
  • TuringMachineWorstCasePlot
  • unboundAxiom
  • Wolfram23Evolution
  • Wolfram23EvolutionPlot
  • Wolfram23ToSystem5
  • zerosRunDefinitions
  • $InductiveProofColors
  • $PvsNPStyles

Overviews

  • TuringMachine
WolframInstitute`TuringMachine`
System5ToSystem4
​
System5ToSystem4
[s5,f]
gives the System 4 tape that emulates the System 5 program s5 with the parameter f.
​
Details and Options
▪
The result is a
System4
tape, with the keys
"Elements"
(sets, given as lists of integers, and stars
"*"
),
"Active"
(the index of the active element, counting from 0) and
"State"
(
"A"
,
"B"
or
"C"
).
▪
The tape is the bag as one set, f star–empty-set pairs, and a block of
8f
elements for each rule. It has
1+2f+8fr
elements for r rules.
▪
The emulation is faithful when f is large enough;
EmulationParameters
gives the value the proof uses, which exceeds twice the length of the System 5 run.
▪
It transcribes the Lean definition
BiTM.system5ToSystem4
of the formal proof in the paclet repository (
Proofs/
), and the paclet tests compare the two on shared vectors.
​
Examples  
(3)
Basic Examples  
(2)
The System 4 tape of a one-rule program with f = 1:
In[1]:=
System5ToSystem4

System5
[{1,3},{{1},{}}],1
Out[1]=
System4

​
Smith's program of p. 33 with f = 2:
In[1]:=
s4=
System5ToSystem4

System5
[{2},{{1,4},{1,6},{},{}}],2
Out[1]=
System4

The tape has
1+2f+8fr
elements:
In[2]:=
Length[s4["Elements"]]
Out[2]=
69
Scope  
(1)

SeeAlso
System4Evolution
 
▪
System4ToSystem5
 
▪
System4ToSystem3
 
▪
EmulationParameters
TechNotes
▪
SmithsUniversalityProof
RelatedGuides
▪
TuringMachine
""

© 2026 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com