From small circuits to wide graphs #
This file combines the three ingredients of the frontier method for a single input length:
- compiling a circuit into a constraint network (
Frontier.Compiler), - the frontier counting lemma for networks (
Frontier.Network.ncard_accepted_le), and - the support lemma for rectangle-free sets (
Frontier.RectangleFree.pow_ncard_compl_lt).
The reduction theorem (Frontier.exists_graph_of_decides). Let c be a circuit with s
inner gates (gates of positive arity; constants are free) of fan-in at most r ≥ 2, over any
basis on a finite alphabet U with q ≥ 2 symbols, that decides a K-rectangle-free set
S ⊆ U^n with |S| ≥ q K^2. Then there is a connected, loopless multigraph G of maximum
degree r + 1 with at most 2 r s + 3 vertices and cycle rank
β₁(G) ≤ (r - 1) s - n + log_q K + 1,
every layout of which has width at least
log_q |S| - 3 log_q K - log_q (|V(G)| + 1) - (r + 2).
For fan-in two the graph is subcubic, β₁(G) ≤ s - n + log_q K + 1, and the width is at least
log_q |S| - 3 log_q K - log_q (|V(G)| + 1) - 4.
The graph is the constraint graph of c. The cycle rank bound is the count of the compiler,
together with the support lemma, which says that c reads all but log_q K of its inputs.
The width bound is the frontier counting lemma, in which the unread inputs contribute at most
K transitions, again by the support lemma.
For a dense set, log_q |S| ≈ n; so a small circuit gives a graph whose cycle rank is about
(r - 1) s - n but whose layouts all have width about n.
A circuit with one output decides a set of inputs S, accepting the values in Acc,
when an input lies in S exactly if the output of the circuit lies in Acc.
Instances For
A circuit computing a Boolean function decides the set of inputs it maps to true.
A rectangle-free set has a positive threshold.
The constraint network of a one-output circuit.
Equations
- Complexity.Frontier.constraintNetwork I Acc c = Complexity.Frontier.Compiler.network c.program c.outputs I fun (x : Fin 1) => Acc
Instances For
Frontier demand for any network. Rectangle-freeness pays for unread inputs; no uniqueness of satisfying assignments is needed.
The support lemma, for circuits. A circuit deciding a large rectangle-free set reads all
but fewer than log_q K of its inputs.
The cycle rank of the constraint graph is at most (r - 1) s - n + log_q K + 1 for
fan-in at most r, where s counts the inner gates.
Every layout of the constraint graph is wide. For fan-in at most r ≥ 2, if all
frontiers of a layout have at most w edges, then
log_q |S| ≤ w + (r + 2) + 3 log_q K + log_q (|V| + 1).
The reduction theorem. A circuit with s inner gates of fan-in at most r ≥ 2, over
any basis on U, deciding a K-rectangle-free set S ⊆ U^n with |S| ≥ q K^2, yields a
connected, loopless multigraph of maximum degree r + 1 with at most 2 r s + 3 vertices and
cycle rank at most (r - 1) s - n + log_q K + 1, every layout of which has width at least
log_q |S| - 3 log_q K - log_q (|V| + 1) - (r + 2).