REDUNDANT — what a signed-digit reader of integers computes
The object: the integers written top first, the most significant digit leading, in radix b with the contiguous digits D = {−a⁻, …, a⁺}, a± ≥ 0, whose interval I = [−a⁻, a⁺] has length |I| = a⁻ + a⁺ and |I| + 1 > b, so the slack ρ = |I| + 1 − b is at least 1 and a value has many strings; the symmetric set a⁻ = a⁺ = a has ρ = 2a + 1 − b. A reader takes such strings a digit at a time and writes its result the same way, the setting of on-line arithmetic, and its lookahead is how many digits it reads beyond those it has written. DUAL: The redundant reader, where ρ names the digit range's radius a/(b − 1) and not this slack, showed that symmetric such digits make the completions of adjacent prefixes overlap and read every Lipschitz map of their range into itself with a sufficient lookahead. This page gives the exact least lookahead of the affine maps on the integers, where a map is rounded down to an integer and the reader must end: it commits one output digit per step, and whenever the input stops, c more digits finish the output. It then prices curved C² maps of infinite streams, whose reader never ends, by their steepest tangent and piecewise ones by three clauses, and reads the sign and comparison by automata. Units wired together, one reading another's output, are priced on LATENCY. A cell is a triple (b, a⁻, a⁺), or (b, a) for a symmetric set, and the 20 cells are those of radices 2 to 5 with 1 ≤ a± ≤ b − 1 and ρ ≥ 1.
Write R_j = (b^j − 1)/(b − 1). The j-digit strings of D write exactly the integers of [−a⁻R_j, a⁺R_j]. A stream reader takes k integers X_1, …, X_k in lockstep, one digit of each per step, top first, and commits one digit of D after each step; the map f = ⌊λ_1X_1 + … + λ_kX_k + θ⌋, with rational weights λ_i = u_i/v ≠ 0, gcd(u_1, …, u_k, v) = 1, and a phase θ ∈ [0, 1), is read at lookahead c when after every step t the t committed digits followed by some c digits of D write f at the values read so far. The least such c is c_min. Scaling is k = 1, f(X) = ⌊λX + θ⌋; addition is X + Y, the sum X_1 + X_2.
The reader's freedom is one number. With Q_t the value committed, let y be the sum over i of λ_i times the value of X_i's first t digits, less b^cQ_t; the c-digit finish exists iff y lies in the finish range [−A⁻ − θ, A⁺ + 1 − θ), A± = a±R_c, and a step reading digits x_i against a committed digit e moves
y′ = by + s − b^c e, s = Σλ_ix_i, y₀ = 0.
The injection s has largest value M⁺ = a⁺Σ_(λ_i>0) λ_i + a⁻Σ_(λ_i<0) |λ_i|, and least value −M⁻ by the mirror. What stays legal depends on y alone, so f is read at lookahead c iff this safety game is won from 0. Its winning set W is the greatest set of states in the finish range from which every injection has an answer e staying in the set.
The affine criterion
Tier: criterion; observation (the clause on 0 binding alone).
Verifier: proof; redundant.py::section_c, redundant.py::section_ss,
redundant.py::section_r, redundant.py::section_a.
Put δ = gcd(u_1, …, u_k, v b^c)/v, P = b^c/δ, ε± = (a±b^c − M±)/(b − 1) and
J = [−ε⁻, ε⁺] ∩ [−A⁻ − θ, A⁺ + 1 − θ).
W meets the lattice δZ in exactly the points of J when J holds at least P of them, and misses δZ otherwise; f is read at lookahead c iff moreover 0 lies in J. This holds for every radix, every digit set D with ρ ≥ 1, every number of streams, all rational weights and every phase. For one stream with λ > 0 and a symmetric set it is the slope criterion: M± = aλ, ε = a(b^c − λ)/(b − 1), and since the finish range contains [−A, A], J contains [−min(ε, A), min(ε, A)] and holds 0 once it is nonempty.
Proof. Every y reached from 0 lies in Σλ_iZ + b^cZ = δZ, whose classes mod b^c number P. Endpoint bound: W ∩ δZ is finite, and from its maximum H the injection M⁺ forces y′ ≥ bH + M⁺ − a⁺b^c whatever e is, and y′ ≤ H gives H ≤ ε⁺. The mirror bounds the minimum by −ε⁻, so W ∩ δZ lies in J. Necessity: from any ζ ∈ W ∩ δZ, the state t steps after ζ is congruent mod b^c to b^t ζ plus the sum of λ_i times the value of the t digits of X_i read since ζ, each such value any integer of [−a⁻R_t, a⁺R_t], since t digits of D write that whole range and the committed digits enter as a multiple of b^c. Once the ranges pass v b^c the sums meet every class of δZ mod b^c, so the states met lie in J and meet every class. Sufficiency: suppose J meets every class, and let S = J ∩ δZ, with maximum hi and minimum lo. For y ∈ S, T = by + s is in δZ, so T − eb^c ∈ J for some integer e. Since hi ≤ ε⁺, T − a⁺b^c ≤ b·hi + M⁺ − a⁺b^c ≤ hi, and T + a⁻b^c ≥ lo by the mirror. If every such e exceeded a⁺, the least one e₀ would have T − e₀b^c ∈ J and T − (e₀ − 1)b^c > hi, against T − (e₀ − 1)b^c ≤ T − a⁺b^c ≤ hi, and the mirror rules out every e below −a⁻; the admissible e form a run, J being an interval. So S is invariant, and the reader wins iff 0 ∈ S. P consecutive points of δZ meet every class, so for an interval "every class" and "P points" are one test. A reader at c becomes one at c + 1 by committing a 0 first, so c_min is the least c passing it.
Total rate and lattice. With every weight positive, M± = a±Λ for the total rate Λ = Σλ_i, so ε± = a±(b^c − Λ)/(b − 1): the weights enter only through Λ and δ, and k streams of rate Λ read as one stream of slope Λ on a lattice at least as fine. Then 0 lies in J iff b^c ≥ Λ, and at Λ ≥ 1, ε± ≤ A±, so the finish range never binds and the phase never enters.
The length bound's formula (below) is the one on-line arithmetic sets its delay with. For the multiply-add A·X + Y, A fixed and |A| ≤ A_max, on a symmetric set it is one algorithm's delay at Λ = A_max + 1 (Brackert, Ercegovac and Willson, 9th IEEE Symposium on Computer Arithmetic, 1989, (11)); by a covering argument, the Lebesgue number of a digit covering, it sizes the delay of the Trivedi–Ercegovac multiplier and divider (Frougny, Pavelka, Pelantová and Svobodová, DMTCS 21(3), 2019, Lemma 3.2 and inequality (11)). And the one-stream lower bound c_min ≥ ⌈log_b |λ|⌉ (0 ∈ J asks a±b^c ≥ M±; add them) has the shape of the one-argument case of Duprat, Herreros and Muller's bound (see the many-stream theorem). Exactness, the lattice and the phase are the criterion's.
The clause on 0 is its own: under signed weights J can hold P lattice points but not 0, and the game refuses each such case the script reads, 3529 of one to three streams at radices 2 to 5. At (2, 1), ×3 reads at 3 and ×4 at 2; at (10, 6), ×2 and ×10 read at 1.
The two regimes of slope
Tier: criterion; theorem (the phase).
Verifier: proof; redundant.py::section_c, redundant.py::section_a,
redundant.py::section_b.
For one stream and a symmetric set, with λ = u/v > 0: for λ < 1, c_min ≤ 1, and at phase 0 c_min = 0 iff
a(v − u) ≥ (b − 1)(v − 1).
For λ ≥ 1 the phase never enters, and c_min is the least c with 2⌊ε/δ⌋ + 1 ≥ P. At every phase θ ∈ [0, 1), c_min is at most its value at phase 0, and below it only at λ < 1 where phase 0 needs 1. A slope λ < 0 reads as |λ| does: a symmetric set has M± = a|λ|.
Proof. ε − A = a(1 − λ)/(b − 1). For λ ≥ 1, ε ≤ A < A + 1 − θ, so J = [−ε, ε], which holds 2⌊ε/δ⌋ + 1 lattice points. For λ < 1, ε > A, so J contains [−A, A], and at c ≥ 1 that interval is 2A ≥ b^c long, a full period, at every phase. At c = 0, δ = 1/v, P = v, A = 0 and J_θ = [max(−ε, −θ), ε] when ε < 1 − θ and [max(−ε, −θ), 1 − θ) otherwise. At phase 0 that is [0, ε] when ε < 1 and [0, 1) otherwise, which holds v points of (1/v)Z iff ε ≥ 1 − 1/v. At a phase θ with ε ≥ 1 − θ, J_θ is either [−θ, 1 − θ), a half-open interval of length 1 holding P points, or it contains [−ε, 0], the mirror of J₀ = [0, ε] when ε < 1, and δZ is symmetric. If ε < 1 − θ, J_θ contains J₀.
So at phase 0 division by 3 in signed binary is read at lookahead 0, and (2, 1) slope 3/5 and (10, 6) slopes 1/3 and 1/7 need 1; phase 1/2 saves the digit at all three. At λ = b^N and phase 0, c_min = N when N ≥ 0 (δ = b^min(N, c), ε < 0 below c = N, and at c = N, ε = 0 and P = 1), and when N < 0 it is 0 iff a ≥ b − 1, whatever N is: dividing by a power of the radix is free at phase 0 on a symmetric set only when it holds {−(b − 1), …, b − 1}, strictly more than ρ ≥ 1 from radix 4 on.
The length bound
Tier: theorem.
Verifier: proof; redundant.py::section_c, redundant.py::section_ss.
With positive weights, let c_L be the least c ≥ 0 with b^c ρ ≥ Λ|I|, which is ε⁺ + ε⁻ ≥ b^c: the length of [−ε⁻, ε⁺] against a period, lattice and finish range dropped. For one symmetric stream it reads b^c(2a − b + 1) ≥ 2aλ, the formula of DUAL: The redundant reader at Lipschitz constant λ, a sufficient lookahead for y ↦ λy on the reals when λ ≤ 1. With positive weights and Λ ≥ 1, at every phase,
c_min ≤ c_L ≤ c_min + 1.
For one symmetric stream at phase 0 with λ < 1, c_L ≤ c_min ≤ c_L + 1. So in these two scopes the bound misses by at most one digit, high only at rate at least 1 and low only below it. Off them it can run high below rate 1: at b = 2, D = {0, 1, 2}, slope 2/3 at phase 0 reads at 0 against c_L = 1, and so does D = {−1, 0, 1} at phase 1/3.
Proof. For Λ ≥ 1: at c_L, b^c ρ ≥ Λ|I| > Λρ gives b^c > Λ, so 0 lies in J, and an interval at least Pδ long holds P points; so c_min ≤ c_L. If J holds P points at c, ε⁺ + ε⁻ ≥ (P − 1)δ, and ε±(c + 1) = bε±(c) + M±, so ε⁺ + ε⁻ at c + 1 is at least b^(c+1) − bδ + Λ|I| ≥ b^(c+1), as δ ≤ min λ_i ≤ Λ and |I| ≥ b; so c_L ≤ c_min + 1. For one symmetric stream with λ < 1, c_min ≤ 1 by the two regimes, and c_L ≤ 1 since 2ε(1) > 2a ≥ b. c_L = 1 with c_min = 0 would need (b − 1)v > 2a(v − u) ≥ 2(b − 1)(v − 1), that is v < 2.
In those scopes, at rate 1 and above the lattice can fit P points into J with less than b^c of length; below it the finish range [−A, A + 1) binds, and the reader pays for ending.
Addition
Tier: criterion.
Verifier: proof; redundant.py::section_ss, redundant.py::section_sm.
X + Y has c_min = 1 iff
ρ ≥ ⌈a⁻/(b − 1)⌉ + ⌈a⁺/(b − 1)⌉ =: σ,
and c_min = 2 otherwise. The length test b^c ρ ≥ 2|I| never asks too little, and asks one digit too many exactly on the wedge
(b ≥ 3, ρ = 2, min(a⁻, a⁺) ≠ 1) or (b = 3, ρ = 3).
Proof. X + Y is the affine criterion at Λ = 2, δ = 1, P = b^c. At c = 0, b^c < Λ and 0 is not in J. At c = 1 the finish range does not bind, and J = [−a⁻(b − 2)/(b − 1), a⁺(b − 2)/(b − 1)] holds |I| + 1 − σ integers, since ⌊x(b − 2)/(b − 1)⌋ = x − ⌈x/(b − 1)⌉; that is at least b iff ρ ≥ σ. At c = 2, ε⁺ + ε⁻ = |I|(b² − 2)/(b − 1) ≥ b² as |I| ≥ b. The test is the length bound at Λ = 2, so it asks at most one digit too many and never too few. It grants c = 1 iff ρ(b − 2) ≥ 2(b − 1), which fails at every ρ for b = 2, at ρ ≤ 3 for b = 3 and at ρ ≤ 2 for b ≥ 4. Where it fails, σ = |I| > ρ at b = 2; σ ≥ 2 at ρ = 1; at ρ = 2, σ = 3 when an endpoint has magnitude 1 and 2 otherwise; and σ ≤ 3 at b = 3, ρ = 3.
The literature states the same inequality for one algorithm: the generalized signed-digit framework (Parhami, IEEE Trans. Computers 39(1), 1990) proves by its Lemmas 1 and 2 that its carry-free addition applies iff ρ ≥ σ, and its Theorem 1 unpacks this as ρ ≥ 3 when an endpoint has magnitude 1 and ρ ≥ 2 otherwise, at radix above 2. Necessity against every reader is published at signed binary, on infinite streams (Duprat, Herreros and Muller, 9th IEEE Symposium on Computer Arithmetic, 1989, Theorem 6: the delay of radix-2 addition is 2). For the reader that must end, the criterion adds it at every radix and digit set, and the place of addition among the affine maps: it is scaling at slope 2 on the lattice Z. Doubling one stream, 2X, has the same rate on δ = gcd(2, b^c): at an odd radix it is read exactly as X + Y, and at an even radix its lattice is 2Z from c = 1 on, so it never reads later and in signed binary reads at 1 against X + Y's 2. X_1 + X_2 + X_3 is read at 1 iff ⌊a⁻(b − 3)/(b − 1)⌋ + ⌊a⁺(b − 3)/(b − 1)⌋ + 1 ≥ b.
The many-stream theorem
Tier: theorem; rule (the leads above L*, verified at the 89 cells past
the radix); observation (the lookahead not monotone in g).
Verifier: proof; manystream.py::section_mapped,
manystream.py::section_mo, manystream.py::section_mp,
manystream.py::section_ml, manystream.py::section_mk,
manystream.py::section_mc, manystream.py::section_mw;
composite.py::controls, composite.py::carry.
Here each stream is an infinite string of D, worth a real in [−M⁻, M⁺], M± = a±/(b − 1). From here to the page's end M± names this range of one stream, no longer the affine criterion's extremes of the injection. n digits confine the streams to a box of side w/b^n, w = M⁻ + M⁺, the root box [−M⁻, M⁺]^k at n = 0, k the number of streams. Let f be C², not constant, on the root box and Λ the sup over it of |∇f|₁ = Σ|∂_if|. The output is written in radix b in digits E = {−g⁻, …, g⁺} of its own, slack ρ_E = g⁻ + g⁺ + 1 − b ≥ 1, N± = g±/(b − 1), with a lead o whose root tile [−N⁻b^o, N⁺b^o], the values its digit strings write, holds f's range, its t-th digit weighing b^(o−t), and the reader commits digit t after reading n = t + c digits of every stream; L = c + o is the delay. Then f is read at an L ≥ o iff
b^L ρ_E ≥ Λ|I|,
the margin law, unless f is affine on the root box; L* is the least integer L with b^L ρ_E ≥ Λ|I|. The proof reads D through its prefixes' grid and the box's side w alone, so beside an E of its own D needs only |I| + 1 ≥ b, the bits {0, 1} of radix 2 included. Past this section E = D, where ρ_E = ρ and N± = M±, unless an output set is named. The least L at which a map is read at all is its floor: L* for a curved map, at most L* for an affine one. Below the lead the law is unchanged (The pole units, its zones' w − 1 read as w_E − 1 and its ρ as ρ_E). At E = D that is the affine criterion's length test at the steepest tangent: an affine map of weights λ_i of either sign, its injection's extremes summing to Σ|λ_i|·|I|, has ε⁺ + ε⁻ = |I|(b^c − Σ|λ_i|)/(b − 1), so its length test, its lookahead c this section's L, is b^L ρ ≥ Σ|λ_i|·|I|; a curved map is read iff it holds, the lattice and the finish range dropped, whatever the number of streams. The sup is of |∇f|₁, not of each partial apart: for x(1 − y²), whose |∂_x| peaks, while M̂² < 2, at y = 0 where ∂_y vanishes, Λ = 1 + M̂² with M̂ = max(M⁻, M⁺) when M̂ ≤ 1, that is a± ≤ b − 1, where the partials' separate sups add to 1 + 2M̂²; past it Λ = 3M̂² − 1, and the sups add to max(1, M̂² − 1) + 2M̂², equal to Λ once M̂² ≥ 2.
Proof. The tile lemma: in units b^(o−t) the level-t tiles, the values the output can still reach once t committed digits write p, are [p − N⁻, p + N⁺], consecutive ones overlapping in a zone of length w_E − 1 = ρ_E/(b − 1) > 0, w_E = N⁻ + N⁺, and an interval lies in some tile iff it strictly contains no zone, zones meeting or not. If the committed tile of value Q holds it, the children bQ + e run over the integers of [bQ − g⁻, bQ + g⁺], and a tile holding the interval can be clamped into that run, so some child holds it. The reader is dead iff some box's image strictly contains a level-t zone at t = n − c ≥ 1. The reader has no strategy: any legal digit is as good as another. Sufficiency: a box's image is at most Λw/b^n wide, and the zone is (w_E − 1)b^(L−n) long in absolute units. Necessity below the law, with Λ_law = (w_E − 1)b^L/w < Λ: the component of {|∇f|₁ > (Λ + Λ_law)/2} holding the peak carries a point where the Hessian is nonzero, since a vanishing Hessian there makes ∇f constant on it and, by continuity at its boundary, makes the component the root box and f affine. The points where each partial is nonzero or vanishes on a neighbourhood are open and dense, so one of them lies in that component where the Hessian is nonzero, and there the Hessian's quadratic form at some integer direction V is nonzero. Round it a closed ball inside the component has every partial one-signed or zero and that form one-signed, at least half its central value in size. There a box's image runs between two fixed corners and overshoots the zone by at least half the excess Λw/b^L − (w_E − 1), in units of the zone grid, and along a line of prefixes, each the one before plus V, the lower end, read modulo that grid, is an offset whose second difference is one-signed and of order b^(−n−L). Van der Corput's second-derivative estimate with the Erdős–Turán inequality (Kuipers and Niederreiter, Uniform Distribution of Sequences, 1974) equidistributes these offsets as n grows, so one falls in the dead arc, the offsets at which the image strictly contains a zone. A sum x₁ + … + x_k has no such line: its box images depend only on the prefix sum s, and at E = D the reader is dead iff an integer lies in ((b^L − k)M⁺, b^L − (b^L − k)M⁻), which is the affine criterion with its lookahead set to L, at unit weights.
At E = D every map reads at L* or below it, a unit sum at most one digit below by the length bound, and a curved map exactly at it. The digit is the lattice's discount, which curvature forfeits. At a⁺ = b − 1 ≥ a⁻ the product x y has the steepest tangent x + y, and it reads one digit after addition exactly on the addition wedge. The product's law, b^L(b − 1)ρ ≥ 4a² on a symmetric set, is the on-line multiplier's delay condition (Trivedi and Ercegovac, 1977, as restated in Frougny, Pavelka, Pelantová and Svobodová, DMTCS 21(3), 2019, Corollary 2.2, which states it as sufficient). The theorem makes it a bound on every reader, off the diagonal, up the degrees and across the arities. A one-sided bound of the same shape without ρ is Duprat, Herreros and Muller's (9th IEEE Symposium on Computer Arithmetic, 1989, Theorems 3 and 5: delay ≥ ⌈log_b max(|∂f/∂x| + |∂f/∂y|)⌉ over {−a..a}), with an upper bound one above for monotone maps at radix 2 (Theorem 4, conjectured at every radix); exactness, ρ and asymmetric sets are ours.
The script kills nine maps (x², x³, x y, x² + y, x y + z, x² + x y, x²y, x y z and x(1 − y²)) at L* − 1 at the 20 cells, each by an exact box whose image strictly contains a zone. Past the radix, at the 89 cells with 1 ≤ a± and max(a⁻, a⁺) ≥ b of radices 2 to 4 with a± ≤ 2b − 1 and radix 5 with a± ≤ 6, the least lead sits above L* at 15 of the 801 (map, cell) pairs, each read at c = −1 by The pole units, and inside the radix at none (A curved map through the origin runs ahead only past the radix). A wider E lowers the delay without bound, and a symmetric one the lookahead at the least lead, c = L* − o, by a bounded number of digits: there N⁺/ρ_E falls to 1/(2(b − 1)) as g grows. That lookahead is not monotone in g: x² + y² + z² at (2, 1, 1) has 2 at g = 6 and 12 and 1 at g = 7 to 11, the lead falling at 12 with L* still 0.
The pole units
Tier: theorem; rule (the lookaheads, verified at the 20 cells
and the six pole distances).
Verifier: proof; poles.py::section_pb_pc, poles.py::section_pg;
composite.py::composites.
The many-stream theorem holds at every L in Z, so the lookahead c = L − o may be negative: the reader then commits −c digits before it reads one. Those digits are committed on the root box alone, against level-t zones of length (w − 1)b^(o−t) ≥ (w − 1)b^L, and the root box's image is at most Λw wide. So under b^L ρ ≥ Λ|I| none of them is dead, and below it the necessity argument is unchanged. A kill at a coarse level also carries to the next: in units of a level, a zone of length w − 1 holds a whole zone of the next level, spaced 1/b and (w − 1)/b long, since (w − 1)(b − 1) = ρ ≥ 1.
The on-line units with a pole (square root, reciprocal, divider) meet the theorem once the pole sits a pole distance h > 0 outside the root box, s = M⁻ + h:
√(s + x): Λ = 1/(2√h), range [√h, √(h + w)], 1/(s + x): Λ = 1/h², range [1/(h + w), 1/h], x/(s + y): Λ = (h + M̂)/h², range [−M⁻/h, M⁺/h],
each read at the least L with b^L ρ ≥ Λ|I|, and o the least lead whose root tile holds the range. At the 20 cells and the six h with h(b − 1) = 1, 2, 4, 8, 32 and 128, the root's lookahead is negative at 65 of its 120 pairs, down to −7 at (2, 1, 1), h = 128. The reciprocal's is negative at 40, over every cell. The divider's is 0, 1 or 2.
Against the literature (Ercegovac and Lang, Digital Arithmetic, 2003, chapter 9 slides): Table 9.1 gives the on-line multiplier delay 3 in radix 2 and 2 in radix 4, and the chapter's derivation 3 in radix 4 with digits to 2, lookaheads at lead 0 as operands and result share one format. The product's floor at (2, 1, 1), (4, 3, 3) and (4, 2, 2) is 2, 1 and 2: each published multiplier sits one digit above what every reader pays, and The selection estimate accounts for that digit. The table's division and square root, delay 4, are not compared: its divisor is held to [1/2, 1), narrower than the reader's root box, and the dividend's and radicand's ranges are not on that source.
Two hand-built composites, each priced at its own cell. Tenca and Ercegovac's a x + b (Proc. SPIE 2914, 1996; a parallel, 1/2 ≤ a, x, b < 1, inputs on {−(r − 1), …, r − 1}, output at its least g = r) publishes L = 1 at r = 2, 4, 8, 16 and 32, the law's L* at Λ's sup 2 over a, since r(r + 1) ≥ 4(r − 1) > r + 1, read as the floor by a kill below it at a = 255/256 at r = 2, 4 and 8 alone (the map is affine), and its recoded form, output on the input's set, pays two digits over the law's L* at each of the five. x² + y² + z² at radix 2 with output {0, …, 8} publishes L = 0 on Ercegovac's DDECS 2020 slides (1 in Huang and Ercegovac, FCCM 2001, read as an indexing from digit 0). The slides print no input digits: read as the bits the paper's unit serializes, L* is 0, the floor by a kill below it inside the operands' [1/2, 1]³, and signed inputs {−1, 0, 1} raise it to 1.
The selection estimate
Tier: known, the condition; property; rule (verified at the symmetric
cells b/2 ≤ a ≤ 2b to radix 64, and at eight lattice cells at every
weight multiset); observation (necessity at one lattice witness).
Source: Ercegovac and Lang, Digital Arithmetic, chapter 9 slides 43, 44.
Verifier: proof; poles.py::section_ph; selection.py::small_cells,
selection.py::cell.
Ercegovac and Lang's multiplier picks each output digit from an estimate of its residual, two words each truncated to m fractional bits. On {−a, …, a} in radix b, with M̂ = a/(b − 1), selection constants exist iff T_m(ω) ≥ (1 + 2^(−m))/2, T_m truncating to m bits and ω the scaled residual's bound. The slides print ω = M̂(1 − 2b^(−L)), the step's bound with the operands below 1; bounded by M̂, as the root box bounds them, the same step gives ω = M̂(1 − Λb^(−L)), Λ = 2M̂, the slides' at a = b − 1. For x y + z, off the slides, a z digit widens the residual's step to a(2M̂ + 1)b^(−L): Λ = 2M̂ + 1. The chapter's delay is L − o, o the lead: the least o with b^o ≥ M̂ for x y, 0 inside the radix, and with b^o ≥ M̂ + 1 for x y + z, 1 iff a ≤ (b − 1)². As T_m(ω) ≤ ω and the right side exceeds 1/2, no m works unless ω > 1/2, and then T_m(ω) > ω − 2^(−m) clears it once 3·2^(−m)/2 ≤ ω − 1/2. And ω ≥ 1/2 is b^Lρ ≥ Λ|I|. So the condition, read at an exact residual, IS both units' many-stream floor, and where the residual gains a digit of precision each step, as these units' does, the estimate costs a digit exactly where the law is an equality, ω = 1/2 at L*, which no finite m reaches. At a = b − 1 that is b^L = 4 for x y, the published (2, 1, 1) and (4, 3, 3), and b^L = 6 for x y + z, at (6, 5, 5): the only equality cells in the tier's range, so past the radix, in that range, the estimate costs no digit. At (4, 2, 2) ω = 11/18 at L = 2, the slides' 7/12, each reached at m = 4, where the chapter takes m = 3 and L = 3. Only the per-step condition is compared: the first digit also needs the unit's values at the (L − o)-digit prefixes inside ωb^o, which, read plainly at the least L the estimate reaches, fail at (2, 1, 1), (2, 3, 3) and (3, 4, 4) for x y + z and for x y at every a = b − 1 cell and at (2, 2, 2), (2, 4, 4) and (3, 6, 6). The slides start at a zero residual, run L steps with no result digit and print no operand range; the algorithm's first paper, its recursion without a delay, keeps the residual bounded by sufficient operand ranges, |X| < 1/(2b) at a = b/2, |X| < 1/4 at a = b − 1 and |X| ≤ 1/2 at radix 2 (Trivedi and Ercegovac, 3rd IEEE Symposium on Computer Arithmetic, 1975, p. 166).
On one family whose residual stays on a finite lattice an equality costs bits, not a digit. A dot product of T bit streams against parallel q-bit weights w (two's complement fractions), written on {−1, 0, 1} at lead o = log₂ T, is the equality 2^o = T at lookahead c = 0, and its residual z = 2y + d, d the inputs' step, lies on the weights' grid η = 2^(1−q−o−c). The digit e = ⌊ẑ⌋ + 1, clamped into {−1, 0, 1}, on an estimate ẑ ≤ z keeps the state y in [−1, 1 − W], W = 2^(−c)|w|₁/T the box's width, iff z − ⌊ẑ⌋ ≤ 2 − W where the clamp is idle. The exact residual reads c = 0 at every weight vector, since z − ⌊z⌋ < 1, but its integer part carries out of every bit: 2 + q − 1 + o + c bits. Two words each truncated to m fractional bits, split as an adversary likes on the grid, are 3 + m bits, ẑ falling below −2, and read it iff no reachable z of integer part −1, 0 or 1 (the clamp saves −2) has fractional part in (s, 2^(−m) − 2η], s = 1 − W the slack: an empty interval at c = 0 from m = q + o − 2, where 2^(−m) = 2η, and at c = 1, where s ≥ 1/2, from m = 1. At T = 32, q = 8, the cell of arXiv:2606.25562's merged multiply-add with its weights read as two's complement (its initial delay of 2 is not compared: it prints no recurrence), that is 14 bits either way at c = 0, 4 at c = 1; the vector of 31 weights −1 and one 127/128, of slack η, dies at m = 10 under this rule. The least m reading every multiset is q + o − 2 at c = 0, and 1 at c = 1, at the eight cells T = 2, 4 with q = 2, 3, 4 and T = 8 with q = 2, 3, the game solved on reachable states. A carry-propagate tree's one word reads at any m, paying the exact residual's carries. Under the exact residual at c = −1 no vector with W ≤ 1 dies, some with W > 1 read at each of the eight cells, and at (T, q) = (2, 2) all three do, so that cell reads one digit under the law's c* = 0, the affine family's discount. At T = 32, q = 8, L = o (c = 0) is the floor: at 20 weights 127/128 and 12 of −1 the root box's image [−12, 19.84375] strictly contains the first digit's zone [0, 16], dead at c = −1.
The relative-gradient law
Tier: property; rule (the counts, verified at the 20 cells over the
h and decay constants read, the divider's also at the 89 past the
radix).
Verifier: proof; poles.py::section_pd_pf, poles.py::section_pe.
With a± ≥ 1, the root tile [−M⁻b^o, M⁺b^o] holds a range [lo, hi] exactly when b^o ≥ K = max(hi/M⁺, −lo/M⁻), the range's scale. So o = ⌈log_b K⌉ while L* = ⌈log_b(Λ|I|/ρ)⌉, and two ceilings differ by less than one from the difference of their arguments, so a curved map's least lookahead past the lead, c* = L* − o, obeys
c* − log_b(Γ|I|/ρ) ∈ (−1, 1), Γ = Λ/K.
The map enters its lookahead through its relative gradient Γ alone, to within one digit. A unit runs ahead without bound exactly when Γ falls to 0 as its parameter runs. The root's Γ = M⁺/(2√(h(h + w))) and the reciprocal's M⁺/h do so as the pole recedes.
A stream multiplied by a positive factor never runs ahead, at any reader, nor inside the radix by a factor of either sign. For f = x·g(y), g > 0 of sup g*, the range is [−M⁻g*, M⁺g*], K = g* and b^(o−1) < g*, so a level-1 tile, wb^(o−1) long, is shorter than the image of x·g(y), x unread, at g(y) near g*: a first digit before any of x is dead. Inside the radix a level-1 tile [p − M⁻, p + M⁺] whose interior holds 0 has −M⁺ < p < M⁻, M± ≤ 1, so p = 0, and each image holds 0 inside where g(y) ≠ 0: a first digit before x would put the range in the zero tile, the root tile at lead o − 1. So c ≥ 0 however y was produced, read whole included, and the digits one unit runs ahead are spent in the next unit multiplying a fresh stream by a function of them, positive or inside the radix. Past the radix a negative factor escapes: at (2, 1, 2), g ∈ [−1/3, 0], K = 2/3, o = 0 and the tile p = −1, [−1, 1/2], holds every image [2g, −g]; how far a factor fed ahead runs is A factor fed ahead buys one digit at most. At g > 0 the law agrees: the x-partial is g, so Λ ≥ g* and Γ ≥ 1, and at slack 1, where |I|/ρ = b, c* ≥ 1. The divider has Γ = 1 + M̂/h and every cell |I|/ρ ≤ b, so c* = L* − o ≤ 2 once h ≥ M̂/(b − 1), where Γ|I|/ρ ≤ b², so at h ≥ 1/(b − 1) inside the radix; past it c* = 3 at (2, 3, 1), h = 1. At 539,164 (cell, h) pairs of the 20 cells and the 89 past the radix to radix 5, its c* is never negative, at most 5, and 0 somewhere at exactly the 99 cells of slack 2 or more.
The dependency structure is one way to hold Γ up, not the variable. exp(−χy), χ its decay constant, multiplies no stream, and its Γ = χM⁺ rises. As χ and the others' pole distance h each run from 1/(b − 1) to 8192/(b − 1), its lookahead climbs by 5 to 13 digits at each of the 20 cells, while the root's, the reciprocal's and 1/(s + y)²'s (Λ = 2/h³) fall by 4 to 13. Over these four units and two more, the divider and x·exp(−χy), at all 960 (unit, cell, h or χ) read, c* stays within one digit of log_b(Γ|I|/ρ): read exactly (on Γ², rational) at the four with a pole, and the law's own arithmetic, in floats, at the two exponentials.
A curved map through the origin runs ahead only past the radix
Tier: theorem; rule (the counts, verified at the 109 cells and the 152
of radices 2 to 7 with a⁺ ≤ 2 and b ≤ a⁻ ≤ 4b beyond them).
Verifier: proof; poles.py::section_pi, poles.py::section_pj,
poles.py::section_pb_pc.
Let f be C² on the root box with f(0) = 0, and a⁻ ≥ a⁺ (the mirror −f(−x) swaps the sides). Then for m ≥ 1 c* ≤ −m exactly when hi > M⁺b^(L* + m − 1): the high end alone decides. Indeed |f| ≤ ΛM⁻ on the box, which is convex and holds 0, and b^(L*)ρ ≥ Λ|I| > Λρ, so the tile at lead L* holds lo, and holds hi too at a⁻ = a⁺.
Since f(x) = ∫₀¹ ∇f(sx)·x ds, hi ≤ T̄ΛM⁻, where the mean rate T̄ = ∫₀¹ Λ(s) ds/Λ, Λ(s) the sup of |∇f|₁ on the root box shrunk by s, is 1/d for a map homogeneous of degree d. With b^(L*)ρ ≥ Λ|I|, f runs ahead only where a_min|I| < T̄·a_max·ρ, a_min and a_max the lesser and greater of a±. As T̄ ≤ 1 that needs a_min² < a_max(a_max + 1 − b), a lopsided cell, which a± ≤ b − 1 rules out: inside the radix a curved map through the origin never runs ahead. f(0) = 0 does the work: the root and the reciprocal run ahead inside the radix, and so does x y + 8, x y lifted off the origin, at 9 of the 20 cells.
The reach hi/(ΛM⁻) is T̄ = 1/2 at x², x y and x² + x y, whose hi sits at the far corner, and the test is the cell's alone, a⁻²λ₀/2 > a⁺(b − 1)b^(L*), λ₀ = Λ/M⁻ = 2, 2, 4. At (2, 6, 1) x² has Λ = 12, L* = 4 and hi = 36 > 2⁵, so c* = −2; at (2, 4, 1) hi = 16 = M⁺2⁴ sits on the tile's edge and c* = 0, so the run-ahead is not monotone in a⁻: at radix 2 and a⁺ = 1, x² and x y run ahead at a⁻ = 3 and every a⁻ ≥ 5, where b^(L*) < 4(a⁻ + 1) ≤ a⁻². x³, x²y and x y z never run ahead: hi/M⁺ ≤ M⁻² = Λ/3 < b^(L*), and each is odd, so the mirror fixes it; −x³, whose reach is T̄ = 1/3, runs ahead. Elsewhere T̄ is a bound: the reach of x² + y and x y + z falls (M⁻ − M⁺)/((2M⁻ + 1)M⁻) below it, x³, x²y and x y z meet it only at a⁻ = a⁺, and x(1 − y²) nowhere.
Over the 109 cells and the 152 the nine maps of The many-stream theorem run ahead at 506 pairs, c* = −1 or −2: x² + x y at 110, x² and x y at 85 each, x² + y and x y + z at 83 each, x(1 − y²) at 60, its 60 all among the 152; 15 of the 506, over 6 cells, among the 109.
A factor fed ahead buys one digit at most
Tier: theorem; rule (the counts, verified at the 109 cells and the 152
of A curved map through the origin runs ahead only past the radix
at d = 1, 2, 4 and whole, and at the reciprocal's 40 run-ahead pairs).
Verifier: proof; poles.py::section_pk, chains.py::section_ce.
Read y, a free stream, d digits ahead of z: digit t is committed after t + c digits of z and t + c + d of y. Then z·y is read at L iff b^L ρ ≥ Λ_d|I|, Λ_d = M̂(1 + b^(−d)), and read whole, its value known at the start, iff at Λ = M̂: the margin law with the y-partial weighed by b^(−d). Sufficiency is the tile lemma, z y − z′y′ = z(y − y′) + y′(z − z′) bounding a box's image by w(sup|y|b^(−n) + sup|z|b^(−n−d)); the levels before z's first digit pass with room. Necessity is the many-stream theorem's: where y = P + b^(−d)y′ opens with the d-digit prefix P of its long end, the reader is a lockstep reader of z(P + b^(−d)y′), of Λ = Λ_d and a Hessian nowhere zero; read whole, an irrational value near M̂ slides the image's ends densely across the zone grid. As Λ₀/Λ_d ≤ 2 ≤ b, feeding y ahead lowers L by one digit at most.
So z·y runs ahead only where a⁻ > a⁺ and a⁺(1 + b^(−d))|I| < a⁻ρ, x y's bound at T̄ = 1/2 widened toward T̄ = 1 read whole, and −z·y is its mirror. Over the 109 + 152 cells, y fed 1, 2 or 4 digits ahead or whole makes 65, 81, 84 and 88 (map, cell) pairs of ±z·y newly run ahead, (2, 4, 1) at d = 1 among them (o = 4; L = 4 lockstep, 3 at d = 1), c reaching −3 at d = 4; each, and each pair already ahead that feeding deepens, dies at L_d − 1 to an exact box the scan finds and lives at L_d by the sufficiency proof.
The same sufficiency reads a fresh stream z times the reciprocal's stream r taken d = −c₁* digits ahead, c₁* the reciprocal's c* (r is not free, so the one-digit bound does not cover it): that deep unit reads z·r wherever b^L(w − 1) ≥ (τ + M̂b^(−d))w, τ the sup of |r| as its digits write it, the reciprocal's value over b^o at its lead o, against (τ + M̂)w for a unit reading r aligned with z. At the 40 pairs where the reciprocal runs ahead, the deep unit's least L under its test sits below the aligned one's at 25, and the fused divider z/(s + x) reads at a lookahead at or below the deep unit's test at all 40, equal at 33. Above c = 0, the least c a positive factor allows (The relative-gradient law), its necessity is unread: r's range is narrower than its tile, and a box scan at L − 1 over that range would read it.
The piecewise theorem
Tier: theorem.
Verifier: proof; piecewise.py::section_wb, piecewise.py::section_wc,
piecewise.py::section_wd, piecewise.py::section_we,
piecewise.py::section_wf.
Let f be a continuous map of one stream, cut at finitely many rational kinks κ into pieces on each of which it is C² and monotone, an affine piece being λx + γ with rational slope λ = u/v and rational offset γ. (A discontinuous map is dead at every L: a box round the jump has an image at least the jump wide at every depth.) With the threshold Λ_law(L) = (w − 1)b^L/w, at or below which no box's Lipschitz constant lets it kill, f is dead at L iff one of three clauses fires; a clause that does not fire is empty, as is an affine piece with no killing box:
- - The curved clause: a non-affine piece has sup |f′| > Λ_law(L).
- - The piece clause: an affine piece has a killing box. With its excess ξ = |λ|w/b^L − (w − 1), a box kills iff ψ > 1 − ξ, ψ the fractional part of M⁻ plus the image's lower end in zone units, b^(L−n) at box depth n, the zones' spacing. Over the prefixes the ψ form a lattice of step δ/b^L, δ = gcd(u, vb^L)/v the affine criterion's step at c = L (gcd(ub^(−L), v)/(vb^(−L)) at L < 0), and its offset γb^(n−L) mod 1 is eventually periodic in the depth n.
- - The kink clause: a straddler, a box straddling a kink, kills at a depth below n_full, the depth from which every affine piece holds a whole period of its lattice plus w + 2 boxes and every box position straddling a kink belongs to a prefix.
So the floor is the least L at which all three are empty: at most L*, and below it exactly when all three are empty at L* − 1. A sup, a cycle and a finite scan decide it, the third branch beside the many-stream theorem's two.
Proof. Death is a property of the boxes (the tile lemma), and a box lies in a piece or is a straddler. In a curved piece the many-stream theorem's necessity runs with the piece as the root box: the component of {|f′| > (sup + Λ_law)/2} holding the peak has nonzero f″ somewhere unless f′ is constant on it, and then f′ continuous up to the kink makes the component the whole piece and the piece affine. So a piece affine on its excess region {|f′| > Λ_law}, when that region is nonempty, is that region whole: on that region's boundary inside the piece f′ would be Λ_law, not the sup. In an affine piece a box's image is |λ|w/b^n wide against a zone (w − 1)b^(L−n) long, and it strictly contains one iff ψ > 1 − ξ. A straddler's image is the hull of f at the box's ends and at the kink, and the containment lemma carries it: from n_full on, a killing straddler implies a clause of a piece beside it. A curved side above the threshold meets the curved clause. If both sides of a kink are below the threshold, the image is at most w − 1 wide; at an extremum kink a side below the threshold, moving at most a zone's length from the kink's value, never attains the far end of a killing hull. Otherwise take the affine side of slope λ above the threshold that attains the hull's far end at an extremum kink, the steeper side at any other kink, and the hull end T it attains; the image lies within |λ|w/b^L of T on the side that piece's images extend, the other side adding at most |λ| times its share of the box. So at n ≥ n_full the image sits inside an image at the same offset of a box of that piece, translated by whole zones, and that piece's clause fires.
The script reads the clauses against a box scan at L*, at the clauses' floor and one below, at the 20 cells or a design's own, the scan's kill found exactly where the clauses call dead. The specimen [x/2 | x], x/2 left of the kink 0 and x right of it, has L* = 1 and reads at 0 at 16 cells. The slope-1 piece's lattice sits on the dead arc's excluded point, and the slope-1/2 piece kills only where w < 2 and neither digit bound is b − 1: at (4, 2, 2), (5, 2, 3), (5, 3, 2) and (5, 3, 3). [3x/4 + x²/4 | x], kinked at 0, is dead at 0 and [x/5 + x²/20 | x] alive at 0 at each cell, and x − (x + M⁻/2)³ below −M⁻/2 with x above it, a C² map affine on its whole peak set, is dead at 0 at every cell by its curved remainder, at input depth 1 to 3. The kink clause fires alone, but only shallow. Ten valleys at radices 2 to 4 and eight kinks between two rising slopes, both pieces empty at L* − 1, are killed there by a straddler at input depth 0 or 1. Over these maps and every L read, none of the 36 (kink, depth) from n_full to the cycle's end where a straddler kills lacks a neighbour's clause. The theorem is about one stream; of maps of several streams cut into pieces the script reads two, |x|·y and max(x, y)·z, dead at L* − 1 at all 20 cells, as the many-stream theorem inside each piece predicts (observation).
Muller (IEEE Trans. Comput. 43, 1994, Theorems 1 and 2) proves that a map with piecewise continuous f″ that a finite automaton computes on-line is piecewise affine with rational coefficients and breakpoints. The theorem's delay, and its curved pieces under unbounded memory, are not there.
The segment lemma
Tier: criterion; rule (the designs and their distances, verified at
the 20 cells, a design at 19 of them).
Verifier: proof; piecewise.py::section_ws, piecewise.py::section_wt,
piecewise.py::section_wl, piecewise.py::section_wr,
piecewise.py::section_wz, design.py, radius.py.
An open arc of the circle is missed by a lattice iff the lattice's step is at least the arc and its offset lies, modulo the step, in a closed range of length the step less the arc, one point at equality. So an affine piece with excess ξ > 0 at L can be empty only if δ/b^L ≥ ξ. At L = 0 a slope ±u/v in lowest terms has step 1/v and ξ = ℓ/(v(b − 1)), ℓ = u|I| − vρ an integer, and there the condition is sufficient too: an offset γ on the grid 1/(v(b − 1)) holds the lattice's offset fixed at every depth and on that grid, where the arc's ends sit. The alive-able slopes, those empty at L = 0 at some offset, are every slope of magnitude at most ρ/|I|, empty at every offset, and above it exactly the u/v in lowest terms with
1 ≤ u|I| − vρ ≤ b − 1,
each empty for a lattice offset in a range (b − 1 − ℓ)/(v(b − 1)) long. Slope 1 is the boundary ℓ = b − 1 and no slope above it is alive-able, and slope 1/2 is alive-able at every cell, |I| − 2ρ ≤ b − 1 being |I| ≥ b − 1. At every cell with |I| ≤ 2(b − 1), the 20 cells among them, nothing strictly between max(1/2, λ_gap) and 1 is, where λ_gap = 2/(2 + ⌈(b − 1)/ρ⌉). For numerator u every alive-able slope is at most u/(u + ⌈(u − 1)(b − 1)/ρ⌉), its denominator the least v with ℓ ≤ b − 1, and equal to it when that fraction is in lowest terms; λ_gap is the largest of these bounds over u ≥ 2, the bound at u = 2. With Δ = (b − 1)/ρ ≥ 1, ⌈(u − 1)Δ⌉ is u − 1 ≥ u/2 when ⌈Δ⌉ = 1, and otherwise at least (u − 1)(⌈Δ⌉ − 1) + 1 ≥ u⌈Δ⌉/2, as (u − 2)(⌈Δ⌉ − 2) ≥ 0; so u⌈Δ⌉ ≤ 2⌈(u − 1)Δ⌉, which is u/(u + ⌈(u − 1)Δ⌉) ≤ 2/(2 + ⌈Δ⌉). λ_gap need not be alive-able with numerator 2: at 13 of the 20 cells it reduces to 1/2 or 1/3, and the alive-able slopes of numerator at least 2 sit below it. The script meets the lemma at L = 0, on the offset grid 1/(v(b − 1)), at all 480 (cell, slope) pairs of the Farey slopes of order 6, both signs: which slopes are alive-able, and how many grid offsets are empty. The grid cannot tell a slope empty at every offset from one at ℓ = 1, whose range holds every grid offset.
A chord map, the table-and-interpolate shape of a reciprocal or logarithm unit, samples a curve at breakpoints and joins them by chords. A chord's slope carries its breakpoints' denominators, so the steepest chord is often fine-latticed, and one whose step is below its excess is dead at L* − 1. The reciprocal 1/(M⁻ + 1 + x), its pole at distance 1, has L* = 1 at every cell. Of 60 designs at the 20 cells (uniform 4 and 8 chords, and 8 chords snapped to the boxes of one depth), 56 have a steepest chord whose step is below its excess and are dead at 0. The other 4 are the uniform 4-chord design at the symmetric top cells a⁻ = a⁺ = b − 1, whose steepest chord −2/3 has step and excess both 1/3: they read at 0, at the one offset their range holds. Their 8-chord refinement, with a chord −4/5 at step 1/5, is back at L* at all four; snapping the breakpoints to boxes moved the delay at no cell. Where a breakpoint sits decides a coarse-lattice piece at one depth: [x/2 | x − κ/2] cut at κ has its slope-1 piece empty at 0 iff κb^(n₁)/2 is an integer, n₁ the first depth at which that piece holds a box, at all 360 cuts read.
A continuous map F within μ of a decreasing curve f has, over a box [x₁, x₂], an image containing [f(x₂) + μ, f(x₁) − μ]. So a killing box of f whose two overhangs past its zone both exceed μ kills F too, whatever F's pieces: F's lead is at least f's once μ is below the lead gap from f's range to the next smaller root tile; a larger lead only counts more depths. With μ_rob, the robust radius, the largest smaller overhang over the curve's killing boxes at L* − 1, no map within μ < μ_rob of the curve, μ below the lead gap, reads below the curve's L*. μ_rob is attained at a bounded depth, since a depth-n box's two overhangs sum to at most (Λw − (w − 1)b^L)/b^n. For the reciprocal it is attained at depth 3 or less, from 1/150 at (5, 4, 4) to 1/12 at (4, 2, 2), and is above b⁻⁴ at 17 of the 20 cells; a digit lower, the same largest smaller overhang over the killing boxes at L* − 2 is at least b⁻² at every cell but (2, 1, 1). The uniform 4-chord design sits 0.034 from the curve, above μ_rob at each top cell.
A fixpoint reads the radius. Over the ends of the boxes to depth N, a map alive at 0 keeps every box's largest value at most the top of the first zone starting above its least; the greatest solution under f + μ is a fixpoint. For the reciprocal, its range's top 1, and μ below both the lead gap and the curve's least value, some continuous map within μ reads at 0 iff that fixpoint stays at least f − μ at every N: the fixpoints fall with N, and their limit moves at most w/bⁿ between points within (w − 1)/bⁿ, one depth-n box holding both, so it extends continuously, each box's bound passing to it, a zone's top being right-continuous in the least; clipped at the top of f's tile, at least f, it is still a solution within μ, and, positive and within the lead gap of the top 1, it keeps f's lead. A search over the alive-able slopes, kept under the fixpoint, finds designs of 1 to 7 pieces reading at 0 at 19 of the 20 cells, each checked exactly. At 15 a design lies within μ_rob itself, below the lead gap, so there μ_rob is the least distance from the curve at which a continuous map reads below L*: at (4, 2, 2) the one line 13/20 − 2x/5. At (4, 1, 3), (4, 3, 2), (4, 3, 1) and (5, 4, 2) the closest found is within 1.00004, 1.00005, 1.0047 and 1.0078 times μ_rob. Open: is μ_rob attained there, and does any design read at 0 at (5, 3, 4), where the search at width 800 stopped at its cap of 16 pieces?
The tile-valued maps
Tier: theorem.
Verifier: proof; comparators.py::section_xb.
At L = 0 the level-t tiles are, in absolute units, the intervals [p − M⁻, p + M⁺]b^(−n) for every integer p, n = t + c: the depth-n boxes and their translates by whole steps b^(−n). A map is tile-valued when the image of every box of every depth n ≥ 0 lies in a tile of depth n. A tile-valued map of lead o is read at L = 0, at lookahead −o: an interval in a tile strictly contains no zone, and the case n = 0 puts the range in a tile of depth 0, which the tile lemma's clamp takes inside the root tile: a level-o tile, whose o digits name a tile of every coarser level, so the digits committed before any input is read hold the range too.
The comparators are tile-valued. Boxes of one depth have one width, so the higher top has the higher bottom, and the image of max(x, y) over a box is the higher box, that of min(x, y) the lower. Every lattice polynomial of streams, max and min nested as in the clamp min(max(x, y), z), has a box for its image, and the rectifier max(x, 0) has the box, the point 0 or [0, hi] inside the box. Each reads at lookahead 0, where the margin law at Λ = 1 asks for 1. The literature's table gives max and min on-line delay 0 (Ercegovac and Lang, Digital Arithmetic, 2003, Table 9.1); the theorem is why, at every radix and every redundant digit set.
The absolute value
Tier: criterion.
Verifier: proof; comparators.py::section_xc, poles.py::section_pi.
With a± ≥ 1, |x| is read at L = 0 iff (b − 1) | (a⁺ − a⁻), and at L = 1 otherwise. Its lead is 0 when a⁻ ≤ a⁺ and otherwise the least o with b^o a⁺ ≥ a⁻, so it reads at lookahead −o at a divisible cell, negative when a⁻ > a⁺, and elsewhere at 1 − o, negative once o ≥ 2.
Proof. |x| sends a box [lo, hi] in x ≥ 0 to itself and one in x ≤ 0 to its mirror [−hi, −lo], whose lower end sits at M⁻ − M⁺ modulo 1, in units b^(−n), from the tiles' lower ends; a box straddling 0 goes to [0, max(−lo, hi)], inside the box or its mirror. When b − 1 divides a⁺ − a⁻, M⁻ − M⁺ is an integer and every mirror is a tile, so is the one holding the range [0, max(M⁻, M⁺)] at n = 0, and |x| is tile-valued. Otherwise an interval w long at an offset in (0, 1) from the tiles' lower ends strictly contains the zone above its lower end, so the box of the least prefix kills at L = 0 once it lies in x ≤ 0, which it does at the least n ≥ 1 with a⁺ ≤ a⁻(b^n − 1). At L = 1 the margin law holds at Λ = 1, bρ ≥ |I| being |I| ≥ b. At L = −1 a box in x ≥ 0 is its own image, bw long in level units against zones of spacing 1 and length w − 1, and strictly contains one.
The piece −x carries the segment lemma's boundary slope, whose range of offsets is one point: every box of the piece has the one offset M⁻ − M⁺ modulo 1, and the clause asks whether it is that point. So "|x| reads at 0 iff the digit set is symmetric", true inside the radix where b − 1 dividing a⁺ − a⁻ forces a⁺ = a⁻, fails outside it: every set of radix 2 reads at 0, and so do (3, 1, 3) and (4, 1, 4). A negative lookahead sits at a lopsided cell (A curved map through the origin runs ahead only past the radix), here by the criterion, not the C² theorem: it needs a⁻ = a⁺ + k(b − 1) ≥ b at a divisible cell or a⁻ > b·a⁺, either giving a⁺² < a⁻(a⁻ + 1 − b).
The free comparator
Tier: theorem.
Verifier: proof; comparators.py::section_xd,
comparators.py::section_xe, comparators.py::section_xf.
A comparator inside a unit is free: for every map G of streams, G(x, max(y, z)) and G(x, y) die at the same L at the same depths, and min likewise. Over the boxes of a depth the first map's images are the second's: at boxes B_x, B_y and B_z of x, y and z the image is G's at B_x and the higher of B_y and B_z, and each pair (B_x, B_y) is the case B_z = B_y. So the ranges agree, the leads do, and death is a property of the images.
On an output it costs nothing either. If G has lead 0, max(G(x), z) has G's delay whenever that is not negative. The constant stream z₋ of digit −a⁻ has the depth-n box [−M⁻, −M⁻ + w/b^n], so at (B_x, that box) the image is [lo_G, max(hi_G, −M⁻ + w/b^n)], which strictly contains every zone G's image does. Conversely the image lies in G's image or in z's box, a depth-n tile, which lies in a level-t tile while t ≤ n, that is L ≥ 0. min(G(x), z) takes z₊, the constant stream of digit a⁺, and a partner at the output's scale, b^o z against a G of lead o, is the same argument wherever G's lookahead is not negative.
A clamp of a sum is a case a partner at the input scale makes new: max(x + y, z₋), where z₋'s value −M⁻ cuts inside the sum's range. It too has the sum's delay wherever a⁺ ≥ 1, and min(x + y, z₊) by the mirror wherever a⁻ ≥ 1. The upper half is the output argument's: the clamp's image lies in the sum's image or in z₋'s box, a tile of level n + 1 at lead 1, which strictly contains no level-t zone while L ≥ 0. The sum's image at the prefix sum s is [(s − 2M⁻)/b^n, (s + 2M⁺)/b^n], and s ↦ s + b^L moves it one zone up. At L ≥ 1 take the top s of a dead box's orbit, s > 2a⁺R_n − b^L. The zone it strictly contains, [(q + 1 − M⁻)b^(L−n), (q + M⁺)b^(L−n)], has q > 2M⁺ + M⁻ − 2w/b − 2 since n ≥ L ≥ 1, and that is at least −1 iff 2a⁺(b − 1) + a⁻(b − 2) ≥ b(b − 1), true once a⁺ ≥ 1. So q ≥ 0, the zone's lower end lies above −M⁻, and the clamped image still strictly contains it. At L ≤ 0 the clamp's first digit must hold a range M⁺ longer than a tile.
The sign count
Tier: theorem; property (the leading-nonzero law, the full width).
Verifier: proof; sign.py::section_sa, sign.py::section_sb,
sign.py::section_sc, sign.py::section_sd, sign.py::section_se.
A string of D read top first writes an integer, and the sign automaton reports its sign. Here D needs only |I| + 1 ≥ b, the non-redundant ρ = 0 included. With a± ≥ 1 the least sign automaton has
σ + 1 = ⌈a⁻/(b − 1)⌉ + ⌈a⁺/(b − 1)⌉ + 1
states, σ being addition's (Addition), so 2⌈a/(b − 1)⌉ + 1 on a symmetric set. Its live states, the prefixes whose completions take more than one sign, are the prefix values u with −M⁺ < u < M⁻: the prefixes whose box [u − M⁻, u + M⁺] holds 0 strictly inside. On a symmetric set with a ≥ b − 1 that live set, with the moves u ↦ bu + d, d ∈ D, among its prefixes, is the trim part of Frougny and Sakarovitch's zero automaton, and the law below for a three-state sign automaton is their criterion (Combinatorics, Automata and Number Theory, Cambridge University Press, 2010, ch. 2, Propositions 2.2.5 and 2.2.8). The minimality, the count and the asymmetric sides are ours.
Proof. The m-digit tails write every integer of [−a⁻R_m, a⁺R_m]. At u ≥ M⁻ every completion is at least b^m M⁻ − a⁻R_m = M⁻ > 0, and by the mirror every completion of u ≤ −M⁺ is negative. A u > 0 inside the interval is positive at the empty tail and reaches 0 by a tail of value −b^m u once u ≤ M⁻(1 − b^(−m)), which a large m grants since u < M⁻ strictly; the mirror holds below, and 0 reaches 0, 1 and −1. Two live u < u′ are parted by the tail sending u to 0, which leaves u′ at b^m(u′ − u) > 0, and a live prefix is parted from both dead classes by the same tail. Every integer of the interval is a prefix value, so the count is two plus its (⌈M⁻⌉ − 1) + (⌈M⁺⌉ − 1) + 1 integers.
The sides cross: a positive prefix survives while u < M⁻, the negative reach of the tails, since only a negative tail pulls it back. Addition counts the same two reaches M⁻ and M⁺ in integers from an integer anchor: σ counts the digits of D less than M⁻ above its bottom or M⁺ below its top, the ones addition's J leaves out at c = 1; the sign count lays the same two reaches on either side of 0. One number prices addition's slack and the sign's states, and ρ fixes neither: at ρ = 3, (4, 3, 3) has 3 states and (2, 2, 2) has 5.
The leading-nonzero law is the count 3, a property: σ + 1 = 3 iff a± ≤ b − 1, and then 0 is the only live prefix, so the automaton reads "zero so far" until the first nonzero digit, whose sign is the string's, and a string writes 0 iff every digit is 0. Above the line it fails: at a⁺ ≥ b the string (−1, b), at a⁻ ≥ b its mirror (1, −b), writes 0 behind a nonzero leading digit. With one reach 0 the numeration is unsigned and the automaton has 2 states.
With a± ≥ 1, no lookahead short of the whole string decides the sign: at every width n the strings 0^(n−1)1 and 0^(n−1)(−1) share n − 1 digits and differ in sign, ρ = 0 included. The prefix 0's box holds 0 at every depth, so the cost is a signed numeration's and not the redundancy's. The sign is discontinuous at 0 and its verdict is not a stream of digits, so it is read through no tile. What replaces the lookahead is a factorization. Each digit acts on the automaton's σ + 1 states as a map, read at lookahead 0; the sign is the composite at the start state, and composition is associative, so a balanced tree evaluates it at depth ⌈log₂ n⌉ with no chain. A zero-test factors the same way; its other route, the conjunction over the digits of "this digit is 0", is the test exactly below the leading-nonzero line.
Comparison
Tier: theorem.
Verifier: proof; sign.py::section_sf.
x − y taken digit by digit is a string of {−|I|, …, |I|}, contiguous with both digit bounds |I| at the same radix, so comparison is the sign automaton there: 2⌈w⌉ + 1 states, reading a⁻ and a⁺ only through their sum and never fewer than the sign's. By the sign count a difference u of prefixes is live iff |u| < w: exactly when the two prefixes' boxes, each w long, have interiors that meet. Those 2⌈w⌉ − 1 differences are the order blur of DUAL: What the purchase spends, counted there on a symmetric set as the tiles a tile's order stays open against.
That is why max is free and comparison is not. max(x, y) sends a pair of boxes to the higher box, a tile at L = 0 (The tile-valued maps). Which box is higher is the order of the prefix values, known at every step; which value is higher is the order of two points of the boxes, open exactly while their interiors meet. The comparator reads the first order and never the second. A later turn of the boxes' order costs it nothing: the images nest as the boxes do, so the tile committed for the old higher box holds the new one. The verdict asks the second order, and a pair of equal prefixes keeps it open forever.
Open fronts
Does a straddler kill with no neighbour's clause once each affine piece holds a whole lattice period, below n_full? The probe: the box scan of piecewise.py at those depths, a kill there with both neighbours' clauses empty.
At a lattice equality, does every rule on two truncated words need q + o − 2 fractional bits, or only the one read (The selection estimate)? At slack η and m = q + o − 3 the residuals k − η and k + 2η share the estimate k − 4η and allow one digit each, k and k + 1 (k = −1, 0). The probe: whether one line of play reaches both whatever the rule chose before, a print of the pair or of a rule that survives. The answer decides whether the floor's digit costs q + o + 1 bits, the two words' and the exact residual's alike, or one digit of lookahead at m = 1.