Parity rule: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
m note general case for enumeration, link rule 150
Line 6: Line 6:


The behaviour of several classes of patterns in two-dimensional cellular automata, notably [[replicator]]s, are dictated by these parity rules.
The behaviour of several classes of patterns in two-dimensional cellular automata, notably [[replicator]]s, are dictated by these parity rules.
An <tt>s</tt>-state rulespace in an <tt>n</tt>-cell neighbourhood has <tt>s<sup>s<sup>n</sup></sup></tt> rules. However, each state can be assigned an integer in <tt>[0,s)</tt>, then parity rules assign weights to each neighbour in a modular sum, meaning it has only <tt>s<sup>n</sup></tt> parity rules.


==Etymology==
==Etymology==
Line 13: Line 15:
All two-state rules with two-cell neighbourhoods have evolution forming Sierpinski triangles, the only range-1 [[one-dimensional cellular automaton]] which does not is {{rl|rule 150}}.
All two-state rules with two-cell neighbourhoods have evolution forming Sierpinski triangles, the only range-1 [[one-dimensional cellular automaton]] which does not is {{rl|rule 150}}.


On February 1, 2022, [[Jiahao Yu]] showed a construction of oscillators of arbitrary period in rule 150, in finite tapes with differing edge states. <ref>{{LinkForumThread|format=ref|f=11|t=4330|p=141100|title=Re: B34kz5e7c8/S23-a4ityz5k (!)|author=yujh|date=February 1, 2022}}</ref>
On February 1, 2022, [[Jiahao Yu]] showed a construction of oscillators of arbitrary period in {{rl|rule 150}}, in finite tapes with differing edge states. <ref>{{LinkForumThread|format=ref|f=11|t=4330|p=141100|title=Re: B34kz5e7c8/S23-a4ityz5k (!)|author=yujh|date=February 1, 2022}}</ref>


=== Table ===
=== Table ===

Revision as of 15:33, 28 July 2024

Parity rules (or odd rules) are a specific class of one-dimensional cellular automata which may be defined to have each cell's state determined by the XOR of their neighbourhood for two-state patterns, and more generally, their sum modulo p for higher prime state numbers p.

XOR (and summation modulo an integer) is a distributive; using the ⊕ symbol, a⊕(b⊕c) = (a⊕b)⊕c. As such, a parity rule is distributive with XOR; for a parity rule r, beginning with two states, S and T, r(S⊕T) = r(S)⊕r(T). Since XOR is not a universal logic gate , no parity rule may be Turing-complete.

Although XOR is bijective, parity rules are not, since some admit nonempty patterns that vanish under their application, with which a pattern's predecessor may be XORed; however, such a perturbation must be infinite, so all finite patterns have unique finite predecessors.

The behaviour of several classes of patterns in two-dimensional cellular automata, notably replicators, are dictated by these parity rules.

An s-state rulespace in an n-cell neighbourhood has ssn rules. However, each state can be assigned an integer in [0,s), then parity rules assign weights to each neighbour in a modular sum, meaning it has only sn parity rules.

Etymology

Rather than each cell being the XOR of its neighbourhood, consider each cell being convolved with its neighbourhood rotated 180º, and both the universe Ut and the neighbourhood N to be multivariate polynomials (in as many variables as there are dimensions), with the cell at coordinates (n,k) being the parity of the coefficient of xn*yk (ie. its coefficients are over GF(2) ), then performing an iteration of the cellular automaton is equivalent to multiplication by N (ie. Ut+1 = Ut*N).

In one dimension

All two-state rules with two-cell neighbourhoods have evolution forming Sierpinski triangles, the only range-1 one-dimensional cellular automaton which does not is rule 150.

On February 1, 2022, Jiahao Yu showed a construction of oscillators of arbitrary period in rule 150, in finite tapes with differing edge states. [1]

Table

An incomplete table of parity rules with prime n states and m>= copies is as follows:

Copies / States 2 3 5 7 11 13 17 19
0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1
2 2 2 2 2 2 2 2 2
3 3 3 3 3
4 4 4 4 4
5 5 5 5 5
6 6 6 6 6
7 7 7 7 7
8 8 8 8 8
9 9 9 9 9
10 10
11 11
12 12
13 13
14 14
15 15
16 16
17 17
18 18
19 19
20 20
21 21
22 22

In two dimensions

Replicator and Fredkin are parity rules in the outer-totalistic neighbourhood whose neighbourhoods exclude and include the central cell.

There are 2n2 anisotropic parity rules in an n × n neighbourhood, and A054247(n) up to symmetry.

References

  1. ↑ yujh (February 1, 2022). Re: B34kz5e7c8/S23-a4ityz5k (!) (discussion thread) at the ConwayLife.com forums