Documentation

CslibFrontier.Computability.Circuit.Arithmetic.ROABP

Read-once oblivious algebraic branching programs #

A read-once oblivious algebraic branching program (ROABP) of width w reads the variables one at a time, in a fixed order: it is a product of w × w matrices, the i-th with entries univariate polynomials in the variable X i, and it computes an entry of the product (roabpProd). A polynomial may be computed by such programs in every order of the variables (IsAnyOrderROABP) or in some order, with layers of bounded degree (IsROABP).

The coefficient of a monomial in an entry of the product is the corresponding entry of the product of the coefficient matrices of the layers (coeff_roabpProd). So the coefficients of a program are the values of a product of matrices that depend on one exponent each, which is how Nisan's characterisation and the hitting sets for these programs use them.

Main definitions #

Main results #

References #

noncomputable def Cslib.Circuits.Arithmetic.roabpProd {F : Type u_1} [Field F] {n w : ℕ} (M : Fin n → Matrix (Fin w) (Fin w) (Polynomial F)) (l : List (Fin n)) :
Matrix (Fin w) (Fin w) (MvPolynomial (Fin n) F)

The matrix computed by a read-once oblivious branching program of width w that reads the variables in the order of the list l: the product of the matrices M i, with entries univariate polynomials evaluated at the variable X i.

def Cslib.Circuits.Arithmetic.IsAnyOrderROABP {F : Type u_1} [Field F] {n : ℕ} (w : ℕ) (f : MvPolynomial (Fin n) F) :

f is computed by a read-once oblivious branching program of width w in every order of the variables: for every list of all the variables without repetition, f is an entry of the product of some w × w matrices of univariate polynomials read in that order. The matrices may depend on the order.

theorem Cslib.Circuits.Arithmetic.roabpProd_mem_supported {F : Type u_1} [Field F] {n w : ℕ} (M : Fin n → Matrix (Fin w) (Fin w) (Polynomial F)) {S : Set (Fin n)} (l : List (Fin n)) :
(∀ i ∈ l, i ∈ S) → ∀ (s t : Fin w), roabpProd M l s t ∈ MvPolynomial.supported F S

The entries of a branching program that reads the variables of a list in a set S are polynomials in the variables of S.

def Cslib.Circuits.Arithmetic.IsROABP {F : Type u_1} [Field F] {n : ℕ} (w δ : ℕ) (f : MvPolynomial (Fin n) F) :

f is computed by a read-once oblivious branching program of width w in some order of the variables, with layers of degree at most δ: f is an entry of the product, in the order of a list l without repetition, of w × w matrices of univariate polynomials of degree at most δ. The list need not contain every variable.

def Cslib.Circuits.Arithmetic.layerCoeff {F : Type u_1} [Field F] {n w : ℕ} (M : Fin n → Matrix (Fin w) (Fin w) (Polynomial F)) (i : Fin n) (e : ℕ) :
Matrix (Fin w) (Fin w) F

The matrix of coefficients of X ^ e in the layer of the variable i.

theorem Cslib.Circuits.Arithmetic.coeff_aeval_X_mul_of_mem_supported {F : Type u_1} [Field F] {n : ℕ} {S : Set (Fin n)} {i : Fin n} (hi : i ∉ S) (p : Polynomial F) {q : MvPolynomial (Fin n) F} (hq : q ∈ MvPolynomial.supported F S) (m : Fin n →₀ ℕ) :

The coefficient of a monomial in the product of a univariate polynomial in X i and a polynomial without the variable X i.

theorem Cslib.Circuits.Arithmetic.coeff_roabpProd {F : Type u_1} [Field F] {n w : ℕ} (M : Fin n → Matrix (Fin w) (Fin w) (Polynomial F)) {l : List (Fin n)} :
l.Nodup → ∀ (m : Fin n →₀ ℕ), (∀ i ∉ l, m i = 0) → ∀ (s t : Fin w), (roabpProd M l s t).coeff m = (List.map (fun (i : Fin n) => layerCoeff M i (m i)) l).prod s t

The coefficient of a monomial in an entry of a branching program is the entry of the product of the coefficient matrices of the layers at the exponents of the monomial.

theorem Cslib.Circuits.Arithmetic.coeff_roabpProd_eq_zero {F : Type u_1} [Field F] {n w : ℕ} (M : Fin n → Matrix (Fin w) (Fin w) (Polynomial F)) (l : List (Fin n)) {m : Fin n →₀ ℕ} {i : Fin n} (hi : i ∉ l) (hm : m i ≠ 0) (s t : Fin w) :
(roabpProd M l s t).coeff m = 0

A monomial with a variable outside the list has coefficient zero in a branching program that reads the variables of the list.

theorem Cslib.Circuits.Arithmetic.eval_roabpProd {F : Type u_1} [Field F] {n w : ℕ} (M : Fin n → Matrix (Fin w) (Fin w) (Polynomial F)) (l : List (Fin n)) (a : Fin n → F) (s t : Fin w) :
(MvPolynomial.eval a) (roabpProd M l s t) = (List.map (fun (i : Fin n) => (M i).map (Polynomial.eval (a i))) l).prod s t

Evaluating an entry of a branching program at a point evaluates each layer at the coordinate of its variable.