The semi-circuit of a circuit #
A circuit over the full binary basis with n inputs and one output is a fair semi-circuit without
equations (SemiCircuit.ofCircuit): input i is the parameter i, gate j is the gate n + j,
and a constant line becomes a gate with a constant operation. It is well formed
(SemiCircuit.wellFormed_ofCircuit), and the output of a consistent assignment is the output of
the circuit on the values of the parameters (SemiCircuit.out_eval_ofCircuit).
Main definitions #
Cslib.Circuits.Boolean.SemiCircuit.ofCircuit: the semi-circuit of a circuit.
Main results #
Cslib.Circuits.Boolean.SemiCircuit.wellFormed_ofCircuit,Cslib.Circuits.Boolean.SemiCircuit.out_eval_ofCircuit.
References #
The name of a wire of a circuit with n inputs: input i is i and gate j is n + j.
Instances For
The gate of a line of a circuit over the full binary basis; a constant becomes a gate with a constant operation.
Instances For
The semi-circuit of a circuit over the full binary basis with one output: its inputs are the parameters, its lines the gates, and it has no auxiliary variables and no equations.
Instances For
The semi-circuit of a circuit is well formed.
On a consistent assignment, the output of the semi-circuit of a circuit is the output of the circuit on the values of the parameters.