Documentation

CslibFrontier.Computability.MCSP.FormulaMagnification.SublinearAverageCase

Hardness magnification from sublinear zero-error average-case formulas #

This module states [OliveiraSanthanam2018, Section 1.2, Theorem 5, p. 8] with its concrete threshold and a conventional ternary device:

If MCSP[2^{√n}] on N-bit inputs cannot be solved on average with zero error by formulas of size o(N), then NP does not have polynomial size formulas.

Here N = 2 ^ n. The device answers 0, 1 or "?", is never incorrect, and answers "?" on a bounded fraction of inputs. We use the stronger average-case notion of [OliveiraSanthanam2018, Appendix A, Definition 43, p. 34]: correctness for every large enough n with "?" on at most a 1 / n fraction of truth tables. Ruling out such devices is a weaker hypothesis than ruling out the devices of Section 1.2, which may answer "?" on half of the inputs, so the headline theorem implies the Section 1.2 form, recorded as a corollary.

The threshold 2 ^ √n is rounded down to MCSP.sqrtThreshold n = ⌊2 ^ √n⌋₊. Circuit sizes are natural numbers, so a size is at most ⌊2 ^ √n⌋₊ exactly when it is at most the real 2 ^ √n (MCSP.le_sqrtThreshold_iff): the rounding loses nothing. The general theorem accepts every subexponential threshold, so other roundings such as 2 ^ ⌊√n⌋ are covered as well.

Modelling choices #

The proof is the instantiation [OliveiraSanthanam2018, Section 3.3, p. 20] of the asymptotic one-sided projection in CslibFrontier.Computability.MCSP.FormulaMagnification.AverageCase, with the ternary device of [OliveiraSanthanam2018, Section 3.3, Theorem 27, p. 21]: it answers 0 where the one-sided formula rejects and "?" elsewhere (ZeroErrorFormula.ofMask).

Main definitions #

Main results #

References #

noncomputable def Cslib.MCSP.sqrtThreshold (n : ℕ) :

The circuit-size threshold ⌊2 ^ √n⌋₊ of [OliveiraSanthanam2018, Section 1.2, Theorem 5, p. 8], for truth tables of n-input functions.

A natural number is at most ⌊2 ^ √n⌋₊ exactly when it is at most the real 2 ^ √n.

A truth table lies in the yes-set at threshold ⌊2 ^ √n⌋₊ exactly when its function has circuit complexity at most the real 2 ^ √n.

At perfect squares the threshold is exact: ⌊2 ^ √(m ^ 2)⌋₊ = 2 ^ m.

The threshold is at least 2 ^ ⌊√n⌋.

The threshold is at most 2 ^ (⌊√n⌋ + 1).

The threshold ⌊2 ^ √n⌋₊ is subexponential.

A De Morgan formula device on N input bits answering 0, 1 or "?": it answers "?" where the formula unknown is true and otherwise the value of the formula answer.

The output of the device: none for "?" and some b for the answer b.

The size of the device: the total leaf size of its two formulas.

The device answering 0 where the formula F is false and "?" where it is true, as in the proof of [OliveiraSanthanam2018, Section 3.3, Theorem 27, p. 21].

theorem Cslib.Circuits.Boolean.isZeroErrorDecider_ofMask {s : ℕ → ℕ} {n k r : ℕ} {F : Formula signature (2 ^ n)} (hyes : ∀ (T : BitString (2 ^ n)), List.ofFn T ∈ GapMCSP.yesSet s → F.eval interpretation T = true) (hcard : {T : BitString (2 ^ n) | F.eval interpretation T = true}.card ≤ 2 ^ (2 ^ n - r)) (hk : k ≤ 2 ^ r) (hr : r ≤ 2 ^ n) :

Translation from the one-sided unknown-mask formulation to a zero-error decider. If F accepts every truth table in the yes-set and accepts at most 2 ^ (2 ^ n - r) truth tables, then ZeroErrorFormula.ofMask F is a zero-error decider answering "?" on at most a 1 / k fraction of truth tables whenever k ≤ 2 ^ r and r ≤ 2 ^ n.

Forward form of [OliveiraSanthanam2018, Section 3.3, Theorem 27, p. 21] for ternary devices. If a binary language agreeing with succinct MCSP has polynomial-size formulas, then for every subexponential threshold s there are devices of at most 2 ^ (n / 2) leaves, eventually, that solve MCSP[s] on average with zero error and unknown fraction 1 / k n, for any k n ≤ 2 ^ n.

theorem Cslib.Circuits.Boolean.exists_NP_not_mem_FormulaPoly_of_zero_error_average_case_sublinear_hard {s k : ℕ → ℕ} (hs : SubexponentiallyBounded s) (hk : ∀ᶠ (n : ℕ) in Filter.atTop, k n ≤ 2 ^ n) (hhard : ¬∃ (D : (n : ℕ) → ZeroErrorFormula (2 ^ n)), ((fun (n : ℕ) => ↑(D n).leafSize) =o[Filter.atTop] fun (n : ℕ) => 2 ^ n) ∧ MCSP.SolvesOnAverage s k fun (n : ℕ) => (D n).eval) :

Hardness magnification from sublinear zero-error average-case formulas, for any subexponential threshold s and unknown fraction 1 / k n with k n ≤ 2 ^ n: if no family of ternary De Morgan formula devices of size o(2 ^ n) solves MCSP[s] on average with zero error, then some binary NP language has no polynomial-size formulas. This is a library generalization of [OliveiraSanthanam2018, Section 1.2, Theorem 5, p. 8], proved as in [OliveiraSanthanam2018, Section 3.3, Theorem 27, p. 21].

[OliveiraSanthanam2018, Section 1.2, Theorem 5, p. 8] with the average-case notion of [OliveiraSanthanam2018, Appendix A, Definition 43, p. 34]: if no family of ternary De Morgan formula devices of size o(N), N = 2 ^ n, solves MCSP[⌊2 ^ √n⌋₊] with zero error and "?" on at most a 1 / n fraction of truth tables for every large enough n, then some binary NP language has no polynomial-size formulas.

[OliveiraSanthanam2018, Section 1.2, Theorem 5, p. 8] with the devices of Section 1.2, which answer "?" on at most half of the inputs. This follows from the Definition 43 form, since a device with unknown fraction at most 1 / n has unknown fraction at most 1 / 2 once n ≥ 2.