Documentation

Cslib.Computability.Circuit.Boolean.Counting

Counting De Morgan circuits #

This file specializes the generic circuit counting bound to the five De Morgan operations, all of arity at most two. The resulting factorial correction is used in Shannon's lower bound.

@[reducible, inline]

Boolean functions on n inputs computable with at most s De Morgan gates.

Equations
Instances For
    theorem Cslib.Circuits.Boolean.mem_computableFunctions {n s : ℕ} {f : BooleanFunction n} :
    f ∈ computableFunctions n s ↔ ∃ (c : Circuit signature n 1), (c.Computes interpretation fun (x : Fin n → Bool) (x_1 : Fin 1) => f x) ∧ c.size ≤ s

    The De Morgan counting bound, accounting for gate relabelings.