Restricting one-output De Morgan circuits #
The source program is restricted directly, and its designated output wire is
then materialized in the residual program when necessary. Deleted charged
gates are indexed by Fin source.size, the original source-gate type. The exact cost
identity is exposed as a standard Circuit.Reduction certificate.
Restriction of a one-output De Morgan circuit, with the exact set of deleted charged source gates.
Residual circuit on the remaining inputs.
Deleted charged gates in the original source program.
- eval_eq (input : Fin n → Bool) : self.result.eval interpretation input = source.eval interpretation ((InputSubstitution.fix selected fixedValue).apply input)
Pointwise semantics under the chosen input restriction.
The deletion set accounts exactly for the charged-cost decrease.
Instances For
Number of internal gates in the residual circuit.
Instances For
Materialize the residual value of the designated source output, using at most one free gate for a constant or a negation.
Equations
- One or more equations did not get rendered due to their size.
Instances For
View an exact circuit restriction as a generic certified reduction.
Equations
Instances For
Partial-evaluate a one-output circuit after fixing one input.
Equations
- Algebraic.DeMorgan.restrictCircuit source selected fixedValue = Algebraic.DeMorgan.CircuitRestriction.ofProgram (Algebraic.DeMorgan.restrictProgram selected fixedValue source.program)
Instances For
Circuit restriction exposes exactly the source program's deletion set.