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

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[8]=

Visualize rules from A New Kind of Science, page 94:

In[9]:=
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[10]:=
ResourceFunction["TagSystemRulePlot"] /@ rules2
Out[10]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.1 – 15 July 2022
  • 1.0.0 – 25 February 2019

Source Metadata

License Information