A seeded low-degree test for OR modulo two #
Let F be a vector space over 𝔽₂ with a basis indexed by κ, and give every position w of a
finite set A a vector e w ∈ F. The integer function
orTest b e A y = 1 - ∏_{j ∈ κ} (1 - ∑_{w ∈ A} [e w]_j y_w), where [·]_j is the j-th
coordinate, has degree at most |κ| in the bits y, and modulo 2 it is nonzero exactly when
∑_{w ∈ A, y_w} e w ≠ 0 (Cslib.BitString.orTest_emod_two_ne_zero_iff). That sum is 0 when no
bit is true, so orTest computes the OR of the bits of A whenever the vectors of the true bits do
not sum to 0.
With F a finite field and e w = r ^ idx w for an injective idx : A → [0, N) and a seed
r ∈ F, the sum is the value at r of the nonzero polynomial ∑_{w ∈ A, y_w} X ^ idx w when some
bit is true. It has fewer than N roots (Cslib.BitString.card_filter_sum_pow_eq_zero_le), so for
any fixed bits all but fewer than N seeds give the OR. This is a seeded form of the probabilistic
polynomial for OR of Razborov [Raz87] and Smolensky [Smo87], with seeds from the
powering construction of Alon, Goldreich, Håstad and Peralta [AlonGoldreichHastadPeralta1992,
§5, Construction 3 and Proposition 3, June 14, 1992, p. 10].
Beigel and Tarui instead isolate a true bit by the Valiant–Vazirani lemma
[BeigelTarui1994, Lemma 2.3]. Here the seed is one field element and the test has degree |κ|,
its dimension over 𝔽₂.
Main definitions #
Cslib.BitString.orTest: the seeded OR test.
Main results #
Cslib.BitString.orTest_emod_two_ne_zero_iff: what the test computes modulo two.Cslib.BitString.orTest_mem_lowDegree: its degree is at most the dimension.
References #
- N. Alon, O. Goldreich, J. Håstad, R. Peralta, Simple constructions of almost k-wise independent random variables
- R. Beigel, J. Tarui, On ACC
- A. A. Razborov, Lower bounds on the size of bounded depth circuits over a complete basis with logical addition
- R. Smolensky, Algebraic methods in the theory of lower bounds for Boolean circuit complexity
The seeded OR test 1 - ∏_{j ∈ κ} (1 - ∑_{w ∈ A} [e w]_j y_w), where [·]_j is the
j-th coordinate in the basis b of F over 𝔽₂, read as 0 or 1.
The OR test reads only the bits of A.
What the OR test computes. Modulo two, orTest b e A y is nonzero exactly when the vectors
e w of the true bits w ∈ A do not sum to 0.
The OR test has degree at most the dimension. If each bit g w v is a function of degree
at most 1 of v, then orTest b e A (g · v) has degree at most |κ| in v.