Counting inside a closed set of vertices #
The count of the compiler (Frontier.Compiler.card_edge_add_ncard_read_le) holds inside every
closed set of vertices W of the network of a program, that is, every set with no edge leaving
it. The edges at W and the inputs read in W number at most (r - 1) s more than the vertices
of W, for s inner gates of fan-in at most r. So the cycle rank of W and the number of
inputs it reads add up to at most (r - 1) s + 1.
Inside W: the edges are the feed and deliver edges of the junctions in W; the junctions in W
are those of the consumers whose owner is in W, that is, the slots of the gates in W and the
outputs in W; and the vertices of W are its signals, junctions, and outputs.
Main results #
Frontier.Compiler.readIn_network: the inputs read in a set of vertices.Frontier.Compiler.card_touching_add_ncard_readIn_le: the count inside a closed set.Frontier.Compiler.cycleRankOn_add_ncard_readIn_le: the cycle rank of a closed set.
The reachable inner gates whose vertex lies in W.
Equations
Instances For
The inputs read in a set of vertices are the reachable inputs whose vertex lies in it.
The local count inside a closed set. Only the inner gates in W are charged.
The local cycle count. A connected component pays only for its own inner gates.
The count inside a closed set. For fan-in at most r, the edges at a closed set of
vertices W and the inputs read in W number at most (r - 1) s more than the vertices of W,
where s counts the inner gates.
The cycle rank of a closed set. For fan-in at most r, the cycle rank of a closed set of
vertices W with at least |W| - 1 edges, for instance a connected component, and the number of
inputs read in W add up to at most (r - 1) s + 1, where s counts the inner gates.