Documentation

Complexity.Computability.Circuit.Boolean.Unbounded.Restriction

Restrictions in the unbounded fan-in basis #

A restriction (partial assignment) ρ of the inputs is computed in the unbounded fan-in basis by the De Morgan substitution circuit of ρ.toSubstitution (Cslib.Circuits.Boolean.substituteCircuit, Cslib.BitString.PartialAssignment.substitute_toSubstitution), its two constants becoming the conjunction and the disjunction of nothing (Cslib.Circuits.Boolean.Unbounded.deMorganToUnbounded). Composing a circuit C with it computes the restriction C ∘ ρ.fill.

Main definitions #

Main results #

The circuit that outputs its inputs restricted by ρ: the bits fixed by ρ replaced by their values (eval_restrictCircuit). It is the De Morgan substitution circuit of ρ.toSubstitution, in the unbounded fan-in basis.

Instances For
    @[simp]

    restrictCircuit ρ has two gates, one for each constant.