Total decoders for De Morgan circuit codes #
The gates of a De Morgan circuit and its output wire are written as the word gatesOutputWord C,
with operations written by encOp. decOp and decGatesOutput are total polynomial-time
decoders for these encodings: they read every word, and they invert the encodings on their
images.
Main definitions #
Cslib.Circuits.Boolean.decOp: the decoder ofencOp.Cslib.Circuits.Boolean.decGatesOutput: the decoder of a gate list and an output wire.Cslib.Circuits.Boolean.gatesOutputWord: the gates and the output wire of a single-output circuit, encoded.
Main results #
Cslib.Circuits.Boolean.length_gatesOutputWord_le: the word of a circuit of sizeTonninputs hasO((T + 1) log (n + T + 2))bits.
Total polynomial-time decoder for Boolean.encOp.
Total polynomial-time decoder for (gates, outputWire) pairs.
The gates and the output wire of a single-output circuit, encoded: the word that
decGatesOutput reads.
@[simp]
decGatesOutput reads the gates and the output wire back from gatesOutputWord.
Length of a circuit word: with L = log₂ (n + C.size + 1) + 1 bits per wire number, each
gate takes at most 23 + 8 L bits and the output wire L bits.