Affine cellular automaton: Difference between revisions
Fixed a "¬" |
No edit summary |
||
| Line 16: | Line 16: | ||
==Black-white reversal== | ==Black-white reversal== | ||
If the sum <tt>w_1 + ... + w_n</tt> is odd, then <tt>f(x_1, ..., x_n) = ¬f(¬x_1, ..., ¬x_n)</tt>, and therefore the affine function is equal to its own [[black/white reversal]]. But if the sum <tt>w_1 + ... + w_n</tt> is even, then <tt>f(x_1, ..., x_n) != ¬f(¬x_1, ..., ¬x_n)</tt>, and its black/white reversal is given by <tt> | If the sum <tt>w_1 + ... + w_n</tt> is odd, then <tt>f(x_1, ..., x_n) = ¬f(¬x_1, ..., ¬x_n)</tt>, and therefore the affine function is equal to its own [[black/white reversal]]. But if the sum <tt>w_1 + ... + w_n</tt> is even, then <tt>f(x_1, ..., x_n) != ¬f(¬x_1, ..., ¬x_n)</tt>, and its black/white reversal is given by <tt>w_1 x_1 ⊕ w_2 x_2 ⊕ ... ⊕ w_n x_n ⊕ ¬b</tt>. | ||
Revision as of 22:07, 12 July 2025
A 2-state cellular automata is affine when each cell's transition function is an affine boolean function. A boolean function is said to be affine when each of its inputs either always or never affects its output. Equivalently, a boolean function is said to be affine when it can be written as f(x_1, ..., x_n) = w_1 x_1 ⊕ w_2 x_2 ⊕ ... ⊕ w_n x_n ⊕ b, where w_1, ..., w_n, b are booleans. The set of affine boolean functions also turns out to be exactly the set of functions that can be created from the XOR gate and the constant 1 function.
One-dimensional affine cellular automata
Among the 256 elementary cellular automata (that is, 2-state 1D cellular automata which operate on the 1D Moore neighbourhood), only 88 of them are non-equivalent (up to symmetry and black/white reversal). Among these 88 non-equivalent rules, only nine of them are affine (for instance, the rules 0, 15, 51, 60, 90, 105, 150, 170, 204).
Two-dimensional affine cellular automata
Among the 229 2-state 2D cellular automaton operating on the Moore neighbourhood, only 210 = 1024 of them are affine. Among these, only 153 of them are non-equivalent (up to rotation, symmetry, and black/white reversal).
Universality
It is currently unknown whether there exists an affine universal cellular automata.
Black-white reversal
If the sum w_1 + ... + w_n is odd, then f(x_1, ..., x_n) = ¬f(¬x_1, ..., ¬x_n), and therefore the affine function is equal to its own black/white reversal. But if the sum w_1 + ... + w_n is even, then f(x_1, ..., x_n) != ¬f(¬x_1, ..., ¬x_n), and its black/white reversal is given by w_1 x_1 ⊕ w_2 x_2 ⊕ ... ⊕ w_n x_n ⊕ ¬b.