Documentation

CslibFrontier.Computability.Circuit.Monotone.Encoding

Encodings of monotone circuits #

A monotone circuit is written down as the same circuit read in the De Morgan basis (Cslib.Circuits.Monotone.toDeMorgan), the convention of the monotone circuit value problem (Cslib.Complexity.encMonotoneCircuitValue). An operation is encoded by the number of its De Morgan image in unary (Cslib.Circuits.Monotone.encOp); gates, codes and circuits are then encoded as over any signature (Cslib.Circuits.Circuit.encGate, Cslib.Circuits.Circuit.encCode, Cslib.Circuits.Circuit.encCircuit). So the encoding of the code of a monotone circuit is the encoding of the code of its De Morgan reading (Cslib.Circuits.Monotone.encCode_apply, Cslib.Circuits.Monotone.encCircuit_apply).

Main definitions #

Main results #

Operations of the monotone basis, encoded as their images in the De Morgan basis (Cslib.Circuits.Boolean.encOp).

@[reducible, inline]

A gate of the monotone basis as data: its operation by encOp, then the framed binary numbers of the wires it reads.

@[reducible, inline]

The code of a monotone circuit: its framed gates in program order, then its framed output wires, all wire numbers in binary.

@[reducible, inline]

Binary encoding of monotone circuits with m outputs and any number n of inputs: n in unary, then the code of the circuit (encCode).

The code of a monotone circuit is encoded as the De Morgan code with the same wires and the De Morgan images of its operations.

A monotone circuit is encoded as its De Morgan reading.