Ternary scale theorems/Twisted case
- Main article: Ternary scale theorems
We know that ℓ ≤ |s|/2, since s is circular and if ℓ' > |s|/2 is a counterexample to balance then so is |s|/2 - ℓ'.
We prove that s = s(X, Y, Z) is obtained from letterwise substitution where
- the filling word F = F(Y, Z) is alternating (has period 2)
- the template binary word is a twisted MOS scale which comes from a MOS whose period is an ℓ-long Christoffel word in X and W with evenly many Ws (W is our slot letter). Equivalently, the template word is conjugate to a word of the form a1Pa2a3Pa4a5Pa6...ak-1Pak where
- P is a palindrome with coprime weak periods p and q such that p + q - 2 = |P| = ℓ - 2
- a1 = X and ak = W
- for every aiai+1 subword, ab(aiai+1) = X + W
- |P|W is odd.
(See "Combinatorics on Words: Christoffel Words and Repetitions in Words", Berstel et al. for the proof of the characterization of Christoffel words in terms of such palindromes.)
We have ℓ-long subwords u and v and a letter, say X, that violates balance, such that
[math]\displaystyle{ ||u|_{\mathbf{X}} - |v|_{\mathbf{X}}| \ge 2. }[/math]
Without loss of generality assume
[math]\displaystyle{ |u|_{\mathbf{X}} - |v|_{\mathbf{X}} \ge 2. }[/math]
Write u = au'c and v = bv'd. Since no pair of shorter subwords violates balance, we have
[math]\displaystyle{ |\mathbf{a}u^\prime|_{\mathbf{X}} - |\mathbf{b}v^\prime|_{\mathbf{X}} \le 1, |u^\prime\mathbf{c}|_{\mathbf{X}} - |v^\prime\mathbf{d}|_{\mathbf{X}} \le 1. }[/math]
Hence a = c = X, and b, d are non-X letters. (*)
Let T denote s(X, W, W). Then using the notation in the page MOS substitution, we have
[math]\displaystyle{ s = \mathsf{subst}(T, \mathbf{W}, F) }[/math]
for some filling word F = F(Y, Z).
To prove that F is alternating... (to be continued)