The Saks–Zhou iteration instantiated with Nisan's generator #
Combines the sink-augmented walk realization of dyadic substochastic matrices
(Cslib.Probability.SaksZhou.walkStep, dens_foldl_walkStep_eq) with Nisan's good-hash-seeds
lemma (Cslib.Crypto.PRG.Nisan.dens_hashSeeds_far_le) to instantiate the Saks–Zhou randomized
rounding iteration (Cslib.Probability.SaksZhou.dens_snapIter_far_le_of_two_le) using one shared
hash-seed tuple hs : Fin k → H and n₂ independent rounding shifts z : Fin n₂ → Fin (2 ^ d)
(Chattopadhyay and Liao, Appendix A.1;
Hoza, Appendix A; Nisan; Saks and Zhou, internal
numbering of the publisher copy not consulted).
For any substochastic matrix A whose entries are multiples of 1 / |X| and any pairwise
independent hash family h : H → X → X, nisanPow order letter h k A hs averages the
2 ^ k-block run of the ordered walk driven by Nisan.blocks h k x hs over one uniform block.
Since every reference iterate of snapIter is dyadic substochastic at precision d
(isDyadicSubstochastic_snapIter), when 2 ^ d ∣ |X| each iterate has entries in ℤ / |X| and
therefore admits an exact walk over Option ι.
Specializing to Boolean Toeplitz hashing (Cslib.Probability.toeplitzHash) on blocks of even
length 2 * m gives bitNisanPow and the square-root-free bound dens_snapIter_bitNisanPow_far_le
over seeds of k * (3 * (2 * m) - 1) + n₂ * d bits.
For a matrix supplied by its integer numerators at denominator 2 ^ d, nisanSnapCounts
computes all rounds using natural-number weights and hit counts. Its entries divided by 2 ^ d
agree with the real iteration for every fixed seed when d ≤ b (snapIter_bitNisanPow_eq_counts).
Every positive-round row has total numerator at most 2 ^ d (sum_nisanSnapCounts_le).
Main definitions #
Cslib.Probability.SaksZhou.nisanPow: approximate(2 ^ k)-th power computed by Nisan's generator on the sink-augmented walk ofA.Cslib.Probability.SaksZhou.NisanShiftSeed: shared Toeplitz hash seeds plusn₂rounding shifts.Cslib.Probability.SaksZhou.bitNisanPow:nisanPowspecialized totoeplitzHashon bit strings.
Main results #
Cslib.Probability.SaksZhou.dens_entryFarSet_nisanPow_le: most hash seeds makenisanPow h k Aentrywiseε-close toA ^ (2 ^ k).Cslib.Probability.SaksZhou.dens_snapIter_nisanPow_far_le: Saks–Zhou iteration bound fornisanPow.Cslib.Probability.SaksZhou.dens_snapIter_bitNisanPow_far_le: specialization totoeplitzHashon2 * m-bit blocks.
References #
- N. Nisan, Pseudorandom generators for space-bounded computation
- M. Saks and S. Zhou, BP_H SPACE(S) ⊆ DSPACE(S^{3/2}): publisher copy not consulted.
- E. Chattopadhyay and J.-J. Liao, Optimal Error Pseudodistributions for Read-Once Branching Programs, arXiv v4, Appendix A.1
- W. M. Hoza, Better Pseudodistributions and Derandomization for Space-Bounded Computation, Appendix A
Approximate (2 ^ k)-th power of a matrix A computed by averaging Nisan's generator
Cslib.Crypto.PRG.Nisan.blocks h k x hs on walkStep order letter A over a uniform block,
keeping the hash seeds hs : Fin k → H fixed.
Most hash seeds make nisanPow close to A ^ (2 ^ k): for a pairwise independent hash
family h : H → X → X and a substochastic matrix A with entries in ℤ / |X|, the density of
hash seeds for which an entry of nisanPow order letter h k A hs - A ^ (2 ^ k) exceeds ε
in magnitude is at most (|ι| + 1) * ((2 ^ k - 1) * (|ι| + 1) / √|X|) / ε.
Saks–Zhou iteration with Nisan's generator: for a substochastic matrix M over ι with
entries in ℤ / |X|, 2 ^ d ∣ |X|, and 1 ≤ k, when (|ι| + 1) * ((2 ^ k - 1) * (|ι| + 1) / √|X|) ≤ ε ^ 2, all but an n₂ * (ε + |ι| ^ 2 * (2 ^ d * ε + 2 ^ (-d))) fraction of pairs
(hs, z) satisfy ‖snapIter d (nisanPow order letter h k · hs) M n₂ z - M ^ (2 ^ (k * n₂))‖_∞ ≤ 2 ^ (k * n₂) * |ι| * 2 ^ (1 - d).
Specialization to Boolean Toeplitz hashing #
A single-level hash seed for Cslib.Probability.toeplitzHash on b-bit blocks: a b × b
Boolean Toeplitz matrix encoded in 2 b - 1 bits together with a b-bit shift vector.
Combined randomness for n₂ Saks–Zhou rounds using k-level Toeplitz-Nisan powering on
b-bit blocks and d-bit rounding shifts: k * (3 * b - 1) + n₂ * d bits total.
Total cardinality of NisanShiftSeed b k n₂ d is 2 ^ (k * (3 * b - 1) + n₂ * d).
nisanPow specialized to Cslib.Probability.toeplitzHash on b-bit blocks.
A rounded entry of Nisan powering can be computed from the number of starting blocks whose walk ends at the requested column, using natural arithmetic for the final rounding.
Integer numerators of a seeded Saks–Zhou iteration. The supplied matrix and every round's
result have denominator 2 ^ d. Each starting block is counted at its final column, and the
result is rounded using that round's shift.
Integer counts agree entry by entry with the rounded real-matrix iteration for every seed and shift sequence, including when the supplied base row sums exceed one.
Every positive round has total numerator at most 2 ^ d in each row. An initial block can
contribute to at most one output column, and snapping can only decrease its column's frequency.
Saks–Zhou iteration with Boolean Toeplitz Nisan powering: on blocks of 2 * m bits with
d ≤ 2 * m and 1 ≤ k, if (|ι| + 1) * ((2 ^ k - 1) * (|ι| + 1) / 2 ^ m) ≤ ε ^ 2, all but an
n₂ * (ε + |ι| ^ 2 * (2 ^ d * ε + 2 ^ (-d))) fraction of NisanShiftSeed (2 * m) k n₂ d pairs
produce a matrix whose every row sums within 2 ^ (k * n₂) * |ι| * 2 ^ (1 - d) of
M ^ (2 ^ (k * n₂)).