Documentation

CslibFrontier.Computability.Circuit.Boolean.DeterministicDecomposableArithmetic

Arithmetizing deterministic decomposable circuits #

Over a commutative ring, replace every AND of a De Morgan circuit by a multiplication, every OR by an addition and every NOT by x ↦ 1 - x. On the points 0 and 1 of the ring these agree with the Boolean operations, except that the OR of two ones is 2. In a deterministic decomposable circuit (d-D) no OR sees two ones, so the arithmetic values at the Boolean points are the Boolean values Monet and Olteanu, Section 2.

Each operation is computed by a small arithmetic circuit: a multiplication, an addition, a constant, or 1 + (-1) * x with four gates. Replacing the gates of a De Morgan circuit by these circuits (Cslib.Circuits.Circuit.arithmetize) gives an arithmetic circuit with at most four times as many gates (Cslib.Circuits.Circuit.size_arithmetize_le). Decomposable ANDs become multiplications of polynomials in disjoint sets of inputs, so the arithmetic circuit of a d-D is syntactically multilinear (Cslib.Circuits.Circuit.IsDeterministicDecomposable.isDecomposableAt_arithmetize). It computes the multilinear extension of the Boolean function of the d-D (Cslib.Circuits.Circuit.IsDeterministicDecomposable.eval_arithmetize_X). So syntactically multilinear circuits simulate d-Ds with four gates per gate, and lower bounds for syntactically multilinear circuits transfer to d-Ds.

Main definitions #

Main results #

References #

The arithmetic circuit of a De Morgan circuit: every gate replaced by its arithmetic circuit Boolean.arithImpl.

The arithmetic circuit has at most four gates for each gate.

The arithmetic circuit of a d-D is syntactically multilinear: its multiplications come from decomposable ANDs and from multiplications by the constant -1.

A d-D computes the multilinear extension of its function. The polynomial computed by its arithmetic circuit at each output is the multilinear extension of the Boolean function computed at that output, with values 0 and 1 in R.

The arithmetic circuit of a d-D computes the multilinear representative of its function.

Syntactically multilinear circuits simulate d-Ds. The function of a d-D with s gates has a syntactically multilinear circuit with at most 4 s gates computing its multilinear representative, over every commutative ring.

Syntactically multilinear circuits simulate d-DNNFs. Compiling a d-DNNF C : NNF (Fin n) N to a d-D via NNF.toCircuit and arithmetizing yields a syntactically multilinear arithmetic circuit over every commutative ring R, with at most 4 * C.size gates, computing the multilinear representative of C.toFun.