Randomized rounding with a random shift ("snap") #
The Saks–Zhou rounding operator [SZ99], called Snap in [ChattopadhyayLiao2020,
Definition A.2] after Hoza and Umans, is
snap d x y = max (⌊x 2 ^ d - y 2 ^ (-d)⌋ 2 ^ (-d)) 0 for a shift y ∈ [0, 2 ^ d). It perturbs
x downward by y 2 ^ (-2d) ∈ [0, 2 ^ (-d)), rounds down to a multiple of 2 ^ (-d) and clips
at 0. For x ≥ 0 the result lies in [x - 2 ^ (1 - d), x], and it is always a nonnegative
multiple of 2 ^ (-d). Applied entrywise (snapMatrix), it maps substochastic matrices to
substochastic matrices with entries in 2 ^ (-d) ℕ (IsDyadicSubstochastic).
The point of the random shift is Lemma A.3 of [CL20]: two nearby values are
rounded differently for few shifts. If |a - b| ≤ ε, at most a 2 ^ d ε + 2 ^ (-d) fraction of
the shifts y give snap d a y ≠ snap d b y (dens_snap_ne_le). For matrices, a union bound
over the entries gives |ι| |κ| (2 ^ d ε + 2 ^ (-d)) (dens_snapMatrix_ne_le). For a ≤ b, each
disagreement contributes at least one to the sum of integer-part differences over the shifts.
Hermite's identity Int.sum_floor_add_div evaluates that sum as ⌊2 ^ (2d) b⌋ - ⌊2 ^ (2d) a⌋.
Main definitions #
Cslib.Probability.SaksZhou.snap: the rounding operatorSnap_d(x, y).Cslib.Probability.SaksZhou.snapMatrix: its entrywise application to a matrix.Cslib.Probability.SaksZhou.IsDyadicSubstochastic: nonnegative matrices with rows summing to at most1and entries in2 ^ (-d) ℕ.
Main results #
Cslib.Probability.SaksZhou.sub_le_snap,Cslib.Probability.SaksZhou.snap_le,Cslib.Probability.SaksZhou.abs_snap_sub_le:x - 2 ^ (1 - d) ≤ snap d x y ≤ xforx ≥ 0.Cslib.Probability.SaksZhou.exists_snap_eq: the values are multiples of2 ^ (-d).Cslib.Probability.SaksZhou.isDyadicSubstochastic_snapMatrix: snapping preserves substochasticity.Cslib.Probability.SaksZhou.dens_snap_ne_le: Lemma A.3 for one entry.Cslib.Probability.SaksZhou.dens_snapMatrix_ne_le: Lemma A.3 for matrices.
References #
- M. Saks and S. Zhou, BP_H SPACE(S) ⊆ DSPACE(S^{3/2}): the rounding operator. The publisher copy was not consulted, so its internal numbering is unverified.
- E. Chattopadhyay and J.-J. Liao, Optimal Error Pseudodistributions for Read-Once Branching Programs, arXiv v4, Appendix A.1, Definition A.2 and Lemma A.3.
Numerator after shifted rounding of a frequency hits / total to the grid of denominator
scale. Natural subtraction clips negative values before the division.
Lemma A.3 of [CL20], counting form for matrices: if two matrices are
entrywise within ε, at most |ι| |κ| (4 ^ d ε + 1) shifts snap them differently.
Lemma A.3 of [CL20] for matrices: if two ι × κ matrices are entrywise
within ε, a uniform shift snaps them differently with probability at most
|ι| |κ| (2 ^ d ε + 2 ^ (-d)).
A square matrix is dyadic substochastic at precision d if its entries are nonnegative
multiples of 2 ^ (-d) and its rows sum to at most 1. These are the matrices that a
read-once branching program reading d bits per step can realize, as in
[Hoza2021, proof of Theorem A.3].
Snapping a substochastic matrix gives a dyadic substochastic matrix.