Documentation

CslibFrontier.Logics.BooleanClone.Formula

Realizing generated Boolean operations by formulas and circuits #

The signature of a family G has one operation symbol for each positive-arity generator. A finite superposition derivation is equivalent to a formula over this signature. Thus Post's criterion constructs formulas and circuits for every positive number of inputs. No circuit-size bound or nullary synthesis claim is made: unary constant functions still need an input leaf. In particular this permits a NAND-only signature, whereas circuit Interpretation.IsComplete quantifies over zero inputs too and does not hold for that signature.

Main definitions #

Main results #

One symbol per positive-arity member of the generating family.

Interpret every generator symbol by its given truth table.

theorem Cslib.Logic.BooleanClone.generated_iff_exists_formula (G : (n : ℕ) → Set ((Fin n → Bool) → Bool)) {n : ℕ} (f : (Fin n → Bool) → Bool) :

Finite superposition derivations are exactly formulas over the generators, at positive input arity.

theorem Cslib.Logic.BooleanClone.exists_formula_of_postCriterion {G : (n : ℕ) → Set ((Fin n → Bool) → Bool)} (hG : PostCriterion G) {n : ℕ} (hn : 0 < n) (f : (Fin n → Bool) → Bool) :

Post's criterion supplies a formula for every positive-arity Boolean function.

theorem Cslib.Logic.BooleanClone.exists_circuit_of_postCriterion {G : (n : ℕ) → Set ((Fin n → Bool) → Bool)} (hG : PostCriterion G) {n : ℕ} (hn : 0 < n) (f : (Fin n → Bool) → Bool) :

Post's criterion supplies a circuit for every positive-arity Boolean function. Zero-input functions and quantitative circuit bounds are not claimed.

A signature containing only positive-arity gates has no circuit with zero inputs and one output: there is no wire to supply the first gate or to select as an output.

The positive-arity generator signature never satisfies the circuit notion that also requires zero-input functions, even when it is functionally complete at positive arities.