RATES — what a reader pays where a digit's scale varies

The object: the continued-fraction numeration of the irrationals, y = [a_0; a_1, a_2, …]. Its depth-n tile, the irrationals sharing the first n quotients, fills the open interval (its interval) between the convergent p_(n−1)/q_(n−1) = [a_0; …, a_(n−1)] and (p_(n−1) + p_(n−2))/(q_(n−1) + q_(n−2)) at n ≥ 1 (p_(−1)/q_(−1) = 1/0, p_(−2)/q_(−2) = 0/1), the depth-0 tile being every irrational; the tiles partition the irrationals and nest. A reader of a map f, continuous and strictly monotone near the input, sees the input's depth-n tile I_n and commits the longest quotient string shared by all the irrationals of f(I_n). e(n) counts its quotients, and the lag is n − e(n). Unlike the numerations of READING, a tile's scale, ln(1/length), is not a function of its depth: the rate r(y), the limit of scale(I_n)/n where it exists (it does at every quadratic y), is 2 ln φ on the all-ones stream, φ the golden ratio, and no stream's scale grows slower, since |I_n| ≤ 1/q_(n−1)² and q_(n−1) ≥ F_n, the n-th Fibonacci number (F_1 = F_2 = 1). So a reader keeps two accounts, one in quotients and one in scale. The scale account settles at every badly approximable output whatever the map: the deficit, how much coarser in scale the committed tile is than what the input determines, is bounded there (the commitment bound). Beside it the numeration charges two prices that can grow without bound: walls, at the preimages of the rationals, and the lag. A nonconstant integer Möbius map with coprime entries has bounded lag everywhere iff it is unimodular.

Which price is which. The walls are the price of READING: The wall criterion again: the intervals of one depth's tiles past depth 0 are open and disjoint, so they cannot cover the connected line R, and from the depth of its own quotient string's length on a rational lies in none. The lag is a different price. At a quadratic y the rate is 2 i ln ε/ℓ, with ε the field's fundamental unit, ln ε its regulator, i a unit index and ℓ the least period's length (the unit-index law). Inside one field ln ε cancels: r(y)/r(f(y)), unit indices over periods, is rational, and so is the lag's slope. Across fields the ratio of rates is a rational multiple of a ratio of regulators, reached only by a map that leaves the field: integer Möbius maps keep it, y² and √y wherever their value is quadratic, while y ↦ √2·y leaves it off Q(√2) (√3 goes to √6).

PRICE      PAID WHERE                        DECIDED BY
wall       f(y) rational                     f⁻¹(Q): none for integer
                                             Möbius maps, y² at ±√v,
                                             v > 0 rational, not a
                                             rational square
deficit    every irrational output whose     at most 3 ln(A + 2) + ln 4
           quotients after the first are     from the first commitment
           all at most A
lag slope  y, f(y) quadratic, f C¹, f′ ≠ 0   1 − r(y)/r(f(y)); rational
                                             inside one field

Walls sit at the preimages of the rationals

Tier: criterion.
Verifier: proof; rates.py::section_w.

Let f be continuous and strictly monotone near an irrational y. The reader of f at y emits without bound iff f(y) is irrational. If f(y) = v is rational, v = [b_0; …, b_k] in its own quotients with b_k ≥ 2 when k ≥ 1, emission freezes at exactly k quotients. So an integer Möbius map has no walls, y ↦ y² walls exactly at ±√v for the positive rationals v that are not squares of rationals, and y ↦ √y has none.

Proof. y lies inside I_n, so f(y) lies inside f(I_n), which shrinks to f(y). The tiles are open, so an irrational f(y) lies inside its tile at every depth, and a fine enough f(I_n) fits each one. A rational v is a tile endpoint: the irrationals just above and just below it share b_0, …, b_(k−1) and differ at index k, one side continuing b_k and the other b_k − 1, 1. Every f(I_n) holds both sides, so no more than k quotients commit, and exactly k once f(I_n) fits the interval of the depth-k tile about v. Integer Möbius maps and their inverses keep Q, so no irrational maps onto it; y² = v forces y = ±√v; and √y rational forces y rational.

This is the shape of READING: The wall criterion with its tile endpoints B all of Q, though there the tiles are half-open and here open, every endpoint rational and every input not.

The commitment bound

Tier: theorem.
Verifier: proof; rates.py::section_d.

Let z be irrational with quotients a_j ≤ A for every j ≥ 1 (a_j and the convergents p_m/q_m here are z's, not the opening stream y's), J an interval of positive length that holds z and lies in the interval of some tile of depth at least 1, C_k the interval of the depth-k tile holding z, and C_e the deepest of them holding J. Then the deficit scale(J) − scale(C_e), with scale(J) = ln(1/|J|), lies between 0 and 3 ln(A + 2) + ln 4. The bound does not mention a map: a reader whose output is badly approximable, its quotients after the first at most A, is scale-synced: from its first commitment on, its committed tile is never more than 3 ln(A + 2) + ln 4 coarser than what the input determines.

Proof. C_e ⊇ J gives 0. Every rational p/q has |z − p/q| ≥ 1/((A + 2)q²): at a convergent because |z − p_m/q_m| = 1/(q_m(z_(m+1) q_m + q_(m−1))) with the complete quotient z_(m+1) = [a_(m+1); a_(m+2), …] below A + 1, and elsewhere because Legendre's criterion makes any |z − p/q| < 1/(2q²) a convergent. The depth-m tile has endpoints of denominator at most 2q_(m−1) and length at most 1/q_(m−1)², so z sits at least |C_m|/(4(A + 2)) inside it. J does not fit C_(e+1), so it reaches past that tile's boundary and |J| ≥ |C_(e+1)|/(4(A + 2)). Last, |C_e|/|C_(e+1)| ≤ (A + 1)(A + 2), since q_e ≤ (A + 1)q_(e−1).

At the wall (y², √2) the hypothesis fails: nothing commits, and, counting the whole line, depth 0, as scale 0, the deficit is scale(f(I_n)) = n r(y) + O(1).

Rate forcing

Tier: theorem.
Verifier: proof; rates.py::section_f, rates.py::section_k.

Let y have an eventually periodic tail of period length ℓ, and let its period matrix P be the product of [[a, 1], [1, 0]] over one period, with larger eigenvalue η. Then y's rate is r(y) = 2 ln η/ℓ, twice the Lévy constant (1/ℓ) ln η (Jager and Liardet, as Belova and Hazard, arXiv:1710.08990, Theorem 1.3, state it). Let f be C¹ and monotone near y with f′(y) ≠ 0, and let z = f(y) be quadratic. Then e(n) = ρn + O(1) with ρ = r(y)/r(z). The lag is bounded iff the rates match, and otherwise grows linearly with the sign of 1 − ρ.

Proof. Along the tail each period multiplies y's positive pair (q_m, q_(m−1)) by P up to transpose and cyclic shift, which keep its eigenvalues η > 1 and ±1/η, the pair having a positive component on η's positive eigenvector, so ln q_n = n ln η/ℓ + O(1), and scale(I_n) = ln(q_(n−1)(q_(n−1) + q_(n−2))) = n r(y) + O(1). Since |f(I_n)| = |f′(y)||I_n|(1 + o(1)), scale(f(I_n)) = n r(y) + O(1) too. z is quadratic, hence irrational with bounded quotients, and the commitment bound puts the committed tile's scale, e(n) r(z) + O(1) since z's own depth-e tiles have that scale, within a constant of that.

The map enters only by |f′(y)| and the output it picks, so Möbius maps, y² and √y are priced alike. (2y, φ) has ρ = 1/3 and lags; (2y, √2) has ρ = 1; √y at 7 + 4√3 (ρ = 2) and y/2 at 2φ (ρ = 3) run ahead.

The lag's sign belongs to the unit of count. Counted in Stern–Brocot steps, a quotient a being a steps, (2y, φ) emits n/3 + O(1) quotients of 4 steps after the first against n steps read, so 4/3 steps per step, though it lags in quotients; (y/2, 2φ) reads quotients of 4 and emits 3n + O(1) quotients of 1, so 3/4. The deficit compares scales, so recounting the committed tile in steps leaves it as it was. In steps every integer Möbius map of nonzero determinant is a finite automaton (Raney, Math. Ann. 206, 1973, as Lagarias and Shallit, J. Théor. Nombres Bordeaux 9, 1997, state it); counted in quotients the determinant of a coprime map decides (the unit criterion).

The unit-index law

Tier: theorem.
Verifier: proof; rates.py::section_c.

For quadratic y, the eigenvalue η of the period matrix over the least period equals ε^i, where ε is the field's fundamental unit and i = [O_max^× : O^×] is the unit index of the multiplier ring O of the lattice Z + Zy, the x in Q(y) with x(Z + Zy) ⊆ Z + Zy, O_max being the ring of integers of Q(y) and [O_max : O] the conductor of O. So r(y) = 2 i ln ε/ℓ, and when y and f(y) lie in one field, with z = f(y), ρ = (i_y ℓ_z)/(i_z ℓ_y) is rational, ln ε cancelling: the lag's slope reads the ratio of the unit indices over periods. That the period's unit is the fundamental unit of O is classical (Halter-Koch, Quadratic Irrationals, 2013, as Calderon and Kalinin, arXiv:2601.07862, Theorem 3.1, state it); i reads it against ε.

Proof. y = U·w with U unimodular and w its periodic tail, so Z + Zy is a real multiple of Z + Zw, with the same O. w is reduced (Galois), w > 1 and −1 < w′ < 0, ′ the conjugate, with quotients a_j ≥ 1 and convergents p_j/q_j, and M_k = [[p_(k−1), p_(k−2)], [q_(k−1), q_(k−2)]] is the product of its first k quotient matrices, P = M_ℓ. An integer A = [[α, β], [γ, δ]] of determinant ±1 fixes w iff A(w, 1)ᵀ = λ(w, 1)ᵀ, and then λ = γw + δ and λw lie in Z + Zw, so λ ∈ O, a unit by A⁻¹; conversely a unit u of O writes uw = αw + β, u = γw + δ in integers, an A inverted by u⁻¹'s. So the stabilizer of w is O^×, P carrying q_(ℓ−1)w + q_(ℓ−2) > 1, η. Let A fix w with λ > 1; then |λ′| < 1, and conjugating gives the integers γ = (λ − λ′)/(w − w′) > 0 and δ = λ′ − γw′ > −1, so γ ≥ 1, δ ≥ 0. Take k = ℓt ≥ 2: B = AP^t fixes w, and its bottom row (γp_(k−1) + δq_(k−1), γp_(k−2) + δq_(k−2)) = (G, H) has G > H > 0, as p_j > p_(j−1) ≥ 1 for j ≥ 1 and q_j ≥ q_(j−1). Expand B's top-left over G as [b_0; …, b_n], convergents u_j/v_j, n of the parity giving u_n v_(n−1) − u_(n−1) v_n = det B: coprimality makes B's left column (u_n, v_n), then v_n | H − v_(n−1) and 0 ≤ v_(n−1) ≤ v_n, 0 < H < v_n make its right one (u_(n−1), v_(n−1)). So w = [b_0; …, b_n, w]; by uniqueness n + 1 is a period of w's quotients, so a multiple ℓs of the least, and B = P^s, A = P^(s−t), s > t as λ > 1. η is O's least unit above 1, which is ε^i, O^× having index i in O_max^× = ±ε^Z. ∎

i alone does not fix the conductor: ε = 8 + 3√7 already lies in Z[3√7], so i = 1 at conductor 3 as at 1.

2φ = [3; (4)] has η = 2 + √5 = φ³, so (i, ℓ) = (3, 1) against φ's (1, 1), and ρ = 1/3 at (2y, φ). 2√2 = [2; (1, 4)] has η = (1 + √2)², ε lying outside Z[2√2] and ε² inside, so (i, ℓ) = (2, 2) against √2's (1, 1): the index and the period double together, which is why a map of determinant 2 reads √2 at bounded lag.

The unit criterion

Tier: criterion.
Verifier: proof; rates.py::section_u.

An integer Möbius map M, y ↦ (αy + β)/(γy + δ) with gcd(α, β, γ, δ) = 1 and det M ≠ 0, has bounded lag at every quadratic stream iff det M = ±1. If det M = ±1 its lag is bounded at every irrational stream; if |det M| ≥ 2 its lag grows linearly at a unimodular image of φ. Coprimality matters: a common factor g multiplies det M by g² and leaves the map as is (2y/2 is y).

Proof. The unimodular Möbius maps are the words in y + 1, −y and 1/y, and each rewrites the quotient string at bounded lookahead: y + 1 raises a_0; 1/y moves the string one place for y > 0, and 1/y = −(1/(−y)) for y < 0; and, writing t = 1/[a_2; a_3, …], −y = (−a_0 − 1) + 1/(1 + 1/(a_1 − 1 + t)), so −[a_0; a_1, a_2, …] is [−a_0 − 1; 1, a_1 − 1, a_2, …] when a_1 ≥ 2 and [−a_0 − 1; a_2 + 1, a_3, …] when a_1 = 1. Lookaheads add along a fixed word, so the lag is bounded above; it is bounded below because M⁻¹ is such a word too: it carries the committed depth-e tile into y's depth-(e − c) tile, c the lookahead of M⁻¹'s word, which then holds I_n, so e ≤ n + c. Rate forcing on M and M⁻¹ then says a unimodular map keeps every quadratic stream's rate. Now let |det M| = N ≥ 2. The entries are coprime, so the Smith form is M = U diag(1, N) V, U and V unimodular and diag(1, N) the map y ↦ y/N. At y = V⁻¹φ rate forcing gives ρ = r(φ)/r(φ/N). Every quadratic stream's rate is at least r(φ) = 2 ln φ, with equality only for an all-ones tail: a period matrix dominates the all-ones one of its length entry by entry and differs from it unless every quotient is 1, so by Perron–Frobenius, it being irreducible, its eigenvalue is strictly larger. An all-ones tail would make φ/N a unimodular image of φ (the easy direction of Serret's theorem: its prefix matrix), which only rescales the lattice, keeping the multiplier ring Z[φ]. But the lattice of φ/N, rescaled to NZ + Zφ, is not closed under multiplication by φ, since φ² = φ + 1 and 1 ∉ NZ. So ρ < 1, and the lag grows at slope 1 − ρ.

The ladder law

Tier: theorem.
Verifier: proof; rates.py::section_k.

At a Stern–Brocot vertex v = p_v/q_v with parents v_L = p_L/q_L and v_R = p_R/q_R, each in lowest terms, the straddle S_j(v), j ≥ 1, is the interval between the fractions (p_L + j p_v)/(q_L + j q_v) and (p_R + j p_v)/(q_R + j q_v); it holds v inside. An irrational z > 0 in v's Stern–Brocot interval (v_L, v_R) lies in exactly K(v, z) = ⌊1/(q_v²|z − v|) − q_s/q_v⌋ straddles at v, q_s the denominator of the parent on z's side. At a convergent p_m/q_m of z on its Stern–Brocot path, K is z's quotient a_(m+1); at every other vertex of z's Stern–Brocot path, K ≤ 1; at a rational z = v, K is infinite. So adding the straddles to the tiles cures every wall whose value is a positive rational, the vertices of the Stern–Brocot tree, and at an irrational point it adds at each convergent a chain of straddles as long as the next quotient and at most one straddle at every other vertex.

Proof. The parents of v are the two Farey neighbours of which v is the mediant, so the straddle's endpoint on z's side lies at distance 1/(q_v(q_s + j q_v)) from v, and z lies in S_j(v) iff j < 1/(q_v²|z − v|) − q_s/q_v, an irrational bound at irrational z. At a convergent, p_(m−1)/q_(m−1) is the parent on z's side (z lies between p_m/q_m and p_(m+1)/q_(m+1), on p_(m−1)/q_(m−1)'s side), and |z − p_m/q_m| = 1/(q_m(z_(m+1) q_m + q_(m−1))), so the bound is the complete quotient z_(m+1) and K = a_(m+1). At any other vertex Legendre's criterion gives |z − v| ≥ 1/(2q_v²), so the bound is at most 2 and K ≤ 1. Every straddle at v holds v and, its endpoints lying strictly between v and a parent, lies inside (v_L, v_R). For v ≠ 1, write v = [b_0; …, b_k] in its own quotients, with b_k ≥ 2. Its parents are its convergent [b_0; …, b_(k−1)] (1/0 when k = 0) and the point of complete quotient b_k − 1 ≥ 1 after b_0, …, b_(k−1), so (v_L, v_R) lies inside the interval of the tile of those quotients, where the tile reader froze: the straddles nest under its commitments. At the root v = 1 it froze at depth 0, the straddles in (0, ∞).

At the walls of y² at √2, √3 and √(3/2) the reader of the straddles, which past the frozen tiles commits the largest j with S_j(v) ⊇ f(I_n), never freezes, K being infinite at v and the straddles shrinking to it, so it commits what the tile reader forfeits. This is the cure of walls by redundancy of READING: Lipschitz walls on absolute tiles are archimedean, at a numeration whose other price, the lag, is charged by counting in quotients, not by the reader: whatever a reader commits holds f(I_n), so a redundant cover can commit finer than the tiles at a wall, never finer than f(I_n), and where rate forcing applies, f(I_n) has scale n r(y) + O(1) and z's deepest tile holding f(I_n) has depth at most ρn + O(1): what a cover commits fixes at most ρn + O(1) of z's quotients, so n less that count has slope at least 1 − ρ.