Documentation

CslibFrontier.Computability.MCSP.ZeroErrorAverageCase

Zero-error average-case devices for MCSP #

A zero-error average-case device for MCSP[s] on truth tables of n-input functions maps each truth table of length N = 2 ^ n to some b, an answer, or to none, the answer "?" [OliveiraSanthanam2018, Section 1.2, p. 8]. It is never incorrect: an answer some b means that b = true exactly when the truth table has circuit complexity at most s n. It is also correct on most inputs: the fraction of truth tables on which it answers "?" is bounded.

This module records the per-length condition and its asymptotic form. The fraction of "?" answers is stated as an exact natural-number count: for a parameter k, at most a 1 / k fraction of the 2 ^ (2 ^ n) truth tables receive "?". Taking k = 2 gives the bound Pr_x[A(x) ≠ "?"] ≥ 1 / 2 of [OliveiraSanthanam2018, Section 1.2, p. 8]; taking k n = n with correctness for every large enough n gives [OliveiraSanthanam2018, Appendix A, Definition 43, p. 34]. The device is an arbitrary function, so these predicates can be applied to formulas, circuits or any other model by composing with its semantics.

Main definitions #

Main results #

References #

structure Cslib.MCSP.IsZeroErrorDecider (s : ℕ → ℕ) (n k : ℕ) (D : BitString (2 ^ n) → Option Bool) :

D is a zero-error device for MCSP[s] on truth tables of n-input functions that answers "?" (none) on at most a 1 / k fraction of its 2 ^ (2 ^ n) inputs. An answer some b is always correct: b = true exactly when the truth table lies in GapMCSP.yesSet s, that is, when its function has circuit complexity at most s n. This is the per-length condition of [OliveiraSanthanam2018, Section 1.2, p. 8; Appendix A, Definition 43, p. 34].

def Cslib.MCSP.SolvesOnAverage (s k : ℕ → ℕ) (D : (n : ℕ) → BitString (2 ^ n) → Option Bool) :

The family D solves MCSP[s] on average with zero error and unknown fraction 1 / k n: for every large enough n, the device D n is never incorrect on n-input truth tables and answers "?" on at most a 1 / k n fraction of them. With k n = n this is [OliveiraSanthanam2018, Appendix A, Definition 43, p. 34], for an arbitrary nonuniform device family.

theorem Cslib.MCSP.solvesOnAverage_iff {s k : ℕ → ℕ} {D : (n : ℕ) → BitString (2 ^ n) → Option Bool} :
theorem Cslib.MCSP.IsZeroErrorDecider.mono {s : ℕ → ℕ} {n k₁ k₂ : ℕ} {D : BitString (2 ^ n) → Option Bool} (hD : IsZeroErrorDecider s n k₂ D) (hk : k₁ ≤ k₂) :

A zero-error decider at unknown fraction 1 / k is one at every larger fraction 1 / k'.

theorem Cslib.MCSP.SolvesOnAverage.mono {s k k' : ℕ → ℕ} {D : (n : ℕ) → BitString (2 ^ n) → Option Bool} (hD : SolvesOnAverage s k D) (hk : ∀ᶠ (n : ℕ) in Filter.atTop, k' n ≤ k n) :

Solving on average at unknown fractions 1 / k n implies solving on average at eventually larger fractions 1 / k' n.

theorem Cslib.MCSP.isZeroErrorDecider_decide {s : ℕ → ℕ} {n : ℕ} (k : ℕ) :

The exact decider for MCSP[s] never answers "?", so it is a zero-error decider for every unknown fraction.