Documentation

CslibFrontier.Computability.Circuit.Monotone.Synthesis

Monotone synthesis #

The generic synthesis rules specialize to the monotone basis: constants, conjunction and disjunction each cost one gate, as for the De Morgan basis (Cslib.Circuits.Synthesis.const, Cslib.Circuits.Synthesis.and, Cslib.Circuits.Synthesis.or).

Main results #

theorem Cslib.Circuits.Synthesis.monotone_const {n : ℕ} {s : Set ((Fin n → Bool) → Bool)} (value : Bool) :
Synthesis Monotone.interpretation s {fun (x : Fin n → Bool) => value} 1

Monotone constants cost one gate.

theorem Cslib.Circuits.Synthesis.monotone_and {n : ℕ} {s : Set ((Fin n → Bool) → Bool)} {f g : (Fin n → Bool) → Bool} {a b : ℕ} (hf : Synthesis Monotone.interpretation s {f} a) (hg : Synthesis Monotone.interpretation s {g} b) :
Synthesis Monotone.interpretation s {fun (x : Fin n → Bool) => f x && g x} (a + b + 1)

A monotone conjunction costs one gate beyond its arguments.

theorem Cslib.Circuits.Synthesis.monotone_or {n : ℕ} {s : Set ((Fin n → Bool) → Bool)} {f g : (Fin n → Bool) → Bool} {a b : ℕ} (hf : Synthesis Monotone.interpretation s {f} a) (hg : Synthesis Monotone.interpretation s {g} b) :
Synthesis Monotone.interpretation s {fun (x : Fin n → Bool) => f x || g x} (a + b + 1)

A monotone disjunction costs one gate beyond its arguments.