Documentation

CslibFrontier.Computability.Circuit.Boolean.Oracle.LocalClass

Local classes of oracle devices #

Chen, Hirahara, Oliveira, Pich, Rajgopal and Santhanam measure the oracle gates of an oracle circuit in three ways: their quantity (the number of oracle gates), their locality (the largest fan-in of an oracle gate) and their adaptivity (the largest number of oracle gates on a path from an input to the output). A language is in their class [q, ℓ, a]–C when one oracle language O and, for each input length n, an oracle circuit from C with these measures bounded by q n, ℓ n and a n compute it [ChenHiraharaOliveiraPichRajgopalSanthanam2020, Section 2.5, Definition 11, p. 13; repeated as Definition 62, Appendix A.2, p. 51].

The definition is parametric in the class C of devices. An OracleModel packages a family of devices with their evaluation under an oracle, a size and the three oracle measures, and OracleModel.LocalClass is Definition 11 for promise problems over it: the class of the source is [q, ℓ, a]–C[S] with C[S] the devices of the model of size at most S. A language L is the promise problem with no-instances its complement. The models in this library are oracle formulas (Cslib.Circuits.Boolean.formulaModel, with LocalFormulaClass) and oracle circuits (Cslib.Circuits.Boolean.circuitModel, with LocalCircuitClass).

Main definitions #

Main results #

References #

A model of oracle devices for Definition 11 of [CHO+20]: devices on m inputs, their output under an oracle language, their size, and the quantity, locality and adaptivity of their oracle gates. Locality is a predicate, "every oracle gate has fan-in at most ℓ", monotone in ℓ.

  • Device : ℕ → Type

    The devices on m inputs.

  • eval {m : ℕ} : self.Device m → Language Bool → (Fin m → Bool) → Bool

    The output of a device on an input when its oracle gates answer membership in O.

  • size {m : ℕ} : self.Device m → ℕ

    The size of a device.

  • queryCount {m : ℕ} : self.Device m → ℕ

    The quantity of the oracle gates: their number.

  • QueryArityAtMost {m : ℕ} : self.Device m → ℕ → Prop

    The locality of the oracle gates: every oracle gate has fan-in at most ℓ.

  • adaptivity {m : ℕ} : self.Device m → ℕ

    The adaptivity of the oracle gates: the largest number of them on a path to the output.

  • queryArityAtMost_mono {m : ℕ} {E : self.Device m} {ℓ ℓ' : ℕ} : self.QueryArityAtMost E ℓ → ℓ ≤ ℓ' → self.QueryArityAtMost E ℓ'

    A locality bound holds for every larger bound.

Local classes [ChenHiraharaOliveiraPichRajgopalSanthanam2020, Section 2.5, Definition 11, p. 13], for promise problems: the promise problem with yes-instances Yes and no-instances No is in [q, ℓ, a]–C[S], for the devices C of the model M, when there is one oracle language O such that, for every input length m, some device on m inputs with

  • size at most S m,
  • at most q m oracle gates (quantity), each of fan-in at most ℓ m (locality),
  • at most a m oracle gates on any path to the output (adaptivity), answers true on the yes-instances and false on the no-instances of length m under O.
theorem Cslib.Circuits.Boolean.OracleModel.LocalClass.mono {M : OracleModel} {q ℓ a S q' ℓ' a' S' : ℕ → ℕ} {Yes No : Language Bool} (h : M.LocalClass q ℓ a S Yes No) (hq : q ≤ q') (hℓ : ℓ ≤ ℓ') (ha : a ≤ a') (hS : S ≤ S') :
M.LocalClass q' ℓ' a' S' Yes No

The local classes grow with their parameters.

theorem Cslib.Circuits.Boolean.OracleModel.LocalClass.anti {M : OracleModel} {q ℓ a S : ℕ → ℕ} {Yes No Yes' No' : Language Bool} (h : M.LocalClass q ℓ a S Yes No) (hY : Yes' ≤ Yes) (hN : No' ≤ No) :
M.LocalClass q ℓ a S Yes' No'

Shrinking the yes- and no-instances keeps a promise problem in a local class.

theorem Cslib.Circuits.Boolean.OracleModel.LocalClass.of_two_pow {M : OracleModel} {q ℓ a S : ℕ → ℕ} {Yes No : Language Bool} (O : Language Bool) (hYes : ∀ w ∈ Yes, ∃ (n : ℕ), w.length = 2 ^ n) (hNo : ∀ w ∈ No, ∃ (n : ℕ), w.length = 2 ^ n) (hdef : ∀ (m : ℕ), (¬∃ (n : ℕ), m = 2 ^ n) → ∃ (E : M.Device m), M.size E ≤ S m ∧ M.queryCount E ≤ q m ∧ M.QueryArityAtMost E (ℓ m) ∧ M.adaptivity E ≤ a m) (hpow : ∀ (n : ℕ), ∃ (E : M.Device (2 ^ n)), M.size E ≤ S (2 ^ n) ∧ M.queryCount E ≤ q (2 ^ n) ∧ M.QueryArityAtMost E (ℓ (2 ^ n)) ∧ M.adaptivity E ≤ a (2 ^ n) ∧ (∀ (x : Fin (2 ^ n) → Bool), List.ofFn x ∈ Yes → M.eval E O x = true) ∧ ∀ (x : Fin (2 ^ n) → Bool), List.ofFn x ∈ No → M.eval E O x = false) :
M.LocalClass q ℓ a S Yes No

Instances of power-of-two length. If every yes- and no-instance has length a power of two, such as the truth tables of a property, a promise problem is in a local class once some oracle O and, at each length 2 ^ n, a device within the bounds at 2 ^ n separates the instances of that length, provided every other length has some device within the bounds; there is nothing to separate at those lengths.