The anti-checker generator as an oracle circuit #
generator n s ℓ R is an explicit oracle circuit that, given the truth table of a function f
on n inputs, runs R rounds of the threshold greedy (Cslib.MCSP.AntiChecker.greedy) and
appends the chosen samples. Each greedy round is one selection round
(Cslib.Circuits.Boolean.selectionRound): round r has one oracle gate for each of the 2 ^ n
inputs y, in the order of Cslib.BitString.enum. The gate for y asks about the
exact query word encQuery (Query.ofSamples n s ℓ (R - 1 - r) (P ++ [(y, f y)])), where P are
the samples chosen in the earlier rounds. Its bits are read from constants (the unary parameters,
the bits of y and the framing) and from wires (the earlier samples and the table entry of y).
The round appends the sample (y, f y) of the first accepted y, or (default, f default) when
none is accepted, as the greedy does.
So, under any oracle O, the samples in the output (samplesOf) are exactly those of the greedy
against O's answers to the greedy's queries (samplesOf_eval_generator), and each is a correct
pair (y, f y) (snd_eq_of_mem_samplesOf_eval_generator). With power ℓ = L + 200 and
R = L (L + 200) + 1 rounds, where L is the certificate length, and any oracle that agrees with
antiCheckerOracle on query words, such as the P/poly language of
exists_mem_PPoly_agrees_antiCheckerOracle, the chosen inputs are an anti-checker for the circuits
with at most s gates against every f that needs more gates than n of them and their strict
majority (isAntiChecker_samplesOf_generator). A later query about the samples of an output can
read them from its blocks (map_querySources_blockSources).
The generator has R (2 + 2 ^ n (3 n + 5)) gates, R 2 ^ n oracle gates and at most R oracle
gates on any path. Round r asks queries with r + 1 samples, so query lengths differ between
rounds. They are not padded, so every query is an encQuery word, and queryLength n s ℓ R R
bounds the fan-in of every gate. For the anti-checker parameters, the number of rounds and the
query length are polynomial in n + s.
This is the library's deterministic greedy, not the proof of
Oliveira, Pich and Santhanam, Lemma 4.1. Replacing the oracle gates by
circuits for the oracle, under NP ⊆ P/poly, is done in
CslibFrontier.Computability.MCSP.AntiChecker.Efficient, which proves that lemma.
Main definitions #
Cslib.MCSP.AntiChecker.querySources: a query word read from constants and wires.Cslib.MCSP.AntiChecker.queryLength: the length of a greedy query (Cslib.MCSP.AntiChecker.length_encQuery_ofSamples_eq_queryLength).Cslib.MCSP.AntiChecker.generator: the greedy as an oracle circuit over the truth table.Cslib.MCSP.AntiChecker.blockWire: wirebof the block of roundjin an output.Cslib.MCSP.AntiChecker.samplesOf,Cslib.MCSP.AntiChecker.blockSources: the samples in an output of the generator, and the wires that hold them.Cslib.MCSP.AntiChecker.queryOracle: a language's answers to the greedy's queries.Cslib.MCSP.AntiChecker.antiCheckerPower,Cslib.MCSP.AntiChecker.antiCheckerRounds: the powerL + 200and theL (L + 200) + 1rounds of the anti-checker generator.
Main results #
Cslib.MCSP.AntiChecker.samplesOf_eval_generator: the generator runs the greedy.Cslib.MCSP.AntiChecker.snd_eq_of_mem_samplesOf_eval_generator: every sample is(y, f y).Cslib.MCSP.AntiChecker.isAntiChecker_samplesOf_generator: the anti-checker generator.Cslib.MCSP.AntiChecker.map_fst_samplesOf: the inputs of the samples in an output.Cslib.MCSP.AntiChecker.map_querySources_blockSources,Cslib.MCSP.AntiChecker.length_querySources_blockSources: a query about the samples of an output, and its length.Cslib.MCSP.AntiChecker.queryLength_mono: query length is monotone in the power, threshold and number of samples.Cslib.MCSP.AntiChecker.size_generator,Cslib.MCSP.AntiChecker.cost_generator,Cslib.MCSP.AntiChecker.depthWith_generator_le,Cslib.MCSP.AntiChecker.fanInAtMost_generator: the measures of the generator.Cslib.MCSP.AntiChecker.antiCheckerPower_pos,Cslib.MCSP.AntiChecker.antiCheckerRounds_pos,Cslib.MCSP.AntiChecker.antiCheckerRounds_le,Cslib.MCSP.AntiChecker.queryLength_antiChecker_le: positivity and polynomial bounds on the parameters.
References #
Query words read from sources #
The sources of the query with parameters n, s, ℓ, u and samples whose inputs and labels
are read from the sources P: the parameters as constants, then the frame of each sample.
Reading a query word from sources. On the wires v, the sources of a query read the
encQuery word of the samples read from v.
The length of a query word read from sources.
The generator #
The length of a query with threshold u and t samples of inputs of n bits, for circuits
with at most s gates and power ℓ.
A greedy query with t samples has length queryLength n s ℓ u t.
The query length is monotone in the power, the threshold and the number of samples.
The generator: R rounds of the threshold greedy over the truth table of a function on
n inputs, for circuits with at most s gates and power ℓ. It keeps the table and appends one
block of n + 1 wires per round, holding an input and its label.
On an output z, the sources of the blocks read the samples of z.
Reading the samples of an output as a query. On an output z, the sources of the query
whose samples are the blocks read the encQuery word of the samples of z.
The query whose samples are the r blocks has length queryLength n s ℓ u r.
The generator runs the greedy #
The generator runs the greedy. On the truth table of f, under any oracle O, the samples
in the output of R rounds are those of R rounds of the greedy against O's answers, over the
inputs in the order of Cslib.BitString.enum.
Every sample of the generator is a correct pair (y, f y), whatever the oracle.
The anti-checker generator #
The power of the anti-checker generator for circuits on n inputs with at most s gates:
L + 200, where L is the certificate length.
The number of rounds of the anti-checker generator: L (L + 200) + 1, where L is the
certificate length.
The power of the anti-checker generator is positive.
The anti-checker generator has at least one round.
The anti-checker generator. Let O agree with the anti-checker oracle on query words, and
let f need more gates than n circuits with at most s gates and a circuit for their strict
majority. On the truth table of f, every circuit with at most s gates differs from f on one of
the inputs that the generator with the anti-checker parameters chooses.
Measures #
The generator has R 2 ^ n oracle gates.
The generator has at most R oracle gates on any path.
Every gate of the generator reads at most queryLength n s ℓ R R wires.
The anti-checker generator has at most 610 (n + s + 1) ^ 4 rounds.
The queries of the anti-checker generator have length at most 5000 (n + s + 1) ^ 5.