Attaching a gadget to a matrix #
A gadget attached to a matrix M₀ on V is a matrix D on its own
nodes X, with in-edges from rows of V to columns of X and out-edges
from rows of X to columns of V (DescriptiveComplexity.attach). The
permanent of the result expands, by the Laplace expansion along the rows of
the gadget, into a sum over the patterns – which in-ports are entered,
which out-ports are left – of the permanent of the corresponding minor of
the gadget times the permanent of the corresponding minor of M₀.
This file states that expansion for the gadget shape of Valiant's XOR
gadget: two in-ports xin, xin' reached from two base rows u, u', and
two out-ports o, o' leaving to two base columns v, v'
(DescriptiveComplexity.pdel_attachXor). It is stated on minors, so that it
can be applied to one gadget at a time when several are attached.
A gadget attached to a matrix: the base matrix M₀ on V, the
gadget D on X, the in-edges ins from V to X and the out-edges
outs from X to V.
Equations
- DescriptiveComplexity.attach M₀ D ins outs (Sum.inl a) (Sum.inl b) = M₀ a b
- DescriptiveComplexity.attach M₀ D ins outs (Sum.inl a) (Sum.inr x_2) = ins a x_2
- DescriptiveComplexity.attach M₀ D ins outs (Sum.inr x_2) (Sum.inl b) = outs x_2 b
- DescriptiveComplexity.attach M₀ D ins outs (Sum.inr x_2) (Sum.inr y) = D x_2 y
Instances For
Dependency graph
The indicator of one in-edge, from u to x.
Instances For
Dependency graph
The indicator of one out-edge, from x to v.
Instances For
Dependency graph
The rows of the gadget are deleted together with those in A.
Equations
Instances For
Dependency graph
Dependency graph
Local blocks and the base part of an expansion #
The gadget rows outside O, as a set of rows of the attached matrix.
Equations
- DescriptiveComplexity.gadgetRows O = Finset.map Function.Embedding.inr {x : X | x ∉ O}
Instances For
Dependency graph
Dependency graph
Dependency graph
Dependency graph
Dependency graph
The expansion of Valiant's gadget shape #
The XOR gadget shape: two in-edges, from u to xin and from u' to
xin', and two out-edges, from o to v and from o' to v'.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Dependency graph
Dependency graph
Dependency graph
Dependency graph
Dependency graph
Dependency graph
Dependency graph
Dependency graph
Dependency graph
Dependency graph
Dependency graph
Dependency graph
Dependency graph
Dependency graph
Dependency graph
The expansion of the XOR gadget shape. The permanent of the matrix with
the gadget is the sum, over the patterns of use of its ports, of the
permanent of the gadget minor of the pattern times the permanent of the base
minor with the rows entering and the columns left: no port used; the first
in-port entered from u and the first out-port left to v, or the second
out-port left to v'; the second in-port entered from u' likewise; both
in-ports entered and both out-ports left.