Documentation

CslibFrontier.Computability.MCSP.AntiChecker.Oracle

The anti-checker oracle language #

The greedy anti-checker (Cslib.MCSP.AntiChecker.greedy) asks the hash threshold oracle (Cslib.MCSP.AntiChecker.hashOracle) about the circuits on n inputs with at most s gates, described by their valid certificates (Cslib.MCSP.validCertificates). This module fixes one language that answers all of these questions, for every n, s, power ℓ and threshold u.

A query (Cslib.MCSP.AntiChecker.Query) lists n, s, ℓ and u, followed by labelled samples (x, b), and is encoded with the four parameters in unary and each sample as its framed input bits and its label (Cslib.MCSP.AntiChecker.encQuery). The yes-queries (Cslib.MCSP.AntiChecker.smallSet) are those the hash oracle answers yes to: the ℓ-th Cartesian power of the valid certificates consistent with the samples is not covered by u + 1 affine hash functions to u bits. The language Cslib.MCSP.AntiChecker.antiCheckerOracle consists of the encodings of the yes-queries. On the queries of the greedy it is the hash oracle (Cslib.MCSP.AntiChecker.encQuery_ofSamples_mem_antiCheckerOracle_iff), so an oracle agreeing with it on those queries can drive the greedy (Cslib.MCSP.AntiChecker.isThresholdOracle_of_eq_true_iff).

At power 1 and threshold 0 a query is a no-query exactly when some function computable with at most s gates agrees with every sample (Cslib.MCSP.AntiChecker.encQuery_ofSamples_one_zero_notMem_antiCheckerOracle_iff). So the same fixed language also decides the complement of the list form of Succinct MCSP (Cslib.MCSP.AntiChecker.encQuery_ofSamples_one_zero_notMem_iff_mem_succinctMCSP) that Oliveira, Pich and Santhanam, proof of Theorem 1.4 query after building an anti-checker. One fixed oracle for the generator and the final query is what an oracle circuit in [Chen, Hirahara, Oliveira, Pich, Rajgopal and Santhanam, Definition 11] [CHO+20] allows.

The parameters of a query are only n, s, ℓ and u, in unary, and its length is linear in them and in the total length of the samples (Cslib.MCSP.AntiChecker.length_encQuery). For the t samples of a greedy run on n inputs, it is 2 (n + s + ℓ + u) + 4 + t (4 n + 5) (Cslib.MCSP.AntiChecker.length_encQuery_ofSamples). Membership of the language in P/poly under NP ⊆ P/poly is in CslibFrontier.Computability.MCSP.AntiChecker.Oracle.PolyTime.

This is the oracle of the library's deterministic greedy, not the approximate-counting oracle of Oliveira, Pich and Santhanam, Lemma 4.1.

Main definitions #

Main results #

References #

A query to the anti-checker oracle: is the power-th Cartesian power of the descriptions of circuits on arity inputs with at most size gates that agree with samples small at threshold?

  • arity : ℕ

    The number n of inputs of the circuits.

  • size : ℕ

    The number s of gates allowed.

  • power : ℕ

    The power ℓ of the set of consistent descriptions.

  • threshold : ℕ

    The threshold u of the hash oracle.

  • samples : List (List Bool × Bool)

    The labelled samples: the bits of an input and the value required there.

theorem Cslib.MCSP.AntiChecker.encQuery_threshold_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Query} :
@[reducible, inline]

The tuple of the fields of encQuery.

theorem Cslib.MCSP.AntiChecker.encQuery_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 T0 S0 x1 T1 S1 x2 T2 S2 x3 T3 S3 : γ → ℕ} {x4 : γ → List (List Bool × Bool)} {T4 S4 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Turing.MultiTapeTM.encUnary T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encUnary T1 S1) (h2 : Turing.MultiTapeTM.ComputableInO x2 encIn Turing.MultiTapeTM.encUnary T2 S2) (h3 : Turing.MultiTapeTM.ComputableInO x3 encIn Turing.MultiTapeTM.encUnary T3 S3) (h4 : Turing.MultiTapeTM.ComputableInO x4 encIn (Turing.MultiTapeTM.encList (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBool)) T4 S4) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { arity := x0 x, size := x1 x, power := x2 x, threshold := x3 x, samples := x4 x }) encIn encQuery (fun (x : γ) => T0 x + (T1 x + (T2 x + (T3 x + T4 x)))) fun (x : γ) => S0 x + (S1 x + (S2 x + (S3 x + S4 x)))

Unary parameters, then the samples: a query is encoded as its arity, gate bound, power and threshold in unary, followed by the framed list of its samples, each the framed bits of its input followed by its label.

theorem Cslib.MCSP.AntiChecker.encQuery_arity_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Query} :
theorem Cslib.MCSP.AntiChecker.encQuery_size_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Query} :
theorem Cslib.MCSP.AntiChecker.encQuery_mk_deg :
Turing.MultiTapeTM.ComputableInDegree (fun (p : ℕ × ℕ × ℕ × ℕ × List (List Bool × Bool)) => { arity := p.1, size := p.2.1, power := p.2.2.1, threshold := p.2.2.2.1, samples := p.2.2.2.2 }) encQueryFields encQuery 1 1
theorem Cslib.MCSP.AntiChecker.encQuery_power_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Query} :

The query with unary parameters n, s, ℓ, u and the labelled samples P of a function on n inputs.

The length of a query: twice its unary parameters, plus four bits of framing, plus 4 |x| + 5 bits for each sample (x, b).

theorem Cslib.MCSP.AntiChecker.length_encQuery_ofSamples (n s ℓ u : ℕ) (P : List (BitString n × Bool)) :
(encQuery (Query.ofSamples n s ℓ u P)).length = 2 * (n + s + ℓ + u) + 4 + P.length * (4 * n + 5)

The length of a greedy query: 2 (n + s + ℓ + u) + 4 + t (4 n + 5) for t samples of a function on n inputs. With s in unary this is polynomial in s, ℓ, u and t.

The queries the hash oracle answers yes to: the power-th Cartesian power of the valid certificates for arity inputs and size gates that agree with the samples is not large at threshold.

The anti-checker oracle: the encodings of the queries the hash oracle answers yes to.

The anti-checker oracle decides the yes-queries.

On the greedy's queries the anti-checker oracle is the hash oracle for the valid certificates.

theorem Cslib.MCSP.AntiChecker.isThresholdOracle_of_eq_true_iff {n s ℓ : ℕ} (hℓ : 0 < ℓ) {O : List (BitString n × Bool) → ℕ → Bool} (hO : ∀ (P : List (BitString n × Bool)) (u : ℕ), O P u = true ↔ encQuery (Query.ofSamples n s ℓ u P) ∈ antiCheckerOracle) :

An oracle agreeing with the anti-checker oracle on the greedy's queries is a threshold oracle for the valid certificates, at every power ℓ > 0.

At power 1 and threshold 0, a no-query is a yes-instance of Succinct MCSP: the query of samples P is not in the anti-checker oracle exactly when some function computable with at most s gates agrees with every sample.

At power 1 and threshold 0, the anti-checker oracle decides the complement of Succinct MCSP on the samples P, read as a set.