Direct-access strict-majority tester #
For [Goldreich2007DraftR5, Exercise 10.9, p. 498], the machine receives the binary length on its input tape. It samples independent little-endian address words, skips addresses beyond the input, queries each remaining position, and compares the count of ones against the binary cutoff. The empty input is rejected without probes.
Main results #
Cslib.BitString.exists_majorityDirectAccess: a constant-probe tester with polylogarithmic direct-access time and error at most one third.Cslib.BitString.majorityDirectAccess_timeAndQueries: one halting fair-coin machine, with polynomial time in the binary header length and a separate constant probe bound.
The strict-majority sampler on a binary length header. Padded samples count as zero and require no oracle request.
The oracle program returns the same verdict in law as the local test on a uniform seed.
The same fair-coin machine works for every binary length, with a worst-case polynomial
clock and at most k external queries independently of that clock.
For each positive distance, a single direct-access strict-majority tester has a worst-case clock polynomial in the binary input length and a constant probe bound. It accepts members with probability at least two thirds and accepts far inputs with probability at most one third.