Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Strict Dyadic Rounding of Optimal Laws

Abstract

Every atom above the minimum of an attaining real law has a least dyadic depth and strict rounding.

RealVector(m) denotes the real functions on Fin m. The parameter m is natural; p is a real vector on Fin m and k is an index of its least mass. Optimizer(m,p,k) means m>=2, every coordinate is positive, their sum is one, p(k)<=p(i) for every i, and L(p)/p(k)=alpha(m). The optimization domain includes every such real law. F(x,d) is floor(2^d x), L is its dyadic residual cost, and b(x,D)=F(x,D)-2F(x,D-1).

Write delta=2^(-D), R(p,d)=2^d-sum_i F(p(i),d), and L(p)=sum_d R(p,d)/2^d.

Theorem 1.1 (Coarser prefixes survive a donor debit).

Proof. Machine-checked in Lean as D5/S3/Arith/FibonacciAtomic/OptimalLaw/StrictRounding.donor_prefix (✓ std3). ∎

Source. Repository-derived.

Commentary.

If the depth-D digit is one, subtracting one depth-D cylinder leaves every earlier floor prefix unchanged. Division of the depth-(D-1) floor by an integer power of two transports this equality to every coarser depth.

ExchangeHyp(m,D,p,q,j,S,t,u) means: m>=2 and D>=1; p and q are nonnegative vectors of total mass one; q(j)=0; t>0 and u>0; for i in S both t<=p(i) and u<=q(i); for i outside S other than j, t+deltau<=p(i); the donor satisfies t+delta(1+u)<=p(j); L(p)=alpha(m)*t and L(q)<alpha(m)*u. Here alpha is the infimum of L divided by the smallest coordinate over all positive normalized real laws.

An optimal law has no profitable donor leaf

Form P(i)=p(i)+deltaq(i)-delta times the indicator of i=j. Coarser residuals do not increase. At depth D+n the residual is at most R(p,D+n)+R(q,n). Splitting the convergent series into its head and shifted tail gives L(P)<=L(p)+deltaL(q). Simultaneously every coordinate of P is at least t+delta*u. The defining lower bound for alpha(m) then contradicts the strict improvement of the same modified law. The classical dyadic cost expression is recalled by Lumbroso; the common-law comparison is the stated additional relation.

Definition 1.2 (The least terminating strict round).

Formalization. D5/S3/Arith/FibonacciAtomic/OptimalLaw/StrictRounding.DyadicStrictRound (✓ std3).

Source. Repository-derived.

Commentary.

OnGrid(x,D) means that 2^D x is an integer. The displayed depth is positive, is the least depth with this property, and rounds t strictly upward by one integer unit at that depth.

Definition 1.3 (Every larger coordinate has this form).

Formalization. D5/S3/Arith/FibonacciAtomic/OptimalLaw/StrictRounding.StrictlyRoundedLaw (✓ std3).

Source. Repository-derived.

Commentary.

The requirement applies to every coordinate strictly above the least mass.

Definition 1.4 (Strict upper dyadic round).

Formalization. D5/S3/Arith/FibonacciAtomic/OptimalLaw/StrictRounding.round (✓ std3).

Source. Repository-derived.

Commentary.

One is added even when the scaled argument is already integral.

Definition 1.5 (Dyadic grid membership).

Formalization. D5/S3/Arith/FibonacciAtomic/OptimalLaw/StrictRounding.OnGrid (✓ std3).

Source. Repository-derived.

Commentary.

This predicate allows any real x and natural depth, including depth zero.

Theorem 1.6 (Grid membership at finer depths).

Proof. Machine-checked in Lean as D5/S3/Arith/FibonacciAtomic/OptimalLaw/StrictRounding.grid_up (✓ std3). ∎

Source. Repository-derived.

Commentary.

Multiplying the integer numerator by 2^(E-D) preserves grid membership.

LeastGrid(x,D) means D>=1, OnGrid(x,D), and not OnGrid(x,d) for every natural d<D.

Theorem 1.7 (The final terminating digit is one).

Proof. Machine-checked in Lean as D5/S3/Arith/FibonacciAtomic/OptimalLaw/StrictRounding.least_grid_bit (✓ std3). ∎

Source. Repository-derived.

Commentary.

The floor carry is zero or one. A zero carry at the least terminating depth would place x on the preceding grid.

Theorem 1.8 (Strict rounding for every attaining real law).

Proof. Machine-checked in Lean as D5/S3/Arith/FibonacciAtomic/OptimalLaw/StrictRounding.result (✓ std3). ∎

Source. Repository-derived.

Acknowledgement. Jeremie Lumbroso (2013). Optimal Discrete Uniform Generation from Coin Flips, and Applications. URL: https://arxiv.org/abs/1304.1916v1.

Commentary.

A nonterminating larger coordinate has arbitrarily deep one digits. A smaller-label optimal receiver, extended by zero to the other labels, can exploit such a digit through a profitable leaf exchange. This contradicts optimality, so every larger coordinate terminates.

Choose a putative failure of strict rounding with greatest least terminating depth. The integer residual and the common floor prefixes on the receiver set leave enough fractional margin for another profitable exchange. This rules out the failure. All comparisons concern one actual law and its modified receiver law.

References