Circuit families #
A circuit has a fixed number of inputs, while the words of a language have every length, so a
language is decided by a family of circuits, one for each input length. The circuit on n inputs
only has to handle the words of length n, the slice L.slice n of the language, and nothing
relates the circuits for different lengths: families are a nonuniform model of computation.
The letters of a word are fed to the circuit as values of the carrier, and the single output
letter is read as a verdict by a function accept into Bool. A language is decidable within a
size bound s when some family decides it with at most s n gates on n inputs, exactly at
every length. Over a carrier Bool read by id, this is a bound on the complexity of every
slice. The classes SIZE and P/poly of the literature, over the De Morgan basis, are in
Cslib.Computability.Circuit.Boolean.Family.
A family of single-output circuits, one for each number of inputs.
Equations
- Cslib.Circuits.CircuitFamily σ = ((n : ℕ) → Cslib.Circuits.Circuit σ n 1)
Instances For
A circuit family decides L under I when, for every n, reading the output of its circuit
on n inputs through accept gives the slice of L at length n.
Instances For
A language is decidable within the size bound s by circuits over I when some family
decides it, reading outputs through accept, with at most s n gates on n inputs.
Equations
- Cslib.Circuits.DecidableInSize L I accept s = ∃ (F : Cslib.Circuits.CircuitFamily σ), F.Decides I accept L ∧ ∀ (n : ℕ), (F n).size ≤ s n
Instances For
The size bound can be weakened.
A language is decidable within s exactly when each slice is accept of some function of
extended complexity at most the bound.
Boolean carrier #
Over the carrier Bool, reading the output by id makes the circuit compute the slice itself.
Over the carrier Bool, a language is decidable within s exactly when every slice has
extended complexity at most the bound, so a slice with no circuit keeps the language out.
Over a complete basis on Bool, a language is decidable within s exactly when every slice
has complexity at most the bound.