The setting
In algebraic circuit complexity, a basic question is how many gates are needed to compute iterated matrix multiplication using arithmetic circuits of bounded depth and syntactic homogeneity. Proposition 6.2 establishes an explicit upper bound on the gate count of a homogeneous depth five circuit computing the iterated matrix multiplication polynomial over an arbitrary field for every integer . The bound holds unconditionally over every field and counts both internal gates and leaves.
Iterated matrix multiplication
Let be a commutative semiring and let be a natural number. Let denote the polynomial ring over in commuting variables indexed by triples . For each layer index , the variable matrix layer over is the matrix with entries in whose entry is .✦
For , the iterated matrix multiplication polynomial over is the entry of the product of these independent variable matrix layers, retaining all variables as ambient variables: (1)✦ For , .
Homogeneous depth five circuits
Let be a commutative semiring and let be a natural number. A circuit leaf over of dimension is either a scalar or a variable indexed by a triple .✦ The leaf degree of a circuit leaf is for a scalar leaf and for a variable leaf.✦ The leaf polynomial in associated to a circuit leaf is the constant polynomial for a scalar leaf and the variable for a variable leaf at .✦
A homogeneous depth five circuit over in variables consists of six layers: circuit leaves; bottom sum gates, each given a finite list of -weighted leaf inputs and a declared degree in ; lower product gates, each given a finite list of bottom sum gate inputs; middle sum gates, each given a finite list of -weighted lower product gate inputs and a declared degree in ; upper product gates, each given a finite list of middle sum gate inputs; and a single output sum gate, given a finite list of -weighted upper product gate inputs and a declared output degree in .✦ These layers satisfy three syntactic homogeneity conditions: every leaf input to a bottom sum gate has leaf degree equal to that gate’s declared degree; every lower product gate input to a middle sum gate has the sum of the declared degrees of its bottom sum gate inputs equal to that middle sum gate’s declared degree; and every upper product gate input to the output gate has the sum of the declared degrees of its middle sum gate inputs equal to the output degree. Whenever a bottom sum gate, a middle sum gate, or the output gate has an empty input list, its declared degree is .
Each gate of computes a polynomial in from bottom to top: each bottom sum gate computes a bottom sum gate polynomial as the -weighted sum of its input leaf polynomials✦, each lower product gate computes a lower product gate polynomial as the product of its input bottom sum gate polynomials✦, each middle sum gate computes a middle sum gate polynomial as the -weighted sum of its input lower product gate polynomials✦, each upper product gate computes an upper product gate polynomial as the product of its input middle sum gate polynomials✦, and the output gate computes the circuit output polynomial as the -weighted sum of its input upper product gate polynomials.✦ The circuit size is the total number of leaves and gates, defined by (2): (2)✦
The upper gate count bound
For a natural number , the ceiling square root is defined by (3): (3)✦ which equals . For natural numbers and , the ceiling division is defined by (4): (4)✦ using natural-number subtraction and division (so and for ).
For a natural number , putting and , the upper gate count bound is defined by (5): (5)✦ with natural-number subtraction in the exponent .
The claim
Proposition 6.2. Let be any field and let be a natural number. There exists a homogeneous depth five circuit over in variables such that (6)✦
In the paper, the result reads: for any field and , with and , there is a syntactically homogeneous circuit over computing whose number of gates, including leaves, is at most , where stands for this intermediate bound.
What is checked
In the Lean library, Proposition 6.2 states (6) over every field and every natural number , built from the variable matrix layers, the iterated matrix multiplication polynomial (1), homogeneous depth five circuits with their layer-by-layer polynomial evaluations and circuit size (2), and the upper gate count bound (5) defined via (3) and (4). The underlying polynomial and homogeneous depth five circuit definitions are formulated over an arbitrary commutative semiring .