Documentation

CslibFrontier.Computability.PropertyTesting.Linearity

Query bounds and amplification for linearity testing #

The existing BLR local test (PCP.HadamardTester.blrTest) becomes a decision-tree tester through PCP.LocalTest.decisionTree. Repeating it k times reads at most 3 * k table entries, accepts every parity with probability one, and accepts a function at relative Hamming distance at least ε from every parity with probability at most (1 - ε) ^ k. The random strings are k pairs of independent uniform points of the cube; the distance is under the uniform distribution.

The distance guarantee is a consequence of the existing BLR soundness theorem O'Donnell, Theorem 1.30 and Example 7.3. The repetition and execution bridges are elementary constructions. These are query bounds, with no machine running-time claim.

Main results #

References #

@[instance_reducible]

Every run of k BLR trials reads at most 3 * k table entries, including repetitions.

Parities are accepted with probability one by any number of independent BLR trials.

theorem Cslib.BitString.acceptProb_repeatAll_blrTest_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → Bool) → Bool} {ε : ℝ} (hfar : ∀ (S : Finset ι), ε ≤ ↑(hammingDist f (parityOn S)) / 2 ^ Fintype.card ι) (k : ℕ) :

If the relative Hamming distance from f to every parity is at least ε, then k independent BLR trials accept with probability at most (1 - ε) ^ k. In particular, this gives one-sided property testing at every distance threshold 0 ≤ ε ≤ 1.