Documentation

CslibFrontier.Computability.Circuit.Arithmetic.BalancedCuts

Balanced products in a syntactically multilinear circuit #

A syntactically multilinear arithmetic circuit with g gates computes, under every specialization of its inputs, a sum of at most 2 g + 1 products A * B in which A involves only the variables of a set U and B only the others, with a ≤ |U| ≤ b. The list of sets U depends only on the circuit, not on the specialization. This is the cut lemma of #8623 Anonymous, Lemma 10, in the form of a forward induction over the gates.

Scopes. The inputs are specialized to polynomials ρ i in pairwise disjoint sets V i of variables. The scope of a wire is the union of the sets V i of the inputs reaching it; the polynomial at a wire involves only its scope (Cslib.Circuits.Program.vars_trace_subset_and_mem_restrictDegree). A wire is large when its scope has more than b variables.

Exits. An exit is an argument of a large gate that is a small wire: either argument of an addition, or the argument of larger scope of a multiplication. Its cut contains the scope of the small wire: for a multiplication it is that scope, which has at least (b + 1) / 2 variables since the larger argument has at least half of the scope of the gate; for an addition it is padded to a variables inside the scope of the gate. Each gate has at most two exits.

The invariant. The polynomial at every large wire is a sum over the exits of a coefficient times the polynomial at the exit. The coefficient of an exit avoids its cut, and vanishes unless the cut lies in the scope of the wire. Additions add the coefficients of their arguments. A multiplication multiplies the coefficients of its larger argument by the smaller one, whose scope is disjoint from every cut below the larger argument by syntactic multilinearity. Exits start with coefficient 1, or the smaller argument of their multiplication.

Main results #

References #

Scopes and padded cuts #

Exits #

Exits of a program with one more gate #

Sizes of the cuts and polynomials at the exits #

The invariant #

The cut lemma #

theorem Cslib.Circuits.Circuit.exists_balanced_cuts {F : Type u} {τ : Type u_1} {K : Type u_2} [CommSemiring K] {n : ℕ} [Fintype τ] (c : Circuit (arithSignature F) n 1) (hc : c.program.IsDecomposableAt fun (x : (arithSignature F).Op) => x = ArithOp.mul) (V : Fin n → Finset τ) (hV : Pairwise fun (i j : Fin n) => Disjoint (V i) (V j)) {a b : ℕ} (hVb : ∀ (i : Fin n), (V i).card ≤ b) (hab : a ≤ b) (ha : a ≤ (b + 2) / 2) (haτ : a ≤ Fintype.card τ) :
∃ (L : ℕ) (cut : Fin L → Finset τ), L ≤ 2 * c.size + 1 ∧ (∀ (j : Fin L), a ≤ (cut j).card ∧ (cut j).card ≤ b) ∧ ∀ (φ : F → K) (ρ : Fin n → MvPolynomial τ K), (∀ (i : Fin n), (ρ i).vars ⊆ V i) → (∀ (i : Fin n), ρ i ∈ MvPolynomial.restrictDegree τ K 1) → ∃ (A : Fin L → MvPolynomial τ K) (B : Fin L → MvPolynomial τ K), (∀ (j : Fin L), (A j).vars ⊆ cut j) ∧ (∀ (j : Fin L), Disjoint (B j).vars (cut j)) ∧ c.eval (arithInterpretationWith F (⇑MvPolynomial.C ∘ φ)) ρ 0 = ∑ j : Fin L, A j * B j

Balanced products in a syntactically multilinear circuit. Let the inputs of a syntactically multilinear arithmetic circuit with s gates carry pairwise disjoint sets V i of at most b variables. There are at most 2 s + 1 sets U of variables, with a ≤ |U| ≤ b, such that under every specialization of the inputs to multilinear polynomials ρ i in the variables V i, the circuit computes a sum of products A * B over these sets, A in the variables of U and B in the others. The sets depend only on the circuit and on the sets V i. Here a ≤ b, 2 a ≤ b + 2 and the variables are at least a.