TOPICS
Search

Substitution System


A substitution system is a map that applies rules to transform the elements of one sequence into a new sequence. For example, the substitution system {1->0,0->11} would take 10->011->1100->001111->11110000->....

The geometric counterpart replaces tiles by configurations of tiles, producing a substitution tiling when the replacements fit together and can be iterated (Frank 2008). Glassner (1992) gives a tutorial on geometric substitution for generating shapes in computer graphics.

For rules that consume blocks, an update can scan the old string from left to right, consuming each matched block once and emitting an output that is first scanned at the next update. Consider (00->0010,1->100) and (00->0101,1->010) with isolated zeros copied in both cases. Starting from 00, Wu (2026) proved that their length sequences agree. With the seed at n=0, the lengths begin 2, 4, 8, 16, 34, 72, ... (OEIS A288260), and satisfy

 a_(n+4)=2a_(n+3)+2a_(n+1)-3a_n

for n>=0. The two rule sets can produce different strings of the same length.

For a letterwise substitution, choose a seed letter and repeatedly replace each letter by its prescribed word. The factor language consists of all substrings of the resulting iterates. A factor is reflected if its reversal also belongs to the language (Allouche et al. 2025).

On the alphabet {1,...,n} with n>=3, let sigma_n send i to i+1 for i<n and send n to the two-letter word (1,2). Alexander (2026) reports a Lean proof that the factor language is independent of the seed letter. It contains the reflected factor (1,2,1), and no factor of length at least four is reflected. In the case n=3, the lengths of the iterates starting from letter 1 form the Padovan sequence.

The same exclusion of reflected factors from length four onward, and seed independence, hold for a substitution on the 12 pairs (a,b) with 1<=a<=3 and 1<=b<=4 (Alexander 2026). To obtain the image of (a,b), take the letters c in sigma_3(a) in order and, for each c, list (c,d) for the letters d in sigma_4(b) in order. The three-letter factor with successive letters (2,1), (2,2), and (2,1) is reflected.


See also

Golden Ratio, Multiway System, Rauzy Fractal, Sequential Substitution System, String Rewriting System, Substitution Tiling, Tag System, Thue Constant, Thue-Morse Sequence

Explore with Wolfram|Alpha

References

Alexander, S. "The Orientation Threshold 4 for the Substitutions of x^n-x-1, n>=3, and the Twelve-Letter rhoQ Tensor." Palomar Registry, Nov. 26, 2026. https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-26-000046&version=1.Allouche, J.-P.; Campbell, J. M.; Li, S.; Shallit, J.; and Stipulanti, M. "The Reflection Complexity of Sequences over Finite Alphabets." Theory Comput. Syst. 69, 31, 2025. https://doi.org/10.1007/s00224-025-10234-x.Frank, N. P. "A Primer of Substitution Tilings of the Euclidean Plane." Expo. Math. 26, 295-326, 2008. https://doi.org/10.1016/j.exmath.2008.02.001.Glassner, A. S. "Geometric Substitution: A Tutorial." IEEE Comput. Graph. Appl. 12, 22-36, 1992. https://doi.org/10.1109/38.135881.Wolfram, S. A New Kind of Science. Champaign, IL: Wolfram Media, pp. 82-92, 2002.Sloane, N. J. A. Sequence A288260 in "The On-Line Encyclopedia of Integer Sequences."Wu, D. "Two Binary Substitution Length Identities." Palomar Registry, Nov. 29, 2026. https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-29-000010&version=1.

Referenced on Wolfram|Alpha

Substitution System

Cite this as:

Weisstein, Eric W. "Substitution System." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/SubstitutionSystem.html

Subject classifications