Restricting SYM ∘ AND circuits #
A SYM ∘ AND circuit on slots T is restricted along a partial map ρ : T → Option ι by reading
slot t from input i when ρ t = some i and fixing it to false when ρ t = none
(Circuits.Boolean.SymAnd.restrict). The AND gates reading a fixed slot are never satisfied, so
they are dropped; the others read the inputs their slots are sent to. The restricted circuit
computes the original one on the valuation t ↦ (ρ t).elim false x
(SymAnd.eval_restrict), and has no more AND gates (SymAnd.size_restrict_le) and no larger
fan-in (SymAnd.fanIn_restrict_le).
This turns a SYM ∘ AND circuit reading all the slots of a modular tower
(SymAnd.exists_eval_eq_eval_run) into a circuit over the inputs alone, the other slots starting
at false.
Main definitions #
Cslib.Circuits.Boolean.SymAnd.restrict: restriction along a partial map of slots to inputs.
Main results #
Cslib.Circuits.Boolean.SymAnd.eval_restrict: what the restriction computes.Cslib.Circuits.Boolean.SymAnd.size_restrict_le,SymAnd.fanIn_restrict_le: restriction does not increase size or fan-in.
The restriction of C along ρ: slot t reads input i when ρ t = some i and is fixed to
false when ρ t = none. AND gates reading a fixed slot are dropped.
What the restriction computes: C on the valuation reading slot t from x through ρ,
and false where ρ is undefined.