Documentation

CslibFrontier.Computability.MCSP.AntiChecker

Anti-checkers #

An anti-checker for a Boolean function f against a family F of Boolean functions is a set S of inputs such that every member of F differs from f somewhere on S (IsAntiChecker) [LY94a], [OliveiraPichSanthanam2019, Section 4]. Against the functions with circuits of at most s gates, S is an anti-checker for f exactly when f needs more than s gates on S (isAntiChecker_computableFunctions_iff), that is, when the Succinct MCSP instance of the values of f on S with threshold s is a no-instance.

Functions without small circuits have small anti-checkers. The combinatorial core is an ordered-tuple variant of the good-string lemma of Oliveira, Pich and Santhanam [OliveiraPichSanthanam2019, Lemma 4.7]. Suppose there are at most 2 ^ m inputs, and no m members of F, repetitions allowed, have f as their pointwise strict majority. Then every tuple of m members of a subfamily G is refuted by at least half of its entries (at least m - m / 2 of them) at some input; averaging over the inputs, one input refutes a 2 ^ -m share of all tuples, and counting the tuples with at least half of their entries in the set of members refuted there shows that this set holds a sixteenth of G (exists_card_le_sixteen_mul). Removing the refuted members and repeating, 16 b inputs refute every member of a family of fewer than 2 ^ b (exists_isAntiChecker). Counting ordered tuples gives the constant share 1 / 16 where the original counts sets and gets 1 / (2 m).

The indexed versions allow distinct descriptions to evaluate to the same Boolean function: exists_card_le_sixteen_mul_eval counts descriptions, and exists_card_filter_le_eval bounds the number of descriptions still consistent after sampling. Thus the counting statements apply to circuit encodings without assuming their evaluation map is injective.

For circuits (exists_lt_complexityOn): the strict majority of m circuits with s gates each has a circuit with m s gates plus those of a circuit for strict majority, so if f needs more than that, then f needs more than s gates on some set of 16 b inputs, for any b with fewer than 2 ^ b functions computable with s gates.

This is the existence of anti-checkers: the worst-case form of the theorem of Lipton and Young, with an adaptation of the combinatorial proof of Oliveira, Pich and Santhanam. Their Anti-Checker Lemma [OliveiraPichSanthanam2019, Lemma 4.1], which computes an anti-checker from the truth table by a small circuit if NP ⊆ P/poly, is not formalized here.

Main definitions #

Main results #

References #

def Cslib.MCSP.IsAntiChecker {α : Type u_1} (F : Set (α → Bool)) (f : α → Bool) (S : Set α) :

S is an anti-checker for f against the family F: every member of F differs from f at some input in S.

Counting refuting tuples #

theorem Cslib.MCSP.exists_card_le_sixteen_mul_eval {α : Type u_1} [Fintype α] {m : ℕ} {β : Type u_2} (eval : β → α → Bool) (hm : 0 < m) (hα : Fintype.card α ≤ 2 ^ m) {G : Finset β} (hG : G.Nonempty) {f : α → Bool} (hmaj : ∀ (g : Fin m → β), (∀ (i : Fin m), g i ∈ G) → (fun (x : α) => strictMajority m fun (i : Fin m) => eval (g i) x) ≠ f) :
∃ (x : α), G.card ≤ 16 * {g ∈ G | eval g x ≠ f x}.card

The good-string lemma for an indexed family, using the tuple-counting variant of [OliveiraPichSanthanam2019, Lemma 4.7]. Suppose there are at most 2 ^ m inputs and no m members of the nonempty description family G evaluate to functions with pointwise strict majority f. Then some input refutes at least a sixteenth of the descriptions in G. The evaluation map need not be injective: distinct descriptions are counted separately.

theorem Cslib.MCSP.exists_card_le_sixteen_mul {α : Type u_1} [Fintype α] {m : ℕ} (hm : 0 < m) (hα : Fintype.card α ≤ 2 ^ m) {G : Finset (α → Bool)} (hG : G.Nonempty) {f : α → Bool} (hmaj : ∀ (g : Fin m → α → Bool), (∀ (i : Fin m), g i ∈ G) → (fun (x : α) => strictMajority m fun (i : Fin m) => g i x) ≠ f) :
∃ (x : α), G.card ≤ 16 * {g ∈ G | g x ≠ f x}.card

The good-string lemma, in the ordered-tuple variant of [OliveiraPichSanthanam2019, Lemma 4.7]. Suppose there are at most 2 ^ m inputs and no m members of the nonempty family G have f as their pointwise strict majority. Then at some input x, at least a sixteenth of the members of G differ from f.

Small anti-checkers #

theorem Cslib.MCSP.exists_card_filter_le_eval {α : Type u_1} [Fintype α] {m : ℕ} {β : Type u_2} (eval : β → α → Bool) (hm : 0 < m) (hα : Fintype.card α ≤ 2 ^ m) (F : Finset β) {f : α → Bool} (hmaj : ∀ (g : Fin m → β), (∀ (i : Fin m), g i ∈ F) → (fun (x : α) => strictMajority m fun (i : Fin m) => eval (g i) x) ≠ f) (k : ℕ) :
∃ (S : Finset α), S.card ≤ k ∧ 16 ^ k * {g ∈ F | ∀ x ∈ S, eval g x = f x}.card ≤ 15 ^ k * F.card

Greedily choosing inputs by the indexed good-string lemma, at most k inputs leave at most a (15 / 16) ^ k share of the descriptions in F agreeing with f on all of them. Distinct descriptions are counted separately even when they evaluate to the same function.

theorem Cslib.MCSP.exists_isAntiChecker_image {α : Type u_1} [Fintype α] {m : ℕ} {β : Type u_2} (eval : β → α → Bool) {b : ℕ} (hm : 0 < m) (hα : Fintype.card α ≤ 2 ^ m) (F : Finset β) {f : α → Bool} (hmaj : ∀ (g : Fin m → β), (∀ (i : Fin m), g i ∈ F) → (fun (x : α) => strictMajority m fun (i : Fin m) => eval (g i) x) ≠ f) (hb : F.card < 2 ^ b) :
∃ (S : Finset α), S.card ≤ 16 * b ∧ IsAntiChecker (eval '' ↑F) f ↑S

Small anti-checkers against an indexed family, using the tuple-counting variant of [OliveiraPichSanthanam2019, Lemma 4.7]. If no m descriptions in F have evaluations with pointwise strict majority f, and F has fewer than 2 ^ b descriptions, then at most 16 b inputs refute every evaluated function. No injectivity of eval is assumed.

theorem Cslib.MCSP.exists_isAntiChecker {α : Type u_1} [Fintype α] {m b : ℕ} (hm : 0 < m) (hα : Fintype.card α ≤ 2 ^ m) (F : Finset (α → Bool)) {f : α → Bool} (hmaj : ∀ (g : Fin m → α → Bool), (∀ (i : Fin m), g i ∈ F) → (fun (x : α) => strictMajority m fun (i : Fin m) => g i x) ≠ f) (hb : F.card < 2 ^ b) :
∃ (S : Finset α), S.card ≤ 16 * b ∧ IsAntiChecker (↑F) f ↑S

Small anti-checkers, by the ordered-tuple variant of [OliveiraPichSanthanam2019, Lemma 4.7]. Suppose there are at most 2 ^ m inputs, with m > 0, and no m members of F, repetitions allowed, have f as their pointwise strict majority. If F has fewer than 2 ^ b members, some set of at most 16 b inputs is an anti-checker for f against F.

Anti-checkers against circuits #

Against the functions computable with at most s gates, S is an anti-checker for f exactly when f needs more than s gates on S.

Against the functions computable with at most s gates, S is an anti-checker for f exactly when the Succinct MCSP instance of the values of f on S, with threshold s, is a no-instance.

The strict majority of m functions costs at most their complexities and that of strict majority.

A strict majority of m functions with circuits of at most s gates has a circuit with at most m s gates plus the complexity of strict majority, so it differs from every f that needs more gates.

Small anti-checkers against circuits, by the ordered-tuple variant of [OliveiraPichSanthanam2019, Lemma 4.7]. Let n ≤ m with m > 0. If f needs more than m s gates plus the complexity of strict majority on m bits, and fewer than 2 ^ b functions on n inputs have circuits with at most s gates, then on some set of at most 16 b inputs f needs more than s gates.

Small anti-checkers against circuits, as Succinct MCSP: under the hypotheses of exists_lt_complexityOn, the values of f on some set of at most 16 b inputs are a no-instance of Succinct MCSP at threshold s.