Circuit dependency graphs -- definitions #
The dependency graph of a circuit has one vertex for every primary input,
internal gate, and output gate. Each gate-input occurrence contributes an
edge from the referenced wire to the gate that reads it. Repeated occurrences
of the same wire at the same gate collapse in the graph's edge set, while
Circuit.totalFanIn continues to count them with multiplicity.
@[implicit_reducible]
instance
Complexity.Circuit.instDecidableRelFinHAddNatAdjDependencyGraph
{B : Basis}
{N M G : ℕ}
[NeZero N]
[NeZero M]
(c : Circuit B N M G)
:
Equations
- c.instDecidableRelFinHAddNatAdjDependencyGraph source target = id inferInstance