Documentation

CslibFrontier.Computability.Circuit.Boolean.OracleFormula

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]:

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 #

Main results #

References #

@[reducible, inline]

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.

@[simp]

Under the oracle O, the oracle gate on fs answers whether the word of values of fs is in O.

@[simp]

The leaves of an oracle gate are those of its arguments.

An oracle gate on formulas of at most one leaf each has at most as many leaves as arguments.

Conjunctions #

The conjunction of two oracle formulas.

The conjunction of a list of oracle formulas.

@[simp]

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.

@[reducible, inline]
abbrev Cslib.Circuits.Boolean.LocalFormulaClass (q ℓ a S : ℕ → ℕ) (Yes No : Language Bool) :

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 m leaves,
  • at most q m oracle gates (quantity), each of fan-in at most ℓ m (locality),
  • at most a m oracle gates on any path from a leaf to the root (adaptivity), answers true on the yes-instances and false on the no-instances of length m under O. This is OracleModel.LocalClass for formulaModel, 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.