Wolfram Research

Function Repository Resource:

TagSystemRulePlot

Source Notebook

Generate the rule icon for a tag system

Contributed by: Stephen Wolfram

ResourceFunction["TagSystemRulePlot"][rules]

generates a plot representing rules for a tag system.

Details and Options

The three dots in the representation for each rule stand for the rest of the elements in the sequence.

Examples

Basic Examples

Generate rule icons from A New Kind of Science, page 93:

In[1]:=
rules1 = {{{0} -> {1, 0}, {1} -> {1, 0}}, {{0} -> {0, 1}, {1} -> {1, 0}}, {{0} -> {0, 1}, {1} -> {0}}};
In[2]:=
ResourceFunction["TagSystemRulePlot"] /@ rules1
Out[2]=

Rules from A New Kind of Science, page 94:

In[3]:=
rules2 = {{{0, 0} -> {1, 1}, {1, 0} -> {}, {0, 1} -> {1, 0}, {1, 1} -> {0, 0, 0}}, {{0, 0} -> {}, {1, 0} -> {1}, {0, 1} -> {1, 1}, {1, 1} -> {1, 1, 0}}, {{0, 0} -> {0}, {1, 0} -> {1, 0, 1}, {0, 1} -> {0, 0, 0}, {1, 1} -> {0, 1, 1}}, {{0, 0} -> {0, 1}, {1, 0} -> {1, 0, 0}, {0, 1} -> {0}, {1, 1} -> {1, 0, 0}}, {{0, 0} -> {1, 0}, {1, 0} -> {1}, {0, 1} -> {0, 1, 0}, {1, 1} -> {0, 0, 1}}, {{0, 0} -> {0}, {1, 0} -> {0, 1, 0, 1}, {0, 1} -> {0, 0}, {1, 1} -> {1, 1, 1, 0}}};
In[4]:=
ResourceFunction["TagSystemRulePlot"] /@ rules2
Out[4]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

Source Metadata

License Information