Decomposable gates #
The gates of a chosen kind in a straight-line program are decomposable when distinct arguments of
each of them are reached by disjoint sets of inputs (Cslib.Circuits.Program.wireSupport). This
is a syntactic condition on the program. For the AND gates of a Boolean circuit it is the
decomposability of d-DNNFs and of deterministic decomposable circuits
Monet and Olteanu, Definition 3, and for the multiplications of an arithmetic
circuit it is syntactic multilinearity.
The condition is stated gate by gate on the lines of the program (Cslib.Circuits.Program.lines),
so it is decidable, and it splits along the last gate
(Cslib.Circuits.Program.isDecomposableAt_gate_iff).
When a program q reads its inputs from wires with given supports S, as it does after being
appended to another program (Cslib.Circuits.Program.append), its decomposability is measured on
those supports (Cslib.Circuits.Program.DecomposesOver): the support of a wire of q is the
union of the supports S i of the inputs i reaching it
(Cslib.Circuits.Program.wireSupport_append_appendedWire). Replacing every gate by a circuit
(Cslib.Circuits.Program.simulateProgram) keeps the input supports of the original wires
(Cslib.Circuits.Program.wireSupport_simulateRenaming) and so keeps a program decomposable when
each replacement circuit decomposes over the supports of the arguments it is given
(Cslib.Circuits.Program.isDecomposableAt_simulateProgram).
Main definitions #
Cslib.Circuits.Program.IsDecomposableAt: the gates of a given kind are decomposable.Cslib.Circuits.Program.DecomposesOver: the gates of a given kind are decomposable when the inputs have given supports.
Main results #
Cslib.Circuits.Program.isDecomposableAt_gate_iff: decomposability of a program with one more gate.Cslib.Circuits.Program.isDecomposableAt_append_iff: decomposability of a continued program.Cslib.Circuits.Program.isDecomposableAt_simulateProgram: replacing gates by decomposable circuits keeps a program decomposable.
References #
The gates of p whose operation satisfies product are decomposable: distinct arguments of
each of them are reached by disjoint sets of inputs (Program.wireSupport). For Boolean AND gates
this is the decomposability of d-DNNFs and d-Ds, and for multiplications of arithmetic circuits it
is syntactic multilinearity.
Instances For
The empty program is decomposable.
Programs reading inputs with given supports #
The gates of q whose operation satisfies product are decomposable when each input i of
q has the support S i: distinct arguments of each of them are reached by disjoint unions of
input supports. With singleton supports this is Program.IsDecomposableAt.
A program with one more gate decomposes over S when the earlier gates do and, if the new gate
is of the given kind, its distinct arguments are reached by disjoint unions of input supports.
A program with one more gate is decomposable when the earlier gates are and, if the new gate is of the given kind, its distinct arguments are reached by disjoint sets of inputs.
A wire of q, continuing p, is reached by the inputs reaching the wires of p that feed the
inputs of q reaching it.
Decomposability of a continued program. Continuing p by q gives a decomposable program
exactly when p is decomposable and q decomposes over the supports of the wires feeding it.
Simulation #
Replacing every gate by a circuit that, as a function of input supports, unions the supports of all its arguments keeps the support of every original wire.
Simulation keeps programs decomposable. Replace every gate of a program decomposable at
product by a circuit that unions the supports of all its arguments. If each replacement circuit
decomposes at product' over any supports of its arguments, pairwise disjoint when the replaced
gate is of kind product, then the simulated program is decomposable at product'.