Order without repetition

n plus one, and no fewer

Slide a window along a chain and count what it can show. A periodic chain runs out of new views; an aperiodic one never does; and the fewest an aperiodic chain can manage is one more than the window's length — which is exactly what the Fibonacci chain manages.

Assumes The smallest quasicrystal and Order is not periodicity.

Every argument for aperiodicity on this site so far has been an argument about how the thing was made. The Fibonacci chain never repeats because its tile ratio is irrational; a Penrose tiling never repeats because its inflation factor is; a cut-and-project set never repeats because the strip’s slope is. Each is correct, and each requires knowing the recipe.

There is a measurement that does not.

Slide a window of length n along the chain and count how many different things it ever shows. Call the answer p(n). It is a count of distinct blocks of tiles — nothing else — and it can be made by somebody handed the sequence with no idea where it came from.

5 windows of length 4. Every distinct block of 4 consecutive tiles that occurs anywhere in the Fibonacci chain, listed. There are 5 of them. A periodic chain of period q would show at most q whatever the window length; a chain with no structure at all would show every one of the 16 possible blocks. This one shows 5, and the count is what the next figures follow as the window lengthens.
Fig. 1 Every distinct block of four consecutive tiles occurring anywhere in the Fibonacci chain. There are five. A chain with no structure at all would show all sixteen; a chain of period four would show four.

What the count does when the chain repeats

If a chain has period q then a window longer than q sees the same q blocks over and over, one for each starting phase. So p(n) stops growing, permanently, at or before q.

That is the easy direction and it suggests the hard one. Marston Morse and Gustav Hedlund proved the converse in 1938, and it is much stronger than the obvious statement:

If p(n) ≤ n for even a single value of n, the chain is eventually periodic.

Not “if p stops growing” — a single failure to exceed the window length, at one length, forces periodicity everywhere. The consequence, taken the other way round, is the one this essay is about: an aperiodic chain has p(n) ≥ n + 1 for every n, without exception, and the chains that achieve exactly n + 1 are as close to periodic as a non-periodic sequence is permitted to get.

The Fibonacci chain: p(n) = n + 1. The number of distinct windows of each length in the Fibonacci chain, measured by sliding a window along 46,368 tiles. Every count is checked against the same count on half the chain, and only lengths where the two agree are drawn — a factor count on a finite word is otherwise a lower bound wearing the clothes of an answer.
Fig. 2 The Fibonacci chain’s window counts. Two blocks of length one, three of length two, four of length three: exactly n + 1 at every length measured, sitting on the line that is the theoretical minimum for a chain that never repeats.

Two windows of length one, because there are two tile lengths. Three of length two, not four — SS never occurs, and that single missing block is what pins the whole chain to the minimum. Every extra length adds exactly one new block and forbids all the others.

7 windows of length 6. Every distinct block of 6 consecutive tiles that occurs anywhere in the Fibonacci chain, listed. There are 7 of them. A periodic chain of period q would show at most q whatever the window length; a chain with no structure at all would show every one of the 64 possible blocks. This one shows 7, and the count is what the next figures follow as the window lengthens.
Fig. 3 The same at length six: seven blocks out of a possible sixty-four. The chain is not short of variety by accident — each new length admits precisely one new arrangement, which is what the straight line in the previous figure is made of.

The comparison that makes the number mean something

A count of five is small or large depending on what it is next to. So the same measurement is made on chains built four other ways.

Five chains, five ways of growing. The number of distinct windows against window length, for five chains. The periodic one stops growing at its period, which by Morse–Hedlund is what periodicity is. The random one doubles until the chain runs out of length. The three aperiodic ones grow linearly and at different rates, and the slowest possible rate is the straight line n + 1, which the Fibonacci chain sits exactly on.
Fig. 4 Five chains, measured identically. The periodic control flattens at seven, which is its period. The random control doubles until the chain runs out of length to sample. The three aperiodic ones grow linearly at three different rates, and the slowest possible rate is the line the Fibonacci chain sits on.

The periodic control is the one that matters. A chain of period seven has p(7) = 7, which is ≤ 7, so Morse–Hedlund fires and reports it periodic with period at most seven — correctly, and as a proof rather than an observation. That is the direction of the theorem a finite measurement can actually use.

The random control shows what “no structure” looks like: p(n) = 2ⁿ, every block occurring, until the chain is too short to contain them all. Between 2ⁿ and n + 1 is the whole range of possibilities, and the aperiodic chains of interest sit at the very bottom of it.

3 chains of 7 sit exactly on n + 1. Every chain measured out to windows of 12 tiles, with its window counts and the verdict. One is caught as periodic, by the count failing to exceed the window length — which is a proof, not an observation. 3 sit exactly on n + 1 and are therefore Sturmian: the Fibonacci chain, the silver chain, and the projected chain, which are three constructions of the same kind of object. The rest are aperiodic with room to spare.
Fig. 5 Every chain measured, with the verdict. One is caught as periodic. Three sit exactly on n + 1 — the Fibonacci chain, the silver chain and a chain built by projection at the golden slope — and these are the Sturmian sequences, arrived at from three unrelated constructions.

Three constructions, one minimum

The three chains achieving n + 1 are worth naming individually, because their agreement is not a coincidence and is not a definition.

The Fibonacci chain comes from a substitution: a long tile becomes long-short, a short tile becomes long.

The silver chain comes from a different substitution: long becomes long-long-short, short becomes long, with the silver ratio 1 + √2 as its inflation factor instead of the golden ratio.

The projected chain comes from cut and project: integer lattice points inside a strip of irrational slope, projected onto the strip’s direction, with no substitution anywhere.

All three give p(n) = n + 1. That is the class of Sturmian sequences, and the theorem behind the agreement — every Sturmian sequence is a mechanical word from some irrational slope, and vice versa — is why the substitution chains and the projection chains keep turning out to be the same objects. This site has met that fact twice before, in the equality of the substitution and projection constructions and in the extra dimension that makes a chain periodic again. Here it appears as a shared value of one counted number.

5 windows of length 4. Every distinct block of 4 consecutive tiles that occurs anywhere in the silver-ratio chain, listed. There are 5 of them. A periodic chain of period q would show at most q whatever the window length; a chain with no structure at all would show every one of the 16 possible blocks. This one shows 5, and the count is what the next figures follow as the window lengthens.
Fig. 6 The silver chain’s blocks of four, listed the same way the Fibonacci chain’s were. There are five of them, which is the same number — and they are not the same five. Three are common to both chains; where the Fibonacci chain has LSLS and SLSL, the silver chain has LLLS and SLLL, which is its rule’s two long tiles in a row showing through. n + 1 is a count and not a repertoire: two Sturmian chains agree on how many arrangements occur at every length and disagree about which, because the count is fixed by the theorem and the identities are fixed by the slope. That is the first sign that complexity is a coarse invariant, and it is the reason a later essay has to measure return gaps to tell these chains apart at all.

The chains behind all of this are generated rather than sampled: the substitution is applied until the word runs past forty-six thousand tiles, and every count above is taken over the whole of it. A count over a short chain is a count of what the chain had room for, which is the failure mode the random control on this page exhibits — it doubles until it runs out of length and then flattens, and the flattening is an artefact of the sample rather than a property of the sequence.

The second test, which agrees and shares no code

There is an independent characterisation of the same class, and running both is the point.

A chain is balanced when any two windows of the same length contain counts of the long tile differing by at most one. It is a statement about how evenly the tiles are spread, with nothing at all to say about how many arrangements occur — a chain could in principle be very even and very various, or lumpy and monotonous.

Balanced, or not, and it picks out the same chains. A chain is balanced when any two windows of the same length contain counts of one tile differing by at most one — no stretch is richer in long tiles than any other. That is a completely different measurement from counting distinct windows, and it selects the same chains: exactly the ones with p(n) = n + 1 are balanced. Two independent characterisations of the same class, measured here on the same chains with no code in common between them.
Fig. 7 The largest spread in long-tile counts between two windows of a length, measured over twenty-four lengths. The Sturmian chains never exceed one. The Thue–Morse chain reaches two and the period-doubling chain three, and the random chain reaches sixteen.

The two tests select the same chains. Exactly the chains with p(n) = n + 1 are the balanced ones, which is a theorem — and which is here a measurement made twice, by procedures with no code in common, agreeing on seven chains.

The Thue–Morse chain is the useful failure here: it is genuinely aperiodic, so it passes the test that matters, and it is neither minimal nor balanced, so it fails both of these. Aperiodicity is one property and being Sturmian is a much stronger one, and a measurement that conflated them would report the same verdict for both chains.

That is the kind of agreement this site’s habit is built around, and it is worth being precise about what it is worth. It does not prove the theorem. It does establish that a bug producing wrong window counts would have to produce a matching bug in a completely different sliding-count routine to escape notice, which is not a thing bugs generally do.

Which inflation factors a tiling may have. Every distinct inflation factor produced by a two-letter substitution whose matrix has entries up to 4, plotted against its algebraic conjugate. The two grey lines are the unit circle, which in the quadratic case is the pair of values ±1. A factor whose conjugate lies strictly inside is a Pisot number and the chain it grows has sharp Bragg peaks; 39 of the 77 factors here lie outside and cannot. The golden ratio is the smallest of them all, which is the arithmetic reason it turns up in every quasicrystal anybody has drawn.
Fig. 8 The inflation factors a substitution can have, from the enumeration that produces them. The chains measured above are three of these, and their window counts do not distinguish them at all — which is the first hint that complexity is a coarse invariant.

The blocks that never occur are the local rules

A low window count is the same statement as a long list of forbidden blocks, and reading it that way connects this measurement to an argument the aperiodic field has already had.

At length two there are four possible blocks and the Fibonacci chain shows three: SS never occurs, because a short tile is produced only from a long one and always arrives with a long tile beside it. At length three there are eight possible and four occur, so four are forbidden. At each length the chain admits exactly one more block than the length, and forbids everything else — and the number forbidden grows like 2ⁿ while the number permitted grows like n.

That is what a local rule is. Matching rules and what actually forces aperiodicity is about exactly this trade: a decoration on tiles that forbids certain local arrangements, in the hope that the forbidding leaves only aperiodic possibilities. The window count is the same information gathered from the other end — instead of stating the rules and asking what they allow, it takes the chain and reads off what it never does.

The essay that argued the rules do not by themselves force aperiodicity has a sharp form here. Forbidding SS does not produce the Fibonacci chain. The periodic chain LLSLSLS forbids SS too, and so does LS repeated, and so do infinitely many others. A finite list of forbidden blocks defines a set of sequences, and the Fibonacci chain is one member of a set that contains periodic sequences as well. What the substitution supplies, and the forbidding does not, is which member.

Low complexity is therefore necessary and nowhere near sufficient, and the same asymmetry appears in the plane: Penrose’s matching rules famously do force aperiodicity, and that is a hard theorem about a particular decoration rather than a consequence of the tiles being restrictive. Counting windows tells a reader how restricted a structure is. It does not tell them that the restriction is doing any forcing.

What a finite measurement can and cannot conclude

The asymmetry here is sharp and it is the reason this essay is careful.

A measurement can prove periodicity. Observing p(n) ≤ n at one length is a proof, by the theorem, that the chain is eventually periodic with period at most p(n). The periodic control is caught this way, at n = 7.

A measurement cannot prove aperiodicity. Observing p(n) = n + 1 for n up to twelve is entirely consistent with a chain of period four hundred, whose complexity would not flatten until well past anything measured. What the essays here have is the construction proving aperiodicity and the measurement agreeing with it — and the agreement is a check on the construction rather than a substitute for it.

Every count is checked for having settled. A factor count on a finite word is a lower bound: a block might occur first at position ten million. So every count here is made twice, once on the whole chain and once on its first half, and only lengths where the two agree are reported. On a chain of forty-six thousand tiles that leaves plenty of room, and the rows where it does not are dropped rather than drawn.

The random control is not random. It is a fixed pseudo-random stream, so that a figure drawn twice is the same figure — the fleet’s rule about generators being functions of their arguments. What it is standing in for is a chain with no long-range order at all, and its behaviour is 2ⁿ until it runs out of length, which is the honest ceiling.

Where this puts the quasicrystals

The counting reframes a claim that has been made several times on this site in a form that is now measurable rather than rhetorical.

Order is not periodicity argues that a chain can be completely determined, completely non-random, and never repeat. In the language of this essay: it has linear complexity and unbounded complexity at once. Linear, because p(n) grows like a constant times n rather than exponentially, which is what “determined” means quantitatively. Unbounded, because it never flattens, which is what “never repeats” means.

Periodic chains have bounded complexity. Random chains have exponential complexity. The quasicrystalline middle is exactly the linear band, and the Fibonacci chain is at its lower edge.

Periodic and aperiodic orderA periodic pattern repeats: there is a translation that maps it exactly onto itself. An aperiodic one does not, and yet it is completely determined and has sharp diffraction — order and repetition are different properties, which is what quasicrystals forced the subject to separate.periodic — a translation maps it to itselfrotation orders limited to 1, 2, 3, 4, 6aperiodic — no translation doesfive-fold symmetry, and sharp diffractionthe restriction assumes periodicity on its first line
Fig. 9 The old argument, drawn: a periodic patch and an aperiodic one, in a window small enough that nothing distinguishes them. The window count is what distinguishes them, and it needs a window that grows.

And it explains why quasicrystal diffraction is sharp. A structure whose local arrangements are this restricted has patch frequencies that converge — every block of length n occurs at a definite rate — and that is what a sharp Bragg peak needs. The connection is not proved here and the essays that measure diffraction measure it rather than deciding it; what the count supplies is the reason to expect the measurement to come out that way.

Where the exactness stops

The counts are exact and the conclusions are bounded. Every number reported is an exact count of distinct substrings of a specific finite word, at a length where the count has been shown to have settled.

The theorem is quoted, not proved. Morse–Hedlund is used in the direction that catches the periodic control, and its statement is given rather than derived. The same for the equivalence of Sturmian, balanced and mechanical, which is Coven and Hedlund’s, 1973.

Nothing here is two-dimensional. A Penrose tiling has a patch-counting function too, and it grows like n² rather than like n — the plane has more room for arrangements than the line. That computation is not made here, and the essays’ claims about Penrose tilings continue to rest on their construction rather than on any count.

A chain is not a crystal. These are one-dimensional sequences of two tile lengths, which is where the arithmetic is short enough to be checked completely, and the rule the site holds itself to applies: the exact machinery is for periodic patterns in the plane, and everything about aperiodic structures here is a measurement with its limits stated.

Who found it, and when

Marston Morse and Gustav Hedlund published Symbolic dynamics in 1938, where the complexity function and the periodicity criterion appear together. Their motivation was geodesics on surfaces of negative curvature, not tilings, and the sequences they were studying were codings of trajectories.

Sturmian sequences are older than the name, going back to work of Jean Bernoulli III in 1772 on the fractional parts of multiples of an irrational, and to Christoffel and to Markov in the nineteenth century. Morse and Hedlund named them in 1940 after Jacques Charles François Sturm, whose connection to them is indirect at best.

The three-way equivalence — minimal complexity, balanced, mechanical — was completed by Ethan Coven and Hedlund in 1973. The chains here satisfy all three, and the essay’s figures measure two of them.

Quasicrystals arrived independently and forty years later. When Shechtman’s diffraction pattern appeared in 1984, the mathematics of low-complexity sequences was decades old and belonged to symbolic dynamics; the two literatures took some time to notice each other. The word quasiperiodic is used in both with meanings that do not quite coincide, which is a hazard for a reader crossing between them.

What the growth rate is a measure of

The complexity function has been read here as a count at each length. Its rate of growth is a quantity in its own right, it has a standard name, and it puts the three chains of this essay at one end of a scale whose other end this collection has already measured.

The topological entropy of a chain is the limit of log p(n) / n — how fast the count grows, on a logarithmic scale, per unit of window length. For a chain with p(n) = n + 1 the logarithm grows like log n and the ratio goes to zero. For the random control, p(n) = 2ⁿ and the entropy is log 2.

So the Sturmian chains have zero entropy, and that is the sharpest statement of what “ordered but not periodic” means: they are as far from random as a non-periodic chain can be, in a measure that makes the comparison exact rather than rhetorical.

It also connects this measurement to the counting essays. The count of arrangements a local rule allows is the same quantity for a two-dimensional rule — a growth per site, obtained as a limit — and the dimer rule’s 1.3385 and the ice rule’s 1.5 are entropies in the same sense. A rule leaving that much freedom has positive entropy; a Sturmian chain has none.

And that is why the chains are the right model for a quasicrystal and the local rules are not. A structure with positive entropy has exponentially many arrangements and no particular one; a structure with zero entropy has, in the limit, essentially one. Sharp diffraction needs the second.

The same question in the plane, which is open

The Morse–Hedlund criterion is a complete answer in one dimension, and the corresponding statement in two is a conjecture — which is worth recording, because it is the kind of gap a reader would not expect.

Count the distinct m × n rectangular patches a two-dimensional configuration shows, and call it P(m, n). Nivat’s conjecture says that if P(m, n) ≤ mn for some pair m, n, the configuration is periodic in at least one direction. It is the exact analogue of the one-dimensional statement, with mn in place of n.

It is not proved. Partial results exist — the conjecture is known under stronger hypotheses, and it is known that some bound of that shape forces periodicity — and the general case has been open since the 1990s. The three-dimensional analogue is false, with counterexamples known, so the conjecture is specific to the plane rather than a pattern that continues.

That is worth setting beside this essay’s own asymmetry. In one dimension a measurement can prove periodicity and cannot prove aperiodicity; in two dimensions it is not known whether a measurement can prove periodicity at all. The line is where the counting is a theorem, and everything this collection says about complexity is said there for that reason.

Where this ladder goes

The count says how many arrangements occur. The next rung asks a question the count cannot answer: how far apart two copies of the same arrangement can be.

Three chains here share the value n + 1 exactly, so the complexity cannot distinguish them at all. Their return gaps can, and the answer turns out to be governed by the continued fraction of the underlying slope — which is where the golden ratio stops being one irrational among many and becomes the specific one that makes patches come back soonest.

That is worth anticipating, because the two measurements pull in opposite directions and a reader could reasonably expect one to determine the other. The window count says how various a chain is; the return gap says how evenly that variety is distributed along it. A chain can be minimal in the first sense and badly behaved in the second, and the next rung’s figures show four chains that are identical under the first measurement and differ by a factor of ten under the second.

What this makes readable

Essays that name this one as a prerequisite.

Named alongside this one

Essays reaching for the same objects. Nobody chose these; they are what the concept index makes visible.

What links here

Every essay whose body links to this one.

The objects this essay names

Each one links to every other essay that touches it.

AperiodicityBalanceDecidabilityFactor complexityThe Fibonacci chainLocal rulesLong-range orderMorse hedlundSturmianSubstitution