5D Library › Dyadic Phase Coupling, Bilinear Compatibility Tensors and Spatiotemporal Grid Games · 中文

Chapter 2. Locking, Arnold Tongues and “Who Adapts to Whom”

Two rhythms

The score of Chapter 1 is static. A relationship unfolds in time: each person has rhythms — sleep, the rise and fall of mood, cycles of work and rest — and when together they pull on each other. The simplest model of two rhythms pulling on each other is a pair of phase oscillators: each person is represented only by a turning phase θ\theta with a natural speed ω\omega, plus the pull of the other. Applying this mathematics to two people is an analogy; this chapter studies the mathematics of the analogy itself.

Calculation

The asymmetric Adler-Kuramoto equations. θ̇A=ωA+kABsin⁡(θB−θA),θ̇B=ωB+kBAsin⁡(θA−θB).\dot\theta_A = \omega_A + k_{AB}\sin(\theta_B – \theta_A), \qquad \dot\theta_B = \omega_B + k_{BA}\sin(\theta_A – \theta_B). kABk_{AB} is how strongly A follows B, kBAk_{BA} how strongly B follows A; the two may differ. With the phase difference ϕ=θB−θA\phi = \theta_B – \theta_A, ϕ̇=Δω−(kAB+kBA)sin⁡ϕ,Δω=ωB−ωA.\dot\phi = \Delta\omega – (k_{AB} + k_{BA})\sin\phi, \qquad \Delta\omega = \omega_B – \omega_A . ϕ\phi comes to rest (locking) if and only if |Δω|≤kAB+kBA|\Delta\omega| \le k_{AB} + k_{BA}. Once locked the two turn at the common frequency Ω=kBAωA+kABωBkAB+kBA;\Omega = \frac{k_{BA}\,\omega_A + k_{AB}\,\omega_B}{k_{AB} + k_{BA}}; when they cannot lock, ϕ\phi slips continually at the beat rate Δω2−(kAB+kBA)2\sqrt{\Delta\omega^2 – (k_{AB}+k_{BA})^2}.

Adler wrote this equation for injection-locked electronic oscillators (Adler 1946); it is also the Kuramoto model for two oscillators (Kuramoto 1984; Strogatz 2000). Book 44 treated the synchronisation transition of many oscillators; here there are only two people, but the two directions of coupling may differ.

Calculation

# Chapter 2. Two phase oscillators with one-sided coupling (Adler / Kuramoto).
#   dthA/dt = wA + kAB sin(thB - thA)      kAB: how strongly A follows B
#   dthB/dt = wB + kBA sin(thA - thB)      kBA: how strongly B follows A
# With phi = thB - thA:  dphi/dt = (wB - wA) - (kAB + kBA) sin(phi).
# Locking (phi constant) needs |wB - wA| <= kAB + kBA: the width of the
# 1:1 tongue depends only on the SUM of the couplings. When locked both
# turn at Omega = (kBA wA + kAB wB) / (kAB + kBA): the partner who follows
# less sets the common rhythm. When not locked, phi slips at the beat rate
# sqrt(dw^2 - (kAB + kBA)^2). Euler steps of 0.001 over 400 time units.
import math

def run(wa, wb, kab, kba, t_end=400.0, dt=0.001):
    a, b = 0.0, 1.0
    n = int(t_end / dt)
    half = n // 2
    for i in range(n):
        if i == half:
            a0, b0 = a, b
        da = wa + kab * math.sin(b - a)
        db = wb + kba * math.sin(a - b)
        a += da * dt
        b += db * dt
    span = (n - half) * dt
    return (a - a0) / span, (b - b0) / span

if __name__ == "__main__":
    wa, wb = 1.0, 1.3
    print("   wA = 1.0, wB = 1.3, detuning 0.3")
    print("   kAB    kBA    sum   lock   freq A   freq B   predicted")
    for kab, kba in ((0.25, 0.25), (0.45, 0.05), (0.05, 0.45),
                     (0.10, 0.10), (0.18, 0.02)):
        fa, fb = run(wa, wb, kab, kba)
        k = kab + kba
        if abs(wb - wa) <= k:
            pred = "Omega {:.4f}".format((kba * wa + kab * wb) / k)
            lock = "yes"
        else:
            beat = math.sqrt((wb - wa) ** 2 - k ** 2)
            pred = "beat  {:.4f} (gap {:.4f})".format(beat, fb - fa)
            lock = "no"
        print("   {:4.2f}   {:4.2f}   {:4.2f}   {:4s}   {:6.4f}   {:6.4f}"
              "   {}".format(kab, kba, k, lock, fa, fb, pred))
    print("\nReading: (0.45, 0.05) and (0.05, 0.45) lock equally well, but")
    print("in the first A moves almost all the way to B's rhythm and in the")
    print("second B moves to A's. With a sum below 0.3 the pair cannot lock,")
    print("and the measured frequency gap is close to the predicted beat")
    print("rate (the averaging window holds a whole number of slips only")
    print("approximately).")
#    wA = 1.0, wB = 1.3, detuning 0.3
#    kAB    kBA    sum   lock   freq A   freq B   predicted
#    0.25   0.25   0.50   yes    1.1500   1.1500   Omega 1.1500
#    0.45   0.05   0.50   yes    1.2700   1.2700   Omega 1.2700
#    0.05   0.45   0.50   yes    1.0300   1.0300   Omega 1.0300
#    0.10   0.10   0.20   no     1.0392   1.2608   beat  0.2236 (gap 0.2216)
#    0.18   0.02   0.20   no     1.0706   1.2922   beat  0.2236 (gap 0.2216)
#
# Reading: (0.45, 0.05) and (0.05, 0.45) lock equally well, but
# in the first A moves almost all the way to B's rhythm and in the
# second B moves to A's. With a sum below 0.3 the pair cannot lock,
# and the measured frequency gap is close to the predicted beat
# rate (the averaging window holds a whole number of slips only
# approximately).

In the first three rows the couplings sum to 0.50, more than the frequency gap of 0.3, so all three lock. The difference is where they lock: with symmetric coupling the common frequency is the average, 1.1500; when A strongly follows B (0.45 against 0.05) it is 1.2700, almost B’s own 1.3; the other way round (0.05 against 0.45) it is 1.0300, almost A’s 1.0. In the last two rows the couplings sum to only 0.20, and however they are shared the pair cannot lock; the measured frequency gap of 0.2216 is close to the predicted beat rate of 0.2236 (a finite averaging window holds a whole number of slips only approximately).

Both conclusions come straight from the equation. First, how easily a pair locks depends only on the sum of the couplings: however the same total is shared between the two, the width of the locking tongue is unchanged. Second, the asymmetry decides who adapts: the side that follows less sets the common rhythm. In the language of Chapter 1, the symmetric part of the coupling decides whether the two synchronise, and the antisymmetric part decides who bears the cost.

Other ratios: Arnold tongues

Two rhythms need not lock one to one. One side turning twice while the other turns once can also be stable. The standard model is the sine circle map: once per cycle the other side pulls with strength KK,

θn+1=θn+W−K2πsin⁡(2πθn).\theta_{n+1} = \theta_n + W – \frac{K}{2\pi}\sin(2\pi\theta_n).

The rotation number ρ=lim⁡(θn−θ0)/n\rho = \lim (\theta_n – \theta_0)/n is the ratio the two rhythms actually realise. Where ρ\rho equals a fraction p/qp/q over an interval of WW, the pair is p:qp{:}q locked; in the (W,K)(W, K) plane these intervals open into tongue shapes, the Arnold tongues (Pikovsky et al. 2001).

Calculation

# Chapter 2. Locking at other ratios: the sine circle map.
#   th(n+1) = th(n) + W - (K / 2 pi) sin(2 pi th(n))
# is the standard model of a rhythm W driven once per cycle by a partner of
# strength K. The rotation number rho = lim (th(n) - th(0)) / n is the
# realised ratio of the two rhythms. Where rho is a fixed fraction p/q over
# an interval of W, the pair is locked p:q - an Arnold tongue. Exactly, the
# 0:1 tongue is |W| <= K / (2 pi), of width K / pi. A p:q lock is detected
# as an attracting cycle: after 3,000 steps, th(n + q) - th(n) = p to 1e-9.
# The program finds a W inside each tongue (tongues bend away from p/q as K
# grows), measures the width by bisection, and the share of W in
# [0, 1) locked to some p/q with q <= 8 (1,000 values of W).
import math

TWO_PI = 2 * math.pi

def settle(w, k, burn=3000):
    th, c = 0.0, k / TWO_PI
    for _ in range(burn):
        th += w - c * math.sin(TWO_PI * th)
    return th

def lock_ratio(w, k, qmax):
    th, c = settle(w, k), k / TWO_PI
    start = th
    for q in range(1, qmax + 1):
        th += w - c * math.sin(TWO_PI * th)
        jump = th - start
        if abs(jump - round(jump)) < 1e-9:
            return round(jump), q
    return None

def locked_at(w, k, p, q):
    r = lock_ratio(w, k, q)
    return r is not None and r[0] * q == p * r[1]

def tongue_width(k, p, q):
    # tongues bend away from p/q as K grows: first find a point inside
    grid = [p / q + (i - 200) / 400 / q for i in range(401)]
    inside_pts = [w for w in grid if locked_at(w, k, p, q)]
    if not inside_pts:
        return 0.0
    centre = inside_pts[len(inside_pts) // 2]
    edges = []
    for direction in (-1, 1):
        inside, outside = centre, centre + direction * 0.5 / q
        for _ in range(26):
            mid = (inside + outside) / 2
            if locked_at(mid, k, p, q):
                inside = mid
            else:
                outside = mid
        edges.append(inside)
    return edges[1] - edges[0]

def locked_share(k, steps=1000, qmax=8):
    return sum(lock_ratio(i / steps, k, qmax) is not None
               for i in range(steps)) / steps

if __name__ == "__main__":
    print("   K     0:1 width  exact K/pi  1:2 width  1:3 width  2:5 width"
          "  locked")
    for k in (0.5, 0.9, 1.0):
        print("   {:3.1f}   {:8.5f}   {:8.5f}   {:8.5f}   {:8.5f}   {:8.5f}"
              "   {:5.3f}".format(
                  k, tongue_width(k, 0, 1), k / math.pi,
                  tongue_width(k, 1, 2), tongue_width(k, 1, 3),
                  tongue_width(k, 2, 5), locked_share(k)))
    print("\nReading: the 0:1 width matches K/pi. Tongues of higher order")
    print("are far narrower (the 2:5 tongue at K = 0.5 is narrower than the")
    print("search grid and reads 0); all widen as K grows. At K = 1 more")
    print("than half of the line is locked to a ratio with denominator <= 8.")
#    K     0:1 width  exact K/pi  1:2 width  1:3 width  2:5 width  locked
#    0.5    0.15915    0.15915    0.01949    0.00422    0.00000   0.188
#    0.9    0.28648    0.28648    0.06067    0.02286    0.00626   0.466
#    1.0    0.31831    0.31831    0.07396    0.03056    0.01022   0.578
#
# Reading: the 0:1 width matches K/pi. Tongues of higher order
# are far narrower (the 2:5 tongue at K = 0.5 is narrower than the
# search grid and reads 0); all widen as K grows. At K = 1 more
# than half of the line is locked to a ratio with denominator <= 8.

The width of the 0:10{:}1 tongue is exactly K/πK/\pi (the program measures 0.15915, 0.28648 and 0.31831, matching the formula). Tongues of higher order are narrower: at K=0.5K = 0.5 the 1:21{:}2 tongue is 0.01949 wide, the 1:31{:}3 tongue only 0.00422, and the 2:52{:}5 tongue is narrower than the search grid and reads 0. Every tongue widens with KK; by K=1K = 1 the 1:21{:}2 tongue is 0.07396 wide, and the locked intervals with denominator up to 8 together take 0.578 of the WW axis.

Arnold tongues of the sine circle map: each coloured point is a (W, K) pair locked at some ratio with denominator q \le 5. The tongues open from the rational points at K = 0 and widen as coupling grows.

Evidence

The “devil’s staircase” at critical coupling. Jensen, Bak and Bohr showed that at K=1K = 1 the locked intervals have total measure 1: the unlocked values of WW form a fractal set of measure zero whose fractal dimension lies strictly between 0 and 1 and is universal across a broad class of circle maps (Jensen et al. 1983, 1984). The program’s 0.578 counts only tongues with denominator up to 8; the remaining measure is spread over infinitely many narrower tongues.

Note

What this means for talk of “matching rhythms”. In this model, the simpler the ratio (1:1, 1:2), the looser the frequency match locking needs; the more complex the ratio, the more exact the match or the stronger the coupling required. This is a property of the mathematics, not a conclusion about any two people. Real people have several rhythms, couplings that change over time, and the noise discussed in Chapter 4.

Summary

Two phase oscillators with asymmetric coupling can be solved exactly: whether they lock depends only on the sum of the two couplings, and the asymmetry only decides which side the common rhythm leans to — the side that follows less sets it. When they cannot lock, the phase difference slips at a predictable beat rate. Locking at other ratios is described by the Arnold tongues of the sine circle map: the 0:10{:}1 tongue is exactly K/πK/\pi wide, higher-order tongues are far narrower, every tongue widens with coupling, and at critical coupling the locked intervals cover almost the whole axis.

References

Adler, Robert. 1946. “A Study of Locking Phenomena in Oscillators.” Proceedings of the IRE 34 (6): 351–57.
Jensen, Mogens Høgh, Per Bak, and Tomas Bohr. 1983. “Complete Devil’s Staircase, Fractal Dimension, and Universality of Mode-Locking Structure in the Circle Map.” Physical Review Letters 50 (21): 1637–39.
Jensen, Mogens Høgh, Per Bak, and Tomas Bohr. 1984. “Transition to Chaos by Interaction of Resonances in Dissipative Systems. I. Circle Maps.” Physical Review A 30 (4): 1960–69.
Kuramoto, Yoshiki. 1984. Chemical Oscillations, Waves, and Turbulence. Springer.
Pikovsky, Arkady, Michael Rosenblum, and Jürgen Kurths. 2001. Synchronization: A Universal Concept in Nonlinear Sciences. Cambridge University Press.
Strogatz, Steven H. 2000. “From Kuramoto to Crawford: Exploring the Onset of Synchronization in Populations of Coupled Oscillators.” Physica D 143 (1–4): 1–20.

Fan, Y. (2026). Dyadic Phase Coupling, Bilinear Compatibility Tensors and Spatiotemporal Grid Games: Asymmetric Kuramoto Locking, Stopping-Time Separation Hazards and Magic-Square Permutation Operators [双人相位耦合、双线性相容张量与时空网格博弈] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090172 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).