Ternary scale theorems/Twisted case

Revision as of 09:03, 28 November 2026 by Inthar (talk | contribs) (→Case YY)
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

  1. the filling word F = F(Y, Z) is alternating (has period 2)
  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).

Let m be the minimal length of a subword u of T with |u|W = 2. Clearly m ≥ 2, and by the above m ≤ ℓ. We first claim that m < ℓ; in particular, m-long subwords do not violate balance.

m < ℓ

Assume by way of contradiction that m = ℓ. Consider our original ℓ-long subwords (of w) u = Xu'X and v = (Y|Z)v'(Y|Z). By the minimality of m have v' = Xℓ - 2, and since u has two more Xs than v we have u' = Xℓ - 2. By the discrete intermediate value theorem, we have two words w and w' each with one W (by going clockwise resp. counterclockwise from u = Xℓ). We have two cases:

  1. v = Yv'Z (Zv'Y is symmetric)
  2. v = Yv'Y (Zv'Z is symmetric)

In the first case w has one Y and no Z and w' has one Z and no Y, contradicting MV3; in the second case s must have a subword with Z somewhere else, also a contradiction to MV3.

F is alternating

Suppose by way of contradiction that YY is a substring of F (the ZZ case is similar). We proceed by case analysis on m. Note that since m-long subwords are balanced, chunks of X in T come in at most two sizes: m - 2 and m - 1.

Case m > 2

We have two cases:

  1. s contains YXm - 2Y
  2. s contains YXm - 1Y

Case 1

By minimality of m, T does not contain WW, so s contains XYXm - 2Y.

If s contains at least one of ZXm - 2(Y|Z) and (Y|Z)Xm - 2Z, then by the same argument s must contain a string whose abelianization is Z + (m - 1)X, which contradicts MV3. So any occurrence of Z must be flanked by Xm - 1 on both sides. So we have at least the following (m + 1)-step vectors:

  1. one from (Y|Z)Xm - 1Z
  2. one from Xm - 1ZX
  3. one from XYXm - 2Y

Since F must contain ZY, s contains the subword ZXm - 1Y, implying the presence of XYXm - 1, which gives a fourth (m + 1)-step vector. Contradiction to MV3.

Case 2

Again, the substring YXm - 1Y must extend to XYXm - 1Y, giving two (m + 1)-step vectors, one with one Y and one with two.

Since F must contain ZY, s contains the subword ZXm - 2Y or ZXm - 1Y, extending to XZXm - 2YX or XZXm - 1YX.

Subcase XZXm - 1Y: Extend to XZXm - 1YX, then we have two more (m + 1)-step vectors, one with only X and Z and one with all three letters. Contradiction to MV3.

Subcase XZXm - 2Y:

  • If the subword extends to X(Y|Z)Xm - 1ZXm - 2YX:
    • The case XZXm - 1ZXm - 2YX gives two more (m + 1)-step vectors, one with one Z and one with two. Contradiction to MV3.
    • The case XYXm - 1ZXm - 2YX has a substring that is symmetrical to a previous contradictory subcase (XZXm - 1Y).
  • If the subword extends to X(Y|Z)Xm - 2ZXm - 2YX:
    • The case XZXm - 2ZXm - 2YX yields four different m-step vectors, contradiction to MV3.
    • The case XYXm - 2ZXm - 2YX is treated below.
A very tricky subcase

We know: no YXm - 2Y, no ZXm - 1Y, no YXm - 1Z. Also no ZXm - 2Z or ZXm - 1Z because of MV3. This restricts the allowed transitions to: YXm - 1Y, YXm - 2Z, ZXm - 2Y.

For m = 3:

If F has only one occurrence of YY, F = (YZ)tY, t ≥ 1, and we have s = (XYXZ)tXYX. This is the Fraenkel word XYXZXYX (contradictory because it's balanced), or otherwise contradictory because XYXZX, YXZXY, ZXYXZ, and XYXXY give four different 5-step vectors. So F has more than one occurrence of YY (not necessarily disjoint). A chunk of Y 3 or more letters long implies we have XYXXYXXY...YXXYXZXYXX, giving XXYXX, XYXXY, XYXZX, and YXZXY, contradicting MV3. So F must be an element of the monoid generated by YZ and YYZ, with at least one factor of YZ and one factor of YYZ.

  • F contains YZYYZ ⇒ XZXYXZXYXXYXZXY ⇒ 4 different 5-step vectors: XZXYX, ZXYXZ, XYXXY, YXZXY.
  • F contains YYZYZ ⇒ XZXYXXYXZXYXZXY ⇒ ibid.

So m > 3. We count (m + 1)-step subwords of YXm - 2ZXm - 2YXm - 2, contradicting MV3:

  • YXm - 1Y
  • YXm - 2ZX
  • XXZXm - 2
  • XXYXm - 2

Case m = 2

Two cases:

  1. s contains YY
  2. s does not contain YY

Case YY

Since m-step vectors do not violate balance, s does not contain XX; the other possible 2-step vectors are X + Y, X + Z, Y + Z and 2Z. By ternarity and letter transition, the only three possible cases are:

Case X + Y and X + Z
Case X + Y and Y + Z

Case no YY