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`
System4ToSystem3
​
System4ToSystem3
[s4,w,h]
gives the System 3 tape that emulates the System 4 tape s4, with blocks of width
2^w
and a left end of h zeros.
​
Details and Options
▪
s4 must be an initial configuration: active element 0, state
"A"
, a set first.
▪
The result is a
System3
tape, with the keys
"Left"
(cells left of the head, nearest first),
"Head"
,
"Right"
and
"State"
; cells are 0, 1 and 2.
▪
Each set becomes a block of
2^w
cells of 1s and 2s whose parity scans give the set's members; a star becomes a 0. The left end is h zeros followed by
221
and a final 1 closes the tape.
▪
The emulation is faithful while the System 4 run, plus the band read by the decoder, fits in
2^w
− 3 scans and every set element is below
2^w
; the left end turns the head round h times.
▪
It transcribes the Lean definition
Smith.initAC,Smith.AC.toL
of the formal proof in the paclet repository (
Proofs/
), and the paclet tests compare the two on shared vectors.
​
Examples  
(1)
Basic Examples  
(1)
The System 3 tape of the System 4 tape
{0,2}*{}
with blocks of width 8:
In[1]:=
s3=
System4ToSystem3

System4
[{{0,2},"*",{}}],3,3
Out[1]=
System3

Its run:
In[2]:=
run=
System3Evolution
[s3,60]
Out[2]=
{Left{1,2,2,0,0,0},Head2,Right{2,1,2,2,2,2,2,0,2,2,2,2,2,2,2,1},StateA,Left{2,2,0,0,0},Head1,Right{2,2,1,2,2,2,2,2,0,2,2,2,2,2,2,2,1},StateA,Left{2,0,0,0},Head2,Right{1,2,2,1,2,2,2,2,2,0,2,2,2,2,2,2,2,1},StateA,Left{0,0,0},Head2,Right{2,1,2,2,1,2,2,2,2,2,0,2,2,2,2,2,2,2,1},StateA,Left{0,0},Head0,Right{2,2,1,2,2,1,2,2,2,2,2,0,2,2,2,2,2,2,2,1},StateA,Left{2,0,0},Head2,Right{2,1,2,2,1,2,2,2,2,2,0,2,2,2,2,2,2,2,1},StateB,Left{2,2,0,0},Head2,Right{1,2,2,1,2,2,2,2,2,0,2,2,2,2,2,2,2,1},StateC,Left{1,2,2,0,0},Head1,Right{2,2,1,2,2,2,2,2,0,2,2,2,2,2,2,2,1},StateB,Left{1,1,2,2,0,0},Head2,Right{2,1,2,2,2,2,2,0,2,2,2,2,2,2,2,1},StateB,Left{2,1,1,2,2,0,0},Head2,Right{1,2,2,2,2,2,0,2,2,2,2,2,2,2,1},StateC,Left{1,2,1,1,2,2,0,0},Head1,Right{2,2,2,2,2,0,2,2,2,2,2,2,2,1},StateB,Left{1,1,2,1,1,2,2,0,0},Head2,Right{2,2,2,2,0,2,2,2,2,2,2,2,1},StateB,Left{2,1,1,2,1,1,2,2,0,0},Head2,Right{2,2,2,0,2,2,2,2,2,2,2,1},StateC,Left{1,2,1,1,2,1,1,2,2,0,0},Head2,Right{2,2,0,2,2,2,2,2,2,2,1},StateB,Left{2,1,2,1,1,2,1,1,2,2,0,0},Head2,Right{2,0,2,2,2,2,2,2,2,1},StateC,Left{1,2,1,2,1,1,2,1,1,2,2,0,0},Head2,Right{0,2,2,2,2,2,2,2,1},StateB,Left{0,1,2,1,2,1,1,2,1,1,2,2,0,0},Head0,Right{2,2,2,2,2,2,2,1},StateA,Left{2,0,1,2,1,2,1,1,2,1,1,2,2,0,0},Head2,Right{2,2,2,2,2,2,1},StateB,Left{2,2,0,1,2,1,2,1,1,2,1,1,2,2,0,0},Head2,Right{2,2,2,2,2,1},StateC,Left{1,2,2,0,1,2,1,2,1,1,2,1,1,2,2,0,0},Head2,Right{2,2,2,2,1},StateB,Left{2,1,2,2,0,1,2,1,2,1,1,2,1,1,2,2,0,0},Head2,Right{2,2,2,1},StateC,Left{1,2,1,2,2,0,1,2,1,2,1,1,2,1,1,2,2,0,0},Head2,Right{2,2,1},StateB,Left{2,1,2,1,2,2,0,1,2,1,2,1,1,2,1,1,2,2,0,0},Head2,Right{2,1},StateC,Left{1,2,1,2,1,2,2,0,1,2,1,2,1,1,2,1,1,2,2,0,0},Head2,Right{1},StateB,Left{2,1,2,1,2,1,2,2,0,1,2,1,2,1,1,2,1,1,2,2,0,0},Head1,Right{},StateC}
The run drawn:
In[3]:=
ArrayPlot[PadRight[Join[Reverse[#["Left"]],{#["Head"]},#["Right"]]&/@run],ColorRules{0White,1LightGray,2Gray}]
Out[3]=
SeeAlso
System3Evolution
 
▪
System3ToWolfram23
 
▪
System5ToSystem4
 
▪
Wolfram23ToSystem5
TechNotes
▪
SmithsUniversalityProof
RelatedGuides
▪
TuringMachine
""

© 2026 Wolfram. All rights reserved.

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