Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Flat.BalancedProducts

Balanced products #

Let the variables of a polynomial be divided into k ≥ 2 blocks. If the polynomial is computed by a circuit with s nodes, then its set-multilinear part on all blocks (MvPolynomial.smProj blk univ, the part that is linear in every block) is a sum of products g * h: for every balanced set S of blocks, one with k / 3 ≤ |S| ≤ 2 k / 3, there are s products, in which g is set-multilinear on S and h on the other blocks (Flat.exists_balanced_products). So the part of the polynomial on all blocks is a sum, over the balanced sets, of tensors of rank at most s across the set and its complement. The semiring of coefficients is arbitrary.

This is [Ant26], Lemma E.4, an argument as in depth reduction: walk from the output towards the inputs along a factor whose part has more than 2 k / 3 blocks, until a factor is balanced. In the source (modules Nc.CaseI.Multi and Paper.Flat) the parts are given by their coefficients; here they are the projections MvPolynomial.smProj, whose product rule MvPolynomial.smProj_mul is the step of the walk.

Main definitions #

Main results #

References #

Balanced sets #

The balanced sets of nodes: the sets S of nodes with k ≤ 3 |S| ≤ 2 k.

@[simp]

The balanced sets are those with k ≤ 3 |S| ≤ 2 k.

There are at most 2 ^ k balanced sets.

There is a balanced set of k ≥ 2 nodes.

theorem Cslib.Circuits.Arithmetic.Separation.Flat.exists_balanced_products_of_steps {σ : Type u_1} {K : Type u_2} [CommSemiring K] {k s : ℕ} {l : ℕ → MvPolynomial σ K} (blk : σ → Fin k) (hl : ∀ γ < s, (∃ (i : σ), l γ = MvPolynomial.X i) ∨ (∃ (a : K), l γ = MvPolynomial.C a) ∨ (∃ i < γ, ∃ j < γ, l γ = l i + l j) ∨ ∃ i < γ, ∃ j < γ, l γ = l i * l j) (hk : 2 ≤ k) {γ : ℕ} (hγ : γ < s) :
∃ (g : Finset (Fin k) → Fin s → MvPolynomial σ K) (h : Finset (Fin k) → Fin s → MvPolynomial σ K), (∀ (S : Finset (Fin k)) (δ : Fin s), MvPolynomial.IsSetMultilinear blk S (g S δ)) ∧ (∀ (S : Finset (Fin k)) (δ : Fin s), MvPolynomial.IsSetMultilinear blk Sᶜ (h S δ)) ∧ (MvPolynomial.smProj blk Finset.univ) (l γ) = ∑ S ∈ balancedSets k, ∑ δ : Fin s, g S δ * h S δ

Balanced products, for a list of gates ([Ant26], Lemma E.4). If every entry l γ, γ < s, of a list of polynomials is a variable, a constant, or the sum or product of two earlier entries, then the set-multilinear part of an entry on all of k ≥ 2 blocks is a sum, over the sets S of blocks with k ≤ 3 |S| ≤ 2 k, of s products of a polynomial that is set-multilinear on S and one that is set-multilinear on the other blocks.

theorem Cslib.Circuits.Arithmetic.Separation.Flat.exists_balanced_products {σ : Type u_1} {K : Type u_2} [CommSemiring K] {k : ℕ} {P : MvPolynomial σ K} {s : ℕ} (hP : ComputedWithin P s) (blk : σ → Fin k) (hk : 2 ≤ k) :
∃ (g : Finset (Fin k) → Fin s → MvPolynomial σ K) (h : Finset (Fin k) → Fin s → MvPolynomial σ K), (∀ (S : Finset (Fin k)) (δ : Fin s), MvPolynomial.IsSetMultilinear blk S (g S δ)) ∧ (∀ (S : Finset (Fin k)) (δ : Fin s), MvPolynomial.IsSetMultilinear blk Sᶜ (h S δ)) ∧ (MvPolynomial.smProj blk Finset.univ) P = ∑ S ∈ balancedSets k, ∑ δ : Fin s, g S δ * h S δ

Balanced products ([Ant26], Lemma E.4). If a polynomial is computed by a circuit with at most s nodes, then its set-multilinear part on all of k ≥ 2 blocks of variables is a sum, over the sets S of blocks with k ≤ 3 |S| ≤ 2 k, of s products of a polynomial that is set-multilinear on S and one that is set-multilinear on the other blocks.