Exact gate-count padding #
Our circuit representation designates its last gate as the output. To add any
number of gates while retaining that convention, append copying OR gates, each
reading the previous output twice. Every former output has fan-out two; the new
output is terminal. This realizes the exact-size padding required by
prop:explicit-padded-succinct-deciders, without a separate output-wire index.
A copying gate preserves topological order, fan-out two, and a terminal output.
theorem
MIPRE.SAT.Circuit.wellFormed_padGates
{C : Circuit}
(hC : C.WellFormed)
(k : ℕ)
:
(C.padGates k).WellFormed
Exact gate padding preserves well-formedness.
The pair representation of a circuit has the same encoding.
Equations
Instances For
Construct exact gate padding in polynomial time in the original circuit and the number of padding gates, supplied in unary.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]