Double counting wire uses #
The number of wire-use occurrences is the total fan-in plus the output count.
theorem
Cslib.Circuits.Circuit.sum_gate_uses_eq
{σ : Signature}
{n m : ℕ}
(c : Circuit σ n m)
(used : c.NoUnusedGates)
:
Without unused gates, the first use of each gate accounts for exactly size uses.
theorem
Cslib.Circuits.Circuit.totalFanIn_le_of_fanInAtMost
{σ : Signature}
{n m : ℕ}
(c : Circuit σ n m)
{r : ℕ}
(bounded : c.FanInAtMost r)
:
Bounded fan-in bounds the total number of gate argument slots.