Parity rule: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
m Muzik moved page User:Muzik/Page drafts/Parity rule to Parity rule without leaving a redirect: I think this is honestly sufficient for an actual page
Line 10: Line 10:
Rather than each cell being the XOR of its neighbourhood, consider each cell being convolved with its neighbourhood rotated 180º, and both the universe <tt>U<sub>t</sub></tt> and the neighbourhood <tt>N</tt> to be multivariate polynomials (in as many variables as there are dimensions), with the cell at coordinates <tt>(n,k)</tt> being the parity of the coefficient of <tt>x<sup>n</sup>*y<sup>k</sup></tt> (ie. its coefficients are over <tt>{{LinkWikipedia|GF(2)|name=GF(2)|nobullet=no|nosuffix=no}}</tt>), then performing an iteration of the cellular automaton is equivalent to multiplication by <tt>N</tt> (ie. <tt>U<sub>t+1</sub> = U<sub>t</sub>*N</tt>).
Rather than each cell being the XOR of its neighbourhood, consider each cell being convolved with its neighbourhood rotated 180º, and both the universe <tt>U<sub>t</sub></tt> and the neighbourhood <tt>N</tt> to be multivariate polynomials (in as many variables as there are dimensions), with the cell at coordinates <tt>(n,k)</tt> being the parity of the coefficient of <tt>x<sup>n</sup>*y<sup>k</sup></tt> (ie. its coefficients are over <tt>{{LinkWikipedia|GF(2)|name=GF(2)|nobullet=no|nosuffix=no}}</tt>), then performing an iteration of the cellular automaton is equivalent to multiplication by <tt>N</tt> (ie. <tt>U<sub>t+1</sub> = U<sub>t</sub>*N</tt>).


==In one dimension==
== In one dimension ==
All 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 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 ===
An incomplete table of parity rules with prime n states and m>= copies is as follows:
{| class="wikitable" style="margin-left:auto;margin-right:auto;"
|-
! Copies / States
! 2
! 3
! 5
! 7
! 11
! 13
! 17
! 19
|-
| 0
| [https://www.wolframalpha.com/input/?i=totalistic+code+0%2C+range+0%2C+k%3D2 0]
| [https://www.wolframalpha.com/input/?i=totalistic+code+0%2C+range+0%2C+k%3D3 0]
| [https://www.wolframalpha.com/input/?i=totalistic+code+0%2C+range+0%2C+k%3D5 0]
| [https://www.wolframalpha.com/input/?i=totalistic+code+0%2C+range+0%2C+k%3D7 0]
| [https://www.wolframalpha.com/input/?i=totalistic+code+0%2C+range+0%2C+k%3D11 0]
| [https://www.wolframalpha.com/input/?i=totalistic+code+0%2C+range+0%2C+k%3D13 0]
| [https://www.wolframalpha.com/input/?i=totalistic+code+0%2C+range+0%2C+k%3D17 0]
| [https://www.wolframalpha.com/input/?i=totalistic+code+0%2C+range+0%2C+k%3D19 0]
|-
| 1
| [https://www.wolframalpha.com/input/?i=totalistic+code+2,+range+0 1]
| [https://www.wolframalpha.com/input/?i=totalistic+code+21%2C+range+0%2C+k%3D3 1]
| [https://www.wolframalpha.com/input/?i=totalistic+code+2930%2C+range+0%2C+k%3D5 1]
| [https://www.wolframalpha.com/input/?i=totalistic+code+800667%2C+range+0%2C+k%3D7 1]
| [https://www.wolframalpha.com/input/?i=totalistic+code+282458553905%2C+range+0%2C+k%3D11 1]
| [https://www.wolframalpha.com/input/?i=totalistic+code+300771807240918%2C+range+0%2C+k%3D13 1]
| [https://www.wolframalpha.com/input/?i=totalistic+code+824008854613343261192%2C+range+0%2C+k%3D17 1]
| [https://www.wolframalpha.com/input/?i=totalistic+code+1972313422155189164466189%2C+range+0%2C+k%3D19 1]
|-
| 2
| [https://www.wolframalpha.com/input/?i=totalistic+code+2%2C+range+1%2F2 2]
| [https://www.wolframalpha.com/input/?i=totalistic+code+102%2C+k%3D3 2]
| [https://www.wolframalpha.com/input/?i=totalistic+code+1346680%2C+k%3D5 2]
| [https://www.wolframalpha.com/input/?i=totalistic+code+78050441406%2C+k%3D7 2]
| [https://www.wolframalpha.com/input/?i=totalistic+code+6586222450703605327750%2C+k%3D11 2]
| [https://www.wolframalpha.com/input/?i=totalistic+code+6419372999636112720601772856%2C+k%3D13 2]
| [https://www.wolframalpha.com/input/?i=totalistic+code+37581346912155384453475051708000423897984%2C+k%3D17 2]
| [https://www.wolframalpha.com/input/?i=totalistic+code+193926904132624676169874342242330762326555414118%2C+k%3D19 2]
|-
| 3
| [https://www.wolframalpha.com/input/?i=totalistic+code+10 3]
| [https://www.wolframalpha.com/input/?i=totalistic+code+588%2C+k%3D3 3]
| [https://www.wolframalpha.com/input/?i=totalistic+code+546268555%2C+k%3D5 3]
| [https://www.wolframalpha.com/input/?i=totalistic+code+7283418740756410%2C+k%3D7 3]
|-
| 4
| [https://www.wolframalpha.com/input/?i=totalistic+code+10%2C+range+3%2F2 4]
| [https://www.wolframalpha.com/input/?i=totalistic+code+15897%2C+k%3D3 4]
| [https://www.wolframalpha.com/input/?i=totalistic+code+181210331055%2C+k%3D5 4]
| [https://www.wolframalpha.com/input/?i=totalistic+code+633934041362897358069%2C+k%3D7 4]
|-
| 5
| [https://www.wolframalpha.com/input/?i=totalistic+code+42 5]
| [https://www.wolframalpha.com/input/?i=totalistic+code+74946%2C+k%3D3 5]
| [https://www.wolframalpha.com/input/?i=totalistic+code+89445126346680%2C+k%3D5 5]
| [https://www.wolframalpha.com/input/?i=totalistic+code+48745796121587159111890905%2C+k%3D7 5]
|-
| 6
| [https://www.wolframalpha.com/input/?i=totalistic+code+42%2C+range+5%2F2 6]
| [https://www.wolframalpha.com/input/?i=totalistic+code+429240%2C+k%3D3 6]
| [https://www.wolframalpha.com/input/?i=totalistic+code+%20279516019833377930%2C+k%3D5 6]
| [https://www.wolframalpha.com/input/?i=totalistic+code+3020027333325105171577645034668%2C+k%3D7 6]
|-
| 7
| [https://www.wolframalpha.com/input/?i=totalistic+code+170 7]
| [https://www.wolframalpha.com/input/?i=totalistic+code+11589501%2C+k%3D3 7]
| [https://www.wolframalpha.com/input/?i=totalistic+code++128429502286923221680%2C+k%3D5 7]
| [https://www.wolframalpha.com/input/?i=totalistic+code+303307994176760489207256272032557048%2C+k%3D7 7]
|-
| 8
| [https://www.wolframalpha.com/input/?i=totalistic+code+170%2C+range+7%2F2 8]
| [https://www.wolframalpha.com/input/?i=totalistic+code+54636222%2C+k%3D3 8]
| [https://www.wolframalpha.com/input/?i=totalistic+code+%2052096229165830624393555%2C+k%3D5 8]
| [https://www.wolframalpha.com/input/?i=totalistic+code+249787175448311863563211452038508129781731%2C+k%3D7 8]
|-
| 9
| [https://www.wolframalpha.com/input/?i=totalistic+code+682 9]
| [https://www.wolframalpha.com/input/?i=totalistic+code+312916548%2C+k%3D3 9]
| [https://www.wolframalpha.com/input/?i=totalistic+code+17281563859552183163456055%2C+k%3D5 9]
| [https://www.wolframalpha.com/input/?i=totalistic+code+21882173961066836418346172541889745296490304570%2C+k%3D7 9]
|-
| 10
| [https://www.wolframalpha.com/input/?i=totalistic+code+682%2C+range+9%2F2 10]
|-
| 11
| [https://www.wolframalpha.com/input/?i=totalistic+code+2730 11]
|-
| 12
| [https://www.wolframalpha.com/input/?i=totalistic+code+2730%2C+range+11%2F2 12]
|-
| 13
| [https://www.wolframalpha.com/input/?i=totalistic+code+10922 13]
|-
| 14
| [https://www.wolframalpha.com/input/?i=totalistic+code+10922%2C+range+13%2F2 14]
|-
| 15
| [https://www.wolframalpha.com/input/?i=totalistic+code+43690 15]
|-
| 16
| [https://www.wolframalpha.com/input/?i=totalistic+code+43690%2C+range+15%2F2 16]
|-
| 17
| [https://www.wolframalpha.com/input/?i=totalistic+code+174762 17]
|-
| 18
| [https://www.wolframalpha.com/input/?i=totalistic+code+174762%2C+range+17%2F2 18]
|-
| 19
| [https://www.wolframalpha.com/input/?i=totalistic+code+699050 19]
|-
| 20
| [https://www.wolframalpha.com/input/?i=totalistic+code+699050%2C+range+19%2F2 20]
|-
| 21
| [https://www.wolframalpha.com/input/?i=totalistic+code+2796202 21]
|-
| 22
| [https://www.wolframalpha.com/input/?i=totalistic+code+2796202%2C+range+21%2F2%2C+k%3D2 22]
|}


==In two dimensions==
==In two dimensions==

Revision as of 14:08, 29 March 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.

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