Rule 30


Rule 30 is an elementary cellular automaton introduced by Stephen Wolfram in 1983. Using Wolfram's classification scheme, Rule 30 is a Class III rule, displaying aperiodic, chaotic behaviour.
This rule is of particular interest because it produces complex, seemingly random patterns from simple, well-defined rules. Because of this, Wolfram believes that Rule 30, and cellular automata in general, are the key to understanding how simple rules produce complex structures and behaviour in nature. For instance, a pattern resembling Rule 30 appears on the shell of the widespread cone snail species Conus textile. Rule 30 has also been used as a random number generator in Mathematica, and has also been proposed as a possible stream cipher for use in cryptography.
Rule 30 is so named because 30 is the smallest Wolfram code which describes its rule set. The mirror image, complement, and mirror complement of Rule 30 have Wolfram codes 86, 135, and 149, respectively.

Rule set

In all of Wolfram's elementary cellular automata, an infinite one-dimensional array of cellular automaton cells with only two states is considered, with each cell in some initial state. At discrete time intervals, every cell spontaneously changes state based on its current state and the state of its two neighbors. For Rule 30, the rule set which governs the next state of the automaton is:
current pattern111110101100011010001000
new state for center cell00011110

The corresponding formula is . It is called Rule 30 because in binary, 000111102 = 30.
The following diagram shows the pattern created, with cells colored based on the previous state of their neighborhood. Darker colors represent "1" and lighter colors represent "0". Time increases down the vertical axis.

Structure and properties

The following pattern emerges from an initial state in which a single cell with state 1 is surrounded by cells with state 0.



Rule 30 cellular automaton

Here, the vertical axis represents time and any horizontal cross-section of the image represents the state of all the cells in the array at a specific point in the pattern's evolution. Several motifs are present in this structure, such as the frequent appearance of white triangles and a well-defined striped pattern on the left side; however the structure as a whole has no discernible pattern. The number of black cells at generation is given by the sequence
and is approximately.

Chaos

Wolfram based his classification of Rule 30 as chaotic based primarily on its visual appearance, and it was later shown to meet more rigorous definitions of chaos proposed by Devaney and Knudson. In particular, according to Devaney's criteria, Rule 30 displays sensitive dependence on initial conditions, its periodic configurations are dense in the space of all configurations, according to the Cantor topology on the space of configurations, and it is mixing. According to Knudson's criteria, it displays sensitive dependence and there is a dense orbit. Both of these characterizations of the rule's chaotic behavior follow from a simpler and easy to verify property of Rule 30: it is left permutative, meaning that if two configurations and differ in the state of a single cell at position, then after a single step the new configurations will differ at cell.

Applications

Random number generation

As is apparent from the image above, Rule 30 generates seeming randomness despite the lack of anything that could reasonably be considered random input. Stephen Wolfram proposed using its center column as a pseudorandom number generator ; it passes many standard tests for randomness, and Wolfram previously used this rule in the Mathematica product for creating random integers. Although Rule 30 produces randomness on many input patterns, there are also an infinite number of input patterns that result in repeating patterns. The trivial example of such a pattern is the input pattern only consisting of zeros. A less trivial example, found by Matthew Cook, is any input pattern consisting of infinite repetitions of the pattern '00001000111000', with repetitions optionally being separated by six ones. Many more such patterns were found by Frans Faase. See .
Sipper and Tomassini have shown that as a random number generator Rule 30 exhibits poor behavior on a chi squared test when applied to all the rule columns as compared to other cellular automaton-based generators. The authors also expressed their concern that "The relatively low results obtained by the rule 30 CA may be due to the fact that we considered N random sequences generated in parallel, rather than the single one considered by Wolfram."

Decoration

The Cambridge North railway station is decorated with architectural panels displaying the evolution of Rule 30. The design was described by its architect as inspired by Conway's Game of Life, a different cellular automaton studied by Cambridge mathematician John Horton Conway, but is not actually based on Life.