Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Homogenization

Homogeneous components of arithmetic circuits #

An arithmetic circuit with s gates gives, for every d, a circuit with at most 1 + 3 (d + 1)² s gates computing the homogeneous components of degree d of its outputs (Cslib.Circuits.Circuit.exists_homogeneousComponent). This adapts the homogeneous-component technique of Strassen, Section 1, p. 184, which truncates to homogeneous components while eliminating divisions over an infinite field, with linear operations free. Here the circuit is division-free over a commutative semiring, and constants, additions and multiplications all count as gates, which gives the exact bound above. Each wire is replaced by d + 1 wires carrying its components of degrees 0, …, d. An input x_i has the components 0, x_i, 0, …; a constant c has c, 0, …; the components of a sum are the sums of the components; and the component of degree e of a product is ∑_{a ≤ e} u_a v_{e - a}, which costs at most 2 e + 3 gates. One extra gate holds 0.

For ComputedWithin, which counts the inputs as well, the component of degree d of a polynomial computed within s nodes is computed within 1 + 3 (d + 1)² s nodes (Cslib.Circuits.Arithmetic.ComputedWithin.homogeneousComponent).

Main results #

References #

Small circuits #

The block replacing one gate #

Homogenization #

Homogenization, adapting Strassen, Section 1 to division-free circuits over a commutative semiring in which constants, additions and multiplications all count. An arithmetic circuit with s gates gives a circuit with at most 1 + 3 (d + 1)² s gates computing the homogeneous components of degree d of its outputs.

Homogenization for ComputedWithin. The component of degree d of a polynomial computed within s nodes is computed within 1 + 3 (d + 1)² s nodes.