Circuit topologies #
The topology of a circuit records, for each gate, its arity and the wires supplying its arguments, together with the output wires, and forgets the gate operations. It is the part of a circuit that a garbled circuit is allowed to reveal (topology side information in the sense of [BHR12b]).
A topology is ordered when every gate reads only wires of smaller wire number than its own
(Circuit.Topology.IsOrdered); the topology of every circuit is ordered
(Circuit.isOrdered_topology).
Main definitions #
Cslib.Circuits.Circuit.Topology: arities, argument wires and output wires.Cslib.Circuits.Circuit.topology: the topology of a circuit.Cslib.Circuits.Circuit.Topology.IsOrdered: gates read only lower-numbered wires.
Main results #
Cslib.Circuits.Circuit.isOrdered_topology: circuit topologies are ordered.
References #
The wiring of a circuit with n inputs, m outputs and s gates, without the gate
operations: each gate's arity and argument wires, and the output wires.
The arity of each gate.
The wire supplying each argument of each gate.
The wire carrying each output.
Every gate reads only wires whose number is smaller than its own.