Oracle formulas and local formula classes #
An oracle formula is a formula over the De Morgan basis with oracle gates
(Cslib.Circuits.Boolean.oracleSignature). Under the oracle O, a gate with q arguments answers
whether the word formed by its arguments is in O (oracleInterpretation O).
Chen, Hirahara, Oliveira, Pich, Rajgopal and Santhanam measure the oracle gates of such a device in three ways [ChenHiraharaOliveiraPichRajgopalSanthanam2020, Section 2.5, Definition 11, p. 13]:
- their quantity, the number of oracle gates (
OracleFormula.queryCount); - their locality, the largest fan-in of an oracle gate (
OracleFormula.maxQueryArity); - their adaptivity, the largest number of oracle gates on a path from an input to the output
(
OracleFormula.adaptivity).LocalFormulaClass q ℓ a S Yes Nois their class[q, ℓ, a]–Formula[S]for the promise problem with yes-instancesYesand no-instancesNo. A single oracle language serves every input length, and at each lengthmsome formula of at mostS mleaves, with at mostq moracle gates of fan-in at mostℓ mand at mosta moracle gates on any path, accepts the yes-instances and rejects the no-instances of lengthm.
OracleFormula.query fs is the oracle gate whose arguments are the De Morgan formulas fs, and
OracleFormula.all is the conjunction of a list of oracle formulas. These are the shapes that
hardness magnification produces: oracle gates applied to cheap projections of the input, combined
by a formula.
Main definitions #
Cslib.Circuits.Boolean.OracleFormula: formulas with oracle gates.Cslib.Circuits.Boolean.OracleFormula.queryCount,OracleFormula.maxQueryArity,OracleFormula.adaptivity: the quantity, locality and adaptivity of the oracle gates.Cslib.Circuits.Boolean.OracleFormula.query,OracleFormula.and,OracleFormula.all: an oracle gate on De Morgan formulas, and conjunctions.Cslib.Circuits.Boolean.formulaModel: oracle formulas as anOracleModel.Cslib.Circuits.Boolean.LocalFormulaClass: the local formula classes[q, ℓ, a]–Formula[S],OracleModel.LocalClassforformulaModel.
Main results #
Cslib.Circuits.Boolean.OracleFormula.queryCount_mapOp_toOracleand its companions: a De Morgan formula has no oracle gates.Cslib.Circuits.Boolean.OracleFormula.eval_query_eq_true_iff,OracleFormula.eval_all: the semantics of oracle gates on De Morgan formulas and of conjunctions, with the measures of both.
References #
Formulas over the De Morgan basis with oracle gates.
The quantity of the oracle gates: their number.
The adaptivity of the oracle gates: the largest number of oracle gates on a path from a leaf to the root.
The locality of the oracle gates: the largest fan-in of an oracle gate, or zero when there is none.
De Morgan formulas have no oracle gates #
Oracle gates on De Morgan formulas #
The oracle gate whose arguments are the De Morgan formulas fs, in order.
Under the oracle O, the oracle gate on fs answers whether the word of values of fs is in
O.
The leaves of an oracle gate are those of its arguments.
Conjunctions #
The conjunction of two oracle formulas.
The conjunction of a list of oracle formulas.
The conjunction of Fs is true exactly when every formula of Fs is.
A conjunction adds no oracle gate to any path.
A conjunction adds no oracle gate.
Oracle formulas as a model of oracle devices: size is leaf size, and the quantity, locality
and adaptivity are OracleFormula.queryCount, OracleFormula.maxQueryArity and
OracleFormula.adaptivity.
Local formula classes [ChenHiraharaOliveiraPichRajgopalSanthanam2020, Section 2.5,
Definition 11, p. 13], for formulas and promise problems: the promise problem with yes-instances
Yes and no-instances No is in [q, ℓ, a]–Formula[S] when there is one oracle language O such
that, for every input length m, some oracle formula on m inputs with
- at most
S mleaves, - at most
q moracle gates (quantity), each of fan-in at mostℓ m(locality), - at most
a moracle gates on any path from a leaf to the root (adaptivity), answerstrueon the yes-instances andfalseon the no-instances of lengthmunderO. This isOracleModel.LocalClassforformulaModel, whose lemmas (mono,anti,of_two_pow) apply.
Only input leaves count towards S m: constant leaves are free here, while the source's
Formula[s] counts constant leaves too [ChenHiraharaOliveiraPichRajgopalSanthanam2020, Section 2.1,
p. 12], so for a fixed S this class can be larger than the source's. Paths ending at constants
count towards the adaptivity, so the adaptivity here is at least the source's, which counts only
paths from inputs.