Now that we have familiarized ourselves with (piecewise-constant) signals, let us go with the flow and explore lifting classical notions from combinatorics on words to signals.

Commutation

Two words commute iff they are powers of a common word, i.e. for u,v∈Σ∗u, v \in \Sigma^*, uv=vuuv = vu holds iff u,v∈w∗u, v \in w^* with w∈Σ∗w \in \Sigma^* (proof here). Let us provide a similar characterization of commutation over signals.

First, we consider the specific case where vv has a single piece.

Let u,v∈S(Σ)u, v \in \mathcal{S}(\Sigma) be such that v=aδv = a^\delta with δ>0\delta > 0. If uv=vuuv = vu, then u=aδ′u = a^{\delta'} with δ′≥0\delta' \geq 0.
Proof.

If ∣u∣=0|u| = 0, then the claim is trivial. Assume ∣u∣>0|u| > 0 and uv=vuuv = vu. Let seq(u)=σ1δ1⋯σnδn\mathrm{seq}(u) = \sigma_1^{\delta_1} \cdots \sigma_n^{\delta_n}. For the sake of contradiction, suppose there exists i∈[1..n]i \in [1..n] such that σi≠a\sigma_i \neq a. Let ii be minimal. Let α=δ1+…+δi−1\alpha = \delta_1 + \ldots + \delta_{i-1} and β=α+δi\beta = \alpha + \delta_i. By minimality of ii, we have u(τ)=au(\tau) = a for all τ∈(0,α]\tau \in (0, \alpha], and u(τ′)≠au(\tau') \neq a for all τ′∈(α,β]\tau' \in (\alpha, \beta]. We make a case distinction, and obtain a contradiction in both cases.

Case α≥δ\alpha \geq \delta. Since δ>0\delta > 0, we have α>0\alpha > 0. Let γ=min⁡(δi,δ)\gamma = \min(\delta_i, \delta), τ=α−δ+γ\tau = \alpha - \delta + \gamma and τ′=α+γ\tau' = \alpha + \gamma. Note that 0<τ≤α−δ+δ=α0 < \tau \leq \alpha - \delta + \delta = \alpha and α<τ′≤α+δi=β\alpha < \tau' \leq \alpha + \delta_i = \beta. Thus, we obtain the following contradiction:

a=u(τ)=u(τ′−δ)=(vu)(τ′)=(uv)(τ′)=u(τ′)≠a. a = u(\tau) = u(\tau' - \delta) = (vu)(\tau') = (uv)(\tau') = u(\tau') \neq a.

Case δ>α\delta > \alpha. Let γ=min⁡(δ−α,δi)\gamma = \min(\delta - \alpha, \delta_i) and τ=α+γ\tau = \alpha + \gamma. Since τ∈(0,δ]\tau \in (0, \delta], we have v(τ)=av(\tau) = a. Moreover, since α<τ≤α+δi=β\alpha < \tau \leq \alpha + \delta_i = \beta, we have u(τ)≠au(\tau) \neq a. Thus, we obtain a contradiction:

a=v(τ)=(vu)(τ)=(uv)(τ)=u(τ)≠a. a = v(\tau) = (vu)(\tau) = (uv)(\tau) = u(\tau) \neq a.
Let u,v∈S(Σ)u, v \in \mathcal{S}(\Sigma). We have uv=vuuv = vu iff u,v∈⟦σ‾⟧u, v \in \llbracket \underline{\sigma} \rrbracket for σ∈Σ\sigma \in \Sigma, or u,v∈w∗u, v \in w^* for w∈S(Σ)w \in \mathcal{S}(\Sigma).
Proof.

⇐\Leftarrow) If u=σαu = \sigma^\alpha and v=σβv = \sigma^\beta for some σ∈Σ\sigma \in \Sigma and α,β∈R>0\alpha, \beta \in \R_{>0}, then uv=σα+β=σβ+α=vuuv = \sigma^{\alpha + \beta} = \sigma^{\beta + \alpha} = vu. If u=wiu = w^i and v=wjv = w^j for some w∈S(Σ)w \in \mathcal{S}(\Sigma) and i,j∈Ni, j \in \N, then uv=wi+j=wj+i=vuuv = w^{i+j} = w^{j+i} = vu.

⇒\Rightarrow) We proceed by induction on #u+#v\# u + \# v. If uu or vv is empty, then the claim is trivial. If ∣u∣=∣v∣|u| = |v|, then we must have u=vu = v, and hence we are done. Assume ∣u∣>∣v∣>0|u| > |v| > 0 (the other case is symmetric).

Let seq(u)=σ1δ1⋯σnδn\mathrm{seq}(u) = \sigma_1^{\delta_1} \cdots \sigma_n^{\delta_n}. Since uv=vuuv = vu and ∣u∣>∣v∣|u| > |v|, we have u=vxu = vx for some x∈S(Σ)x \in \mathcal{S}(\Sigma). Thus, there exist α,β∈R≥0\alpha, \beta \in \R_{\geq 0} and i∈[1..n]i \in [1..n] such that

v=σ1δ1⋯σi−1δi−1σiα, x=σiβσi+1δi+1⋯σnδn and δi=α+β. v = \sigma_1^{\delta_1} \cdots \sigma_{i-1}^{\delta_{i-1}} \sigma_i^{\alpha},\ x = \sigma_i^{\beta} \sigma_{i+1}^{\delta_{i+1}} \cdots \sigma_n^{\delta_n} \text{ and } \delta_i = \alpha + \beta.

If #v=1\# v = 1, then we are done by Lemma 1. Thus, we may assume that #v>1\# v > 1. We have

vxv=uv=vu=vvx. vxv = uv = vu = vvx.

By cancelling vv on the left, we obtain xv=vxxv = vx. Observe that

#v+#x≤i+(n−i+1)=n+1=#u+1<#u+#v. \# v + \# x \leq i + (n - i + 1) = n + 1 = \# u + 1 < \# u + \# v.

Thus, by induction, we either have seq(x)=σα\mathrm{seq}(x) = \sigma^\alpha and seq(v)=σβ\mathrm{seq}(v) = \sigma^\beta for some σ∈Σ\sigma \in \Sigma and α,β∈R>0\alpha, \beta \in \R_{>0}, or x=wix = w^i and v=wjv = w^j for some w∈S(Σ)w \in \mathcal{S}(\Sigma) and i,j∈Ni, j \in \N. The first case cannot hold since #v>1\# v > 1. So, the second case holds, and we are done since u=vx=wiwj=wi+ju = vx = w^i w^j = w^{i + j} and v=wjv = w^j.

Conjugacy

Two words u,v∈Σ∗u, v \in \Sigma^* are said to be conjugates if u=xyu = xy and v=yxv = yx for some x,y∈Σ∗x, y \in \Sigma^*. In other words, conjugates are cyclic shifts of each other. For example, these five words belong to the same conjugacy class:

{\{🚶🏼‍♀️‍➡️🌳🌳🌲🌳, ,\ 🌳🚶🏼‍♀️‍➡️🌳🌳🌲, ,\ 🌲🌳🚶🏼‍♀️‍➡️🌳🌳, ,\ 🌳🌲🌳🚶🏼‍♀️‍➡️🌳, ,\ 🌳🌳🌲🌳🚶🏼‍♀️‍➡️}\}.

We extend the notion to signals by defining u,v∈S(Σ)u, v \in \mathcal{S}(\Sigma) as conjugates if u=xyu = xy and v=yxv = yx for some x,y∈S(Σ)x, y \in \mathcal{S}(\Sigma). Over words, the conjugacy class of ww is of size at most ∣w∣|w|. However, over signals, the conjugacy class of ww is either a singleton if #w=1\# w = 1, or uncountable otherwise.

For example, here is signal a1b2c1b1a^1 b^2 c^1 b^1 with its conjugates b0.25a1b2c1b0.75b^{0.25} a^1 b^2 c^1 b^{0.75} and b0.5a1b2c1b0.5b^{0.5} a^1 b^2 c^1 b^{0.5}:

Given a signal w∈S(Σ)w \in \mathcal{S}(\Sigma) and α∈[0,∣w∣)\alpha \in [0, |w|), let w⟨α⟩w^{\langle \alpha \rangle} denote the signal obtained from the cyclic shift of ww by duration α\alpha:

w⟨α⟩(τ)={w(τ−α)if τ∈(α,∣w∣],w(∣w∣−α+τ)if τ∈(0,α]. w^{\langle \alpha \rangle}(\tau) = \begin{cases} w(\tau - \alpha) & \text{if } \tau \in (\alpha, |w|], \\ w(|w| - \alpha + \tau) & \text{if } \tau \in (0, \alpha]. \end{cases}

It is readily seen that two signals uu and vv are conjugates iff v=u⟨α⟩v = u^{\langle \alpha \rangle} for some α∈[0,∣u∣)\alpha \in [0, |u|).

Click for a proof.

⇒\Rightarrow) Let x,y∈S(Σ)x, y \in \mathcal{S}(\Sigma) be such that u=xyu = xy and v=yxv = yx. Let α=∣y∣\alpha = |y|. We must prove that v=u⟨α⟩(τ)v = u^{\langle \alpha \rangle}(\tau). For τ∈(0,∣y∣]\tau \in (0, |y|], we have u⟨α⟩(τ)=u(∣u∣−∣y∣+τ)=u(∣x∣+τ)=y(τ)u^{\langle \alpha \rangle}(\tau) = u(|u| - |y| + \tau) = u(|x| + \tau) = y(\tau) as desired. Note that

(∣y∣,∣u∣]−∣y∣=(0,∣u∣−∣y∣]=(0,∣x∣]. (|y|, |u|] - |y| = (0, |u| - |y|] = (0, |x|].

Thus, for τ∈(∣y∣,∣u∣]\tau \in (|y|, |u|], we have u⟨α⟩(τ)=u(τ−∣y∣)=x(τ)u^{\langle \alpha \rangle}(\tau) = u(\tau - |y|) = x(\tau) as desired.

⇐\Leftarrow) Let α∈[0,∣u∣)\alpha \in [0, |u|) be such that v=u⟨α⟩v = u^{\langle \alpha \rangle}. Let x ⁣:(0,∣u∣−α]→Σx \colon (0, |u| - \alpha] \to \Sigma and y ⁣:(0,α]→Σy \colon (0, \alpha] \to \Sigma be the signals defined by x(τ)=u(τ)x(\tau) = u(\tau) and y(τ)=u(∣u∣−α+τ)y(\tau) = u(|u| - \alpha + \tau). Note that ∣y∣=α|y| = \alpha. By definition, u=xyu = xy. We prove that v=yxv = yx. For τ∈(0,∣y∣]\tau \in (0, |y|], we have v(τ)=u⟨α⟩(τ)=u(∣u∣−∣y∣+τ)=u(∣x∣+τ)=y(τ)v(\tau) = u^{\langle \alpha \rangle}(\tau) = u(|u| - |y| + \tau) = u(|x| + \tau) = y(\tau) as desired. Observe that

(∣y∣,∣u∣]−∣y∣=(0,∣u∣−∣y∣]=(0,∣x∣]. (|y|, |u|] - |y| = (0, |u| - |y|] = (0, |x|].

Thus, for τ∈(∣y∣,∣u∣]\tau \in (|y|, |u|], we have v(τ)=u⟨α⟩(τ)=u(τ−∣y∣)=x(τ)v(\tau) = u^{\langle \alpha \rangle}(\tau) = u(\tau - |y|) = x(\tau) as desired.

For example, the previous illustration depicts ww, w⟨0.25⟩w^{\langle 0.25 \rangle} and w⟨0.5⟩w^{\langle 0.5 \rangle}.

A simple fact from combinatorics on words is that u,v∈Σ∗u, v \in \Sigma^* are conjugates iff uz=zvuz = zv for some z∈Σ∗z \in \Sigma^*. Let us generalize this equivalence to signals.

Let u,v∈S(Σ)u, v \in \mathcal{S}(\Sigma). It is the case that uu and vv are conjugates iff uz=zvuz = zv for some z∈S(Σ)z \in \mathcal{S}(\Sigma).
Proof.

⇒)\Rightarrow) Let x,y∈S(Σ)x, y \in \mathcal{S}(\Sigma) be such that u=xyu = xy and v=yxv = yx. Let z=xz = x. We are done since

uz=ux=xyx=xv=zv. uz = ux = xyx = xv = zv.

⇐\Leftarrow) Let z∈S(Σ)z \in \mathcal{S}(\Sigma) be such that uz=zvuz = zv. If ∣u∣=0|u| = 0, then the claim is trivial. Thus, we may assume that ∣u∣>0|u| > 0. We proceed by induction on #z\# z. If #z=0\# z = 0, then u=vu = v and we are done. Suppose #z>0\# z > 0.

Case ∣u∣≥∣z∣|u| \geq |z|. We have u=zwu = zw for some w∈S(Σ)w \in \mathcal{S}(\Sigma). Thus, we have zwz=uz=zvzwz = uz = zv. By cancelling zz on the left, we obtain wz=vwz = v. We are done since u=zwu = zw and v=wzv = wz are conjugates.

Case ∣z∣>∣u∣|z| > |u| and #u=1\#u = 1. We have seq(u)=σδ\mathrm{seq}(u) = \sigma^\delta for some σ∈Σ\sigma \in \Sigma and δ∈R>0\delta \in \R_{>0}. Since ∣z∣>∣u∣|z| > |u|, we can decompose zz as z=σγwz = \sigma^\gamma w where w∈S(Σ)w \in \mathcal{S}(\Sigma) and γ≥δ\gamma \geq \delta is maximal. By maximality of γ\gamma, we have #w=#z−1\#w = \#z - 1. Moreover,

σγuw=σγσδw=σδσγw=uσγw=uz=zv=σγwv. \sigma^\gamma u w = \sigma^\gamma \sigma^\delta w = \sigma^\delta \sigma^\gamma w = u \sigma^\gamma w = uz = zv = \sigma^\gamma wv.

By cancelling σγ\sigma^\gamma on the left, we obtain uw=wvuw = wv. Since #w=#z−1\#w = \#z - 1, by induction, we conclude that uu and vv are conjugates.

Case ∣z∣>∣u∣|z| > |u| and #u>1\#u > 1. We have z=uwz = uw for some w∈S(Σ)w \in \mathcal{S}(\Sigma) with ∣w∣>0|w| > 0. Let seq(z)=σ1δ1⋯σnδn\mathrm{seq}(z) = \sigma_1^{\delta_1} \cdots \sigma_n^{\delta_n}. There exist α,β∈R≥0\alpha, \beta \in \R_{\geq 0} and i∈[1..n]i \in [1..n] such that

u=σ1δ1⋯σi−1δi−1σiα, w=σiβσi+1δi+1⋯σnδn and δi=α+β. u = \sigma_1^{\delta_1} \cdots \sigma_{i-1}^{\delta_{i-1}} \sigma_i^{\alpha},\ w = \sigma_i^{\beta} \sigma_{i+1}^{\delta_{i+1}} \cdots \sigma_n^{\delta_n} \text{ and } \delta_i = \alpha + \beta.

Since #z=n\#z = n and 2≤#u≤i2 \leq \# u \leq i, we obtain #w≤n−i+1≤n−2+1=#z−1\#w \leq n - i + 1 \leq n - 2 + 1 = \#z - 1.

We have uuw=uz=zv=uwvuuw = uz = zv = uwv. By cancelling uu on the left, we obtain uw=wvuw = wv. Since #w<#z\#w < \#z, by induction, we conclude that uu and vv are conjugates.

Periodicity

Given w∈S(Σ)w \in \mathcal{S}(\Sigma), we say that ρ∈(0,∣w∣]\rho \in (0, |w|] is a period of ww if w(τ+ρ)=w(τ)w(\tau + \rho) = w(\tau) for all τ∈(0,∣w∣−ρ]\tau \in (0, |w| - \rho]. If #w=1\# w = 1, then every ρ\rho is a period of ww. Otherwise, ww has a minimal period which we call the period of ww.

The period of w∈S(Σ)w \in \mathcal{S}(\Sigma) is well-defined when #w>1\# w > 1.
Proof.

Let P⊆(0,∣w∣]P \subseteq (0, |w|] be the set of periods of ww. Let ρ=inf⁡P\rho = \inf P. We must show that ρ\rho is a period of ww. Let ρ0>ρ1>⋯∈P\rho_0 > \rho_1 > \cdots \in P be such that lim⁡n→∞ρn=ρ\lim_{n \to \infty} \rho_n = \rho. Let seq(w)=σ1δ1⋯σkδk\mathrm{seq}(w) = \sigma_1^{\delta_1} \cdots \sigma_k^{\delta_k}, where k=#w>1k = \# w > 1. Let τi=∑j=1iδj\tau_i = \sum_{j=1}^i \delta_j for every i∈[0..k]i \in [0..k]. We say that τ∈(0,∣w∣]\tau \in (0, |w|] lies in piece i∈[1..k]i \in [1..k] if τ∈(τi−1,τi]\tau \in (\tau_{i-1}, \tau_i].

We cannot have ρ=0\rho = 0, as otherwise we would have w(τ1)=lim⁡x→τ1+w(x)w(\tau_1) = \lim_{x \to \tau_1^+} w(x).

For the sake of contradiction, suppose there exists τ∈(0,∣w∣−ρ]\tau \in (0, |w| - \rho] such that w(τ+ρ)≠w(τ)w(\tau + \rho) \neq w(\tau). Let i∈[1..k]i \in [1..k] be such that τ\tau lies in piece ii. Since w(τ+ρℓ)=w(τ)w(\tau + \rho_\ell) = w(\tau) for all ℓ∈N\ell \in \N, we have

lim⁡x→(τ+ρ)+w(x)=w(τ)≠w(τ+ρ). \lim_{x \to (\tau + \rho)^+} w(x) = w(\tau) \neq w(\tau + \rho).

This means that τ+ρ\tau + \rho is a “breakpoint”, i.e. τ+ρ=τj\tau + \rho = \tau_j for some j∈[0..k−1]j \in [0..k-1]. By w(τi)=w(τ)≠w(τ+ρ)=w(τj)w(\tau_i) = w(\tau) \neq w(\tau + \rho) = w(\tau_j), we must have i<ji < j.

Let ϵ∈R>0\epsilon \in \R_{> 0} be small enough so that τ−ϵ\tau - \epsilon lies in piece ii, and τ+ρ−ϵ\tau + \rho - \epsilon lies in piece jj. Let ℓ∈N\ell \in \N be large enough so that ρℓ−ρ≤ϵ\rho_\ell - \rho \leq \epsilon. Let τ′=τ+ρℓ−ϵ\tau' = \tau + \rho_\ell - \epsilon. Note that τ+ρ−ϵ<τ′≤τ+ρ\tau + \rho - \epsilon < \tau' \leq \tau + \rho and hence that τ′\tau' lies in piece jj. We obtain a contradiction:

w(τ)=w(τ−ϵ)(both in piece i)=w(τ−ϵ+ρℓ)(since pℓ is a period)=w(τ′)(by definition)=w(τ+ρ)(both in piece j)≠w(τ). \begin{aligned} w(\tau) &= w(\tau - \epsilon) && \text{(both in piece $i$)} \\ &= w(\tau - \epsilon + \rho_\ell) && \text{(since $p_\ell$ is a period)} \\ &= w(\tau') && \text{(by definition)} \\ &= w(\tau + \rho) && \text{(both in piece $j$)} \\ &\neq w(\tau). \end{aligned}

Consider the word w=ababaw = ab ab a. In the notation of M. Lothaire1, we have w=u5/2w = u^{5/2} where u=abu = ab, since ∣w∣=5|w| = 5 and ww repeats uu with period 22. One must be cautious with this notation since, e.g.,

(u5/2)2=(ababa)2=ababaababa≠ababababab=u5. (u^{5/2})^2 = (ababa)^2 = ababa ababa \neq ab ab ab ab ab = u^5.

With this warning in mind, let us introduce a similar notation. Let ww be a signal. For every ϵ∈(0,1)\epsilon \in (0, 1), let wϵ ⁣:(0,ϵ∣w∣]→Σw^\epsilon \colon (0, \epsilon|w|] \to \Sigma be the signal defined by wϵ(τ)=w(τ)w^\epsilon(\tau) = w(\tau). For every α∈R≥0\alpha \in \R_{\geq 0}, let wα=w⌊α⌋wα−⌊α⌋w^\alpha = w^{\lfloor \alpha \rfloor} w^{\alpha - \lfloor \alpha \rfloor}. For example, this illustration depicts w=a1.5b1a2.5w = a^{1.5} b^1 a^{2.5} and w2.5w^{2.5}:

Let w∈S(Σ)w \in \mathcal{S}(\Sigma). If ρ\rho is a period of ww, then w=u∣w∣/ρw = u^{|w| / \rho} with u=wρ/∣w∣u = w^{\rho / |w|}.
Proof.

Recall that 0<ρ≤∣w∣0 < \rho \leq |w|. By definition, uu is the signal u ⁣:(0,ρ]→Σu \colon (0, \rho] \to \Sigma with u(τ)=w(τ)u(\tau) = w(\tau). Since ρ\rho is a period of ww, we have

w(τ)=w(τ+kρ) for every k∈N with τ+kρ≤∣w∣. w(\tau) = w(\tau + k\rho) \text{ for every } k \in \N \text{ with } \tau + k\rho \leq |w|.

Let k=⌊∣w∣/ρ⌋k = \lfloor |w| / \rho \rfloor and let α∈[0,ρ)\alpha \in [0, \rho) be the unique value such that ∣w∣=k⋅ρ+α|w| = k \cdot \rho + \alpha. By the above, we have w=ukuα/ρ=uk+α/ρw = u^k u^{\alpha / \rho} = u^{k + \alpha / \rho}. We are done since k+α/ρ=(k⋅ρ+α)/ρ=∣w∣/ρk + \alpha / \rho = (k \cdot \rho + \alpha) / \rho = |w| / \rho.

We define the order of a signal ww with #w>1\# w > 1 as ord(w)=∣w∣/ρ(w)\mathrm{ord}(w) = |w| / \rho(w) where ρ(w)\rho(w) is the period of ww.

Let w∈S(Σ)w \in \mathcal{S}(\Sigma) be such that #w>1\# w > 1. We have w=uord(w)w = u^{\mathrm{ord}(w)} with u=w1/ord(w)u = w^{1 / \mathrm{ord}(w)}.

For example, consider the signal w=a1bπ−1a1w = a^1 b^{\pi - 1} a^1. We have ∣w∣=π+1|w| = \pi + 1, ρ(w)=π\rho(w) = \pi, ord(w)=(π+1)/π\mathrm{ord}(w) = (\pi + 1) / \pi. We can express ww as u(π+1)/πu^{(\pi + 1)/\pi} where u=a1bπ−1u = a^1 b^{\pi - 1}:

Primitiveness

We say that a signal ww is a power if w=ukw = u^k for some non-empty signal uu and integer k≥2k \geq 2. Otherwise, we say that ww is primitive. If #w=1\# w = 1, then ww cannot be primitive as σδ=(σδ/k)k\sigma^{\delta} = (\sigma^{\delta / k})^k for any δ>0\delta > 0 and k≥2k \geq 2.

Let w∈S(Σ)w \in \mathcal{S}(\Sigma) be such that #w>1\# w > 1. There exists a primitive signal u∈S(Σ)u \in \mathcal{S}(\Sigma) and an integer k≥1k \geq 1 such that w=ukw = u^k. Moreover, uu and kk are unique.
Proof.

Existence. We proceed by induction on #w\# w. If #w=2\# w = 2, then we are done as ww is primitive. Indeed, if we had w=ukw = u^k with k≥2k \geq 2, then we would either have #u=#w=1\# u = \# w = 1, or #u≥2\# u \geq 2 and so #w≥4\#w \geq 4.

Suppose #w≥3\# w \geq 3. If ww is primitive, then we are done. Otherwise, we have w=vmw = v^m for some non-empty signal vv and integer m≥2m \geq 2. We necessarily have #v≥2\# v \geq 2. In vmv^m, the only reductions that may occur are at the concatenation of the last and first piece of vv. Thus,

#w≥m⋅#v−(m−1)=m(#v−1)+1≥2(#v−1)+1=2#v−1>#v. \# w \geq m \cdot \# v - (m - 1) = m(\# v - 1) + 1 \geq 2(\# v - 1) + 1 = 2\# v - 1 > \# v.

By induction, there exists a primitive signal uu and an integer k≥1k \geq 1 such that v=ukv = u^k. We are done since w=vm=(uk)m=ukmw = v^m = (u^k)^m = u^{km}.


The rest of the proof is sloppier. In particular, it uses infinite signals, which we have not introduced. So, read at your own risks!

Uniqueness. Let u,v∈Su, v \in \mathcal{S} be primitive and let i,j≥1i, j \geq 1 be integers such that w=ui=vjw = u^i = v^j. Let α=∣u∣\alpha = |u| and β=∣v∣\beta = |v|. Since w=uiw = u^i and w=vjw = v^j, the numbers α\alpha and β\beta are periods of ww, i.e.

  • wω(τ)=wω(τ+α)w^\omega(\tau) = w^\omega(\tau + \alpha) for any τ∈R>0\tau \in \R_{>0},

  • wω(τ)=wω(τ+β)w^\omega(\tau) = w^\omega(\tau + \beta) for any τ∈R>0\tau \in \R_{>0}.

We now make a case distinction.

Case with α/β∈Q>0\alpha / \beta \in \mathbb{Q}_{> 0}. By assumption, there exist coprime integers m,n≥1m, n \geq 1 such that α/β=m/n\alpha / \beta = m / n. Let ρ=α/m\rho = \alpha / m. We have α=mρ\alpha = m\rho and β=nρ\beta = n\rho. By Bézout’s identity, there are k,ℓ∈Zk, \ell \in \Z such that mk+nℓ=1mk + n\ell = 1. By multiplying the equation with ρ\rho , we obtain kα+ℓβ=ρk\alpha + \ell\beta = \rho. Without loss of generality, we have k≥0k \geq 0. So, for all τ∈R>0\tau \in \R_{>0}, we have

wω(τ)=wω(τ+kα)=wω(τ+kα+ℓβ)=wω(τ+ρ). w^\omega(\tau) = w^\omega(\tau + k\alpha) = w^\omega(\tau + k\alpha + \ell\beta) = w^\omega(\tau + \rho).

Consequently, there exists xx with ∣x∣=ρ|x| = \rho such that w=xim=xjnw = x^{im} = x^{jn}, u=xmu = x^m and v=xnv = x^n. Since uu and vv are primitive, we must have m=n=1m = n = 1. Thus, u=v=xu = v = x and hence i=ji = j.

Case with α/β∈R>0∖Q>0\alpha / \beta \in \mathbb{R}_{> 0} \setminus \mathbb{Q}_{> 0}. Let τ∈(0,∣w∣]\tau \in (0, |w|] be a breakpoint of ww, i.e. with w(τ)≠lim⁡x→τ+w(x)w(\tau) \neq \lim_{x \to \tau^+} w(x). It exists by #w>1\# w > 1. By Kronecker’s approximation theorem, for all ϵ∈R>0\epsilon \in \R_{>0}, there exist k,ℓ∈Zk, \ell \in \Z such that k>0k > 0 and ∣k(α/β)−ℓ∣<ϵ|k(\alpha / \beta) - \ell| < \epsilon. By multiplying by ±β\pm\beta, this means that for all ϵ∈R>0\epsilon \in \R_{>0}, there exist k,ℓ∈Zk, \ell \in \Z with max⁡(k,ℓ)≥0\max(k, \ell) \geq 0 and kα+ℓβ∈(0,ϵ)k\alpha + \ell\beta \in (0, \epsilon). As wω(τ)=wω(τ+kα+ℓβ)w^\omega(\tau) = w^\omega(\tau + k\alpha + \ell\beta), we obtain a contradiction:

lim⁡x→τ′+w(x)=w(τ). \lim_{x \to \tau'^+} w(x) = w(\tau).