Order without repetition

A fault in the deep layers costs exactly the fine peaks

Redraw the period-doubling chain's deep layers at random, site by site, and every peak finer than the fault's depth vanishes while every coarser one stays exactly where and as high as it was — provided the random letters keep the layers' own density, which is a third below an even layer and two thirds below an odd one. The lost intensity, (2/9)·2⁻ʳ, comes back as a flat floor to the last digit. Redraw them once per layer instead and nothing is lost at all: every peak survives, with a height drawn by lottery.

Assumes An aperiodic chain whose peaks are all at rational positions, The average scatters sharply and the rest does not and The streaks a faulted stack makes.

The period-doubling chain is aperiodic and diffracts in nothing but sharp peaks, and the account of where they sit rested on one construction. Number the letters from zero. Letter nn is bb exactly when the power of two dividing n+1n + 1 is odd. Sorting the letters by that power splits the chain into layers, layer jj being every site whose n+1n + 1 is 2j2^j times an odd number, and every layer is periodic, with period 2j+12^{j+1}, and carries a single letter. The chain is the union of infinitely many periodic chains, and its diffraction is the sum of theirs: a peak at every fraction m/2sm/2^s, the same height 23⋅2−s\frac23 \cdot 2^{-s} for every odd mm, and nothing in between.

A chain like that, ordered without being periodic, invites a question a crystallographer would ask of any layered structure. Real stacks are not perfect. The layers of a close-packed metal or of silicon carbide’s many polytypes are put down one at a time and now and then put down wrongly, and the streaks a faulted stack makes found what that does to an ordinary crystal: some rows of reflections stay sharp, and others smear. The period-doubling chain is a stack in a stranger sense, its layers interleaved rather than piled, the deep ones ever sparser. What does a fault in the deep layers do to it?

The answer turns out to be exact, and it depends sharply on how the fault is made. Redraw the deep layers site by site and the chain loses precisely its fine peaks, each one, and nothing else. The intensity they carried comes back as a perfectly flat floor, to the last digit of a closed form. Redraw the same layers once per layer and the chain loses nothing at all.

Deep sites, and two ways to spoil them

Call a site deep at depth rr when 2r2^r divides n+1n + 1. The deep sites are layers rr, r+1r + 1, r+2r + 2 and so on, together, and they form one arithmetic progression, every 2r2^r-th site. A fault at depth rr redraws some of their letters at random and leaves the shallow layers alone, which is the arithmetic version of a stack whose first few layers were laid down carefully and whose later ones were not.

There are two natural ways to draw the new letters, and the two figures below this section keep them apart. In a site fault, each deep site independently has its letter redrawn, with probability qq, as bb with probability pp and aa otherwise. When q=1q = 1 every deep site is redrawn. In a layer fault, each deep layer draws one letter, at random, and every site of that layer carries it. The site fault breaks the layers up into independent coin tosses. The layer fault keeps every layer periodic and only changes what each one says.

The period-doubling chain with its deep layers randomised two ways. The first 48 letters of the period-doubling chain (b dark), and below it the same chain with every site at depth 2 or more redrawn at random: in the middle row each deep site independently, with b at the deep layers' own density, and in the bottom row one letter per deep layer, the same for every site of that layer. The deep sites, every 4th, are outlined; a dot marks a letter that differs from the perfect chain. The shallow layers are untouched in both. The middle row is no longer built of periodic layers; the bottom row still is.
Fig. 1 The picture at the head of this essay. Forty-eight letters of the period-doubling chain (b dark) and the same chain faulted below depth 2 two ways: each deep site redrawn on its own (middle) and each deep layer given one random letter (bottom). The deep sites, every fourth, are outlined; a dot marks a letter that changed. The middle row is no longer made of periodic layers; the bottom row still is.

The perfect chain itself fixes the most natural value of pp. Among the deep sites at depth rr, half belong to layer rr, a quarter to layer r+1r + 1, and so on, and the odd layers carry bb. If rr is odd the first deep layer carries bb, and the share of bb among the deep sites is 12+18+⋯=23\frac12 + \frac18 + \cdots = \frac23. If rr is even it is 14+116+⋯=13\frac14 + \frac1{16} + \cdots = \frac13. Call this share dd. A fault that draws bb with probability dd keeps the composition of the deep sites and of the whole chain unchanged on average. It is the faithful fault, and it is the one a physical mechanism that does not care about the chemistry would produce.

The fine peaks go, and nothing else moves

A random chain’s diffraction separates into two parts, and the average scatters sharply and the rest does not is the general statement. Replace every letter by its expected value and diffract that: this gives the Bragg peaks. What remains, the variance of each letter about its expectation, scatters as independent noise, and for letters drawn independently from site to site it spreads evenly over every frequency, a flat floor whose total is the average variance per site.

For the site fault both parts can be written down. The shallow sites keep their letters, so their expected value is their letter. A deep site keeps its own letter with probability 1−q1 - q and is redrawn with probability qq, so its expected value is (1−q)(1 - q) times its own letter plus qpq p. The expected chain is therefore the perfect chain with every deep letter scaled by 1−q1 - q, plus a constant qpqp on the deep sites.

The second piece is a comb, a constant on every 2r2^r-th site, and a comb of period 2r2^r diffracts only at multiples of 2−r2^{-r}. So it touches the coarse peaks, those at m/2sm/2^s with s≤rs \le r, and no others. The first piece is the perfect chain’s deep part scaled down, and the deep part is the only part that reaches a fine peak. The layer sum in the earlier account gave layer jj an amplitude at denominator 2s2^s only when j≥s−1j \ge s - 1, and a fine peak has s>rs > r, so every layer that reaches it is deep. A fine peak sees nothing but the deep layers, and sees them scaled by 1−q1 - q. With q=1q = 1 it sees nothing at all.

A fault in the deep layers keeps the coarse peaks and turns the fine ones into a floor. Intensity per frequency bin of 4,096 letters of the period-doubling chain, logarithmic, from k = 0 to ½. Upper panel, the perfect chain: peaks at every dyadic fraction, those of denominator up to 16 dark and the finer ones light, each generation a quarter of the one before. Lower panel, the same chain with every site at depth 4 or more redrawn at random with b at the layers' own density: the 9 peaks at multiples of 1/16 are unchanged, every finer peak has gone, and in their place is a flat scatter of weak bins (a sample of them is drawn) around the floor's expected share of one bin.
Fig. 2 Intensity per frequency bin of 4,096 letters, logarithmic, from 0 to ½. Above: the perfect chain, a peak at every dyadic fraction, the coarse ones dark. Below: the same chain with every site of depth 4 or more redrawn at the deep layers’ own density. The peaks at multiples of 1/16 are untouched; every finer peak has gone; the bins between them hold a flat scatter around the floor’s share of one bin (dashed; a sample of the bins is drawn).

The coarse peaks need one more step. At a frequency m/2sm/2^s with s≤rs \le r, every deep site sits at the same phase, because the deep sites are 2r2^r apart and 2r2^r times the frequency is a whole number. The deep sites therefore contribute to a coarse peak only through their total, the number of bb among them, and not through which ones carry it. Scaling the deep letters by 1−q1 - q and adding qpqp changes that total by q(p−d)q(p - d) per deep site, so every coarse amplitude moves by

ΔA=q (p−d) 2−r,\Delta A = q\,(p - d)\,2^{-r},

and the move is zero exactly when p=dp = d. A faithful fault leaves every coarse peak where and as high as it was, and removes every fine one. On 65,536 letters faulted below depth 4, the five coarse peaks out to 116\frac1{16} agree with the perfect chain’s to within 10−310^{-3}, about twice the scatter one random chain of that length carries, while the peak at 132\frac1{32}, which held 4.3×10−44.3 \times 10^{-4} of the intensity, is reduced to a bin of the floor.

The books balance at every depth

What the fine peaks carried is known exactly from the perfect chain. At denominator 2s2^s there are 2s−12^{s-1} peaks of intensity 49⋅4−s\frac49 \cdot 4^{-s}, which is 29⋅2−s\frac29 \cdot 2^{-s} together, so everything finer than 2r2^r carries 29⋅2−r\frac29 \cdot 2^{-r}. And what the floor holds is known exactly from the variance. A deep site that carried bb is bb afterwards with probability 1−q+qp1 - q + qp; one that carried aa is bb with probability qpqp. Averaging the variance of a coin over the deep sites and multiplying by their density 2−r2^{-r} gives the floor, and at p=dp = d the algebra collapses to

floor=q (2−q)  d (1−d)  2−r.\text{floor} = q\,(2 - q)\; d\,(1 - d)\; 2^{-r}.

For a complete fault, q=1q = 1, that is d(1−d)⋅2−rd(1 - d) \cdot 2^{-r}. The parity of rr changes dd from a third to two thirds, and d(1−d)d(1 - d) does not notice: it is 29\frac29 either way. So the floor is exactly the fine peaks’ intensity, 29⋅2−r\frac29 \cdot 2^{-r}, at every depth.

Every bit of intensity the fine peaks lose reappears in the floor. For a fault starting at each layer r from 1 to 8, the intensity the perfect chain's peaks finer than 1/2ʳ carried together, (2/9)·2⁻ʳ (bars, logarithmic), against the total intensity measured off those peaks' positions in a chain of 32,768 letters with every deep site redrawn at the layers' own density (dots). The ratio sits within a few per cent of one at every r, the scatter being that of one random chain: the floor is made of exactly what the fine peaks had.
Fig. 3 For a fault from each depth r = 1 to 8: what the perfect chain’s peaks finer than 1/2r1/2^r carried, (2/9)⋅2−r(2/9)\cdot 2^{-r} (bars, logarithmic), and the intensity measured off those positions in one faulted chain of 32,768 letters (dots). The ratio stays within a few per cent of one, the scatter of a single random chain, and the last row is the least exact because it averages the fewest deep sites.

The balance had to come out, and that is what makes it a check rather than a discovery. Parseval’s identity says the total intensity of the bb sites, per site, is their density, a third, and a faithful fault keeps the density. The coarse peaks were shown unchanged by the phase argument, so whatever the fine peaks lose has nowhere to go but the floor. But the two sides of the ledger were computed by routes that share nothing. The fine peaks’ share came from the layer sums of the perfect chain, which never mention a variance. The floor came from the variance of a coin, which never mentions a layer sum. That d(1−d)d(1 - d) lands on 29\frac29 for both parities is the two routes agreeing, and an error in either, a wrong height for the perfect chain’s peaks or a wrong variance for the redrawn letters, would have broken it. An unfaithful fault breaks it legitimately: the coarse peaks move, Parseval then balances by moving intensity between the coarse peaks and the floor, and the floor no longer matches the fine peaks’ share.

The measurement agrees. One random chain of 32,768 letters per depth gives ratios of measured floor to lost intensity of 1.002, 1.000, 0.983, 1.026, 1.007, 1.010 and 0.986 for depths one to seven. At depth eight the deep sites number only 128 and the ratio is 0.925, which is one random chain’s scatter rather than a disagreement. The closed form has no free parameter to absorb a discrepancy, so a single slip in the variance, such as forgetting that a site can be redrawn to the letter it already had, would have shown at every depth at once.

Only one density spares the coarse peaks

The faithful density is not a detail. Draw the deep letters at any other density and the coarse peaks move by q(p−d)⋅2−rq(p - d) \cdot 2^{-r}, all of them in the same direction along the deep comb’s phase. At depth 4 the zero peak, the average density, moves from 0.3333 to 0.3438 when bb is drawn with probability one half, and the measured chain gives 0.3431. The peak at 116\frac1{16} moves further in proportion, because it is smaller.

The coarse peaks survive only at the density the deep layers had. The modulus of the peak at 1/2ʳ after a fault redraws every deep site, against the probability p of drawing b, as a fraction of the perfect chain's value: for a fault from layer 4 (falling line, peak at 1/16) and from layer 5 (rising line, peak at 1/32). Lines are the exact amplitude, dots a chain of 16,384 letters. Each line meets one only at the deep layers' own density of b, 1/3 below an even layer and 2/3 below an odd one. At any other density the coarse peaks change as well, which makes the density, not the randomness, what decides whether the fault touches them.
Fig. 4 The peak at 1/2r1/2^r after a complete site fault, against the probability p of drawing b, as a fraction of the perfect chain’s height. Falling line: fault from depth 4, peak at 1/16. Rising line: fault from depth 5, peak at 1/32. Lines are exact, dots are chains of 16,384 letters. Each meets the perfect value only at the deep layers’ own density, 1/3 below an even layer and 2/3 below an odd one.

The two lines in the figure cross the line of the perfect chain at different places, and the reason is the same parity that sets dd. Below an even depth the first deep layer carries aa, the deep sites are a third bb, and drawing more bb than that weakens the peak at 116\frac1{16}, because the shallow layer that subtracts from it is a bb layer. Below an odd depth everything reverses. A coin with the right bias for one depth is the wrong coin for the next. An unbiased coin, the obvious choice for a model of random faulting, is faithful at no depth at all, and at every depth it shifts the coarse peaks by a sixth of 2−r2^{-r}.

That gives the coarse peaks a use. If the fine peaks of a faulted limit-periodic structure are gone, they say nothing about the fault except its depth. The coarse peaks carry the fault’s composition. A measured zero peak or first coarse peak that departs from the perfect structure’s value by ΔA\Delta A fixes q(p−d)q(p - d), which is how far the faulting process prefers one letter over the composition it replaced.

A partial fault is a step, not a slope

A real stacking fault does not redraw every deep site. Take qq less than one, with the faithful density. Every fine peak’s amplitude is scaled by 1−q1 - q, so its intensity is scaled by (1−q)2(1 - q)^2, and every coarse peak is untouched. The floor rises as q(2−q)q(2 - q) to meet exactly what the fine peaks lose, 1−(1−q)21 - (1 - q)^2 of their share.

A partial fault dims the fine peaks by one factor, whatever their position. A fraction q of the deep sites below layer 3 redrawn at the layers' own density, and the height of the peaks at each denominator as a fraction of the perfect chain's, averaged over every odd numerator and four chains of 65,536 letters. The three coarse denominators, 2, 4 and 8 (squares), stay at one for every q. The four finer ones, 16 to 128 (dots), all fall together along (1 − q)², the line. The damage is a step at the fault's depth, the same for a peak at 1/16 as at 1/128, and not a slope in frequency.
Fig. 5 A fraction q of the sites below depth 3 redrawn at the faithful density, and the height of the peaks at each denominator as a fraction of the perfect chain’s, averaged over every odd numerator and four chains of 65,536 letters. The coarse denominators 2, 4 and 8 (squares) stay at one; the fine ones, 16 to 128 (dots), fall together along (1−q)2(1 - q)^2.

The shape of that loss is worth setting beside the one every crystallographer knows. Thermal vibration also takes intensity out of Bragg peaks and spreads it between them, and it does so by the Debye–Waller factor, which for a displacement of mean square ⟨u2⟩\langle u^2 \rangle is exp⁡(−4π2k2⟨u2⟩)\exp(-4\pi^2 k^2 \langle u^2 \rangle) in one dimension. It grows with the frequency, smoothly, so high-angle reflections fade first and a single temperature factor fitted across all of them describes the loss. A warm plane crystal is the extreme case, where the factor goes to zero for every reflection.

A deep fault does something no smooth function of kk can mimic. Below depth 3, the peak at 116\frac1{16} and the peak at 716\frac7{16}, much further out, lose the same fraction, while the peak at 14\frac14, between them in frequency, loses nothing. The damage is indexed by the denominator, not by the distance from the origin. A refinement that fitted a temperature factor to such a pattern would find the fit impossible: intensities would need to drop at 116\frac1{16}, recover at 18\frac18 and 14\frac14, and drop again at 516\frac5{16}. That impossibility is itself the diagnosis, the signature of disorder organised by layer rather than by position.

The same partial-fault arithmetic gives a measure of how faulted a sample is from a single ratio. Every fine peak divided by its perfect value is (1−q)2(1 - q)^2, at every fine denominator. Four averaged chains reproduce it to within a few hundredths at four denominators and five values of qq, the worst point being 0.276 against 0.25 at denominator 128, where the peak is weakest and a single bin’s scatter weighs most.

Once per layer, every peak survives

The question the earlier account left open was whether randomness could produce scattering that is neither peak nor smooth floor, and specifically whether a random choice made once per layer might. It cannot, and the reason is one line. A layer that carries one letter at all its sites is still periodic. A chain built from periodic layers, whatever letter each one carries, is still a Toeplitz sequence, and the argument that gave the perfect chain pure point diffraction never used which letters the layers carried. Every realisation of the layer fault is a limit-periodic chain in its own right.

The heights change, and they can be predicted from the letters drawn. Write cjc_j for the letter of layer jj, one for bb and zero for aa. The amplitude at m/2sm/2^s is, up to a phase,

∣ −cs−1 2−s+∑j≥scj 2−j−1∣,\Bigl|\,-c_{s-1}\,2^{-s} + \sum_{j \ge s} c_j\,2^{-j-1}\Bigr|,

the same layer sum as before with the perfect chain’s alternating letters replaced by whatever was drawn. It is still the same for every odd mm at one denominator, so the peaks still come in equal families, and the families’ heights are now a lottery.

One random letter per layer keeps every peak and only moves the heights. Four chains of 32,768 letters in which every layer from the third down carries one letter drawn at random, b or a with equal odds, for all of its sites; the letters drawn for layers 3 to 8 are listed. For each, the peak modulus at 1/2ˢ for s = 1 to 9 (dots), against the perfect chain's (2/3)·2⁻ˢ (line). The coarse peaks move a little, the finer ones by up to an order of magnitude either way, but every denominator still carries a peak whose height the drawn letters predict exactly, and nothing becomes diffuse.
Fig. 6 Four chains of 32,768 letters faulted below depth 3, each deep layer carrying one random letter for all its sites, and the peak modulus at 1/2s1/2^s for ss = 1 to 9 against the perfect chain’s (dashed). Every denominator still has its peak, and every height agrees with the letters drawn to within 2×10−52 \times 10^{-5}. A run of b layers gives several denominators the same height.

The figure shows one regularity that the formula explains. In the first draw the layers from three to six all carry bb, and the peaks at 116\frac1{16}, 132\frac1{32}, 164\frac1{64} and 1128\frac1{128} come out with one height. Each step from ss to s+1s + 1 drops the subtracting term of layer s−1s - 1 and turns layer ss’s positive term into a subtracting one, so the amplitude changes by 2−s2^{-s} times the difference of the two layers’ letters. It does not change at all when the two layers carry the same letter, bb or aa. A run of identical letters makes a plateau of equal peaks, and the perfect chain, whose letters alternate, is the one arrangement in which no two generations are equal.

A peak can vanish under a layer fault, but only in one way: if every layer from s−1s - 1 onward draws aa, the sum is zero and the peaks at denominator 2s2^s and beyond are all gone. That realisation is not a random chain at all but a periodic one, the approximant of period 2s−12^{s-1}, and it has probability zero. With probability one, a layer fault keeps every peak the perfect chain had and puts nothing anywhere else. The answer to the earlier question is no. A random choice per layer gives peaks and only peaks, and a random choice per site gives peaks and a floor. Neither gives anything in between.

How to tell a peak from a floor

On a finite chain every frequency bin holds some intensity, and a peak at one size and a strong bin of floor can look alike. The test that separates them is what the length does. A Bragg peak’s amplitude is an average over the chain and converges to a fixed value. A floor’s amplitude in one bin is a sum of independent random terms divided by the length, so it shrinks as one over the square root of the length.

A peak holds its height as the chain grows; a floor's bin sinks. The modulus of the amplitude at k = 3/64, a peak of the perfect chain, against the length of the chain from 1,024 to 65,536 letters, for three chains faulted from layer 4: none, per site, per layer. The perfect chain and the per-layer fault hold a fixed height, at 1.0e-2 and 1.3e-2: both are Bragg peaks. The per-site fault scatters around √(floor/N), falling by half with every quadrupling of the length, which is what a bin of diffuse scattering does and a peak never does.
Fig. 7 The modulus of the amplitude at 3/64 against the length of the chain, 1,024 to 65,536 letters, for the perfect chain, a site fault from depth 4 and a layer fault from depth 4. The perfect chain and the layer fault hold their heights; the site fault scatters about floor/N\sqrt{\text{floor}/N}, halving with every quadrupling of the length.

At 364\frac3{64} the perfect chain holds 1.0×10−21.0 \times 10^{-2} from 1,024 letters to 65,536, the layer-faulted chain holds 1.3×10−21.3 \times 10^{-2}, and the site-faulted chain falls from 4×10−34 \times 10^{-3} to 3×10−43 \times 10^{-4}, following the square-root line with the irregularity that a single random sum carries. The same test was used in neither a peak nor a bump to decide that the Thue–Morse chain has no peaks away from the integers, and it is the only test a finite computation can offer. What it shows is a trend, and the proofs that the floor is flat and the peaks are exactly where the formula says are the algebra above.

What the account has to refuse

What the faulted chains have to refuse. The tests the account of the faulted period-doubling chain is held to: the coarse peaks unchanged by a faithful site fault, the fine ones gone, the floor equal to what they carried at every depth, the coarse peaks moved by an unfaithful density, the partial fault's single factor, the per-layer fault's peaks at their predicted heights, the growth test that separates a peak from a floor, and the claim of a surviving fine peak. Each could have failed.
Fig. 8 Eight tests, each able to fail: coarse peaks unchanged by a faithful fault, fine peaks gone, the floor equal to what they carried at every depth, coarse peaks moved by an unfaithful density, the partial fault’s single factor, the layer fault’s predicted heights, the length test, and the claim of a surviving fine peak.

The refused claim is the natural misreading of the first figure: that a fault from depth 4 merely weakens the peak at 132\frac1{32}. Its amplitude after a complete site fault is 4.7×10−44.7 \times 10^{-4} on 65,536 letters, against 2.1×10−22.1 \times 10^{-2} in the perfect chain, and it falls further with length. The other tests guard the arithmetic. The coarse peaks are compared at the faithful density and at a density of one half, where they must move by the predicted amount and not otherwise. The floor is compared with the closed form at six depths, and the layer fault’s heights with the letters actually drawn.

What the figures cannot show

Every figure is one random chain, or four, of a few tens of thousands of letters, and the statements are about averages over infinitely long chains. The decomposition into peaks from the average and a floor from the variance holds almost surely, for almost every realisation, in the infinite limit; a finite chain shows it with a scatter that the figures show honestly rather than average away. Nothing here measures how fast a given realisation converges, and the per-layer heights in particular depend on infinitely many letters, of which a chain of 2152^{15} letters sees fifteen.

The conventions matter. The scatterer is a unit on every bb site and nothing on aa; with scattering lengths faf_a and fbf_b every intensity above scales by (fb−fa)2(f_b - f_a)^2 apart from the zero peak, and the floor scales the same way. The faults are independent from site to site. A fault that is correlated along a layer, the same wrong letter for a stretch and then a different one, is neither of the two cases here, and the figures say nothing about it. And the chain is one-dimensional. The streaks a faulted stack makes is the three-dimensional analogue for close packing, where faults are correlated between neighbouring layers and some rows of reflections are spared by an integer condition. Here the condition is the denominator, and the sparing is total.

Who worked it out

Stacking faults in layered crystals were first analysed by Hendricks and Teller and by Wilson in 1942. The split of a random structure’s diffraction into the diffraction of its average and a diffuse part from its variance is standard. Baake, Birkner and Moody worked it through rigorously for random point sets in 2010, and Baake and Grimm’s Aperiodic Order of 2013 sets out the period-doubling chain’s own spectrum. Toeplitz sequences in general, with any letters on the layers, were studied by Jacobs and Keane from 1969, and the pure point diffraction of a layer-faulted chain follows from the same construction as period doubling’s. The faithful density, the itemised ledger, the step loss and the plateaus of equal peaks are computed here.

Still open: a fault that runs along a layer

The two faults here are the extremes of one family. A site fault draws a fresh letter at every deep site; a layer fault draws one letter for a whole layer and keeps it. In between is a fault that keeps a letter for a stretch of a layer and then redraws it, the way a real fault persists over a domain before the stacking recovers. Such a layer is a periodic comb multiplied by a slowly varying random sequence, and its diffraction should be the comb’s peaks broadened into humps of width set by the stretch, centred on the fine positions rather than spread flat. That would be scattering that is neither a peak nor a floor, at exactly the frequencies how much of the hat is a crystal would call the aperiodic part, and the transition from humps to peaks as the stretches lengthen is a computation on the same chains. It has not been made. The question also has a version for the Fibonacci chain, whose structure is not a stack of periodic layers at all, where it is not even clear what a deep fault would mean.

Named alongside this one

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

The objects this essay names

Each one links to every other essay that touches it.

AperiodicityApproximantBragg peakDebye waller factorDiffractionDiffuse scatteringStacking fault