Normalizing and bounding Boolean circuits #
Adds the connectives of Boolean formulas to the simp set circuit_simps and to the rules of
circuit_bound.
@[simp]
The weighted cost of const c is cost (.const c).
@[simp]
theorem Cslib.Circuits.Formula.cost_not {n : ℕ} {F : Formula Boolean.signature n} (cost : Boolean.signature.Op → ℕ) :
The weighted cost of F.not adds cost .not to the weighted cost of F.
@[simp]
theorem Cslib.Circuits.Formula.cost_and {n : ℕ} {F G : Formula Boolean.signature n} (cost : Boolean.signature.Op → ℕ) :
The weighted cost of F.and G adds cost .and to the weighted costs of F and G.
@[simp]
theorem Cslib.Circuits.Formula.cost_or {n : ℕ} {F G : Formula Boolean.signature n} (cost : Boolean.signature.Op → ℕ) :
The weighted cost of F.or G adds cost .or to the weighted costs of F and G.