Documentation

Complexity.Foundations.LinearAlgebra.Matrix.Moore

Moore determinants in characteristic two #

The Moore matrix of u : Fin k โ†’ F is (u l ^ 2 ^ m)_{l, m}; its determinant is the Moore determinant of u over ๐”ฝโ‚‚. In characteristic two determinants and permanents agree.

The Moore determinant is the k-th finite difference of x โ†ฆ x ^ (2 ^ k - 1): since x ^ (2 ^ k - 1) = โˆ_{m < k} x ^ 2 ^ m is a product of k additive functions, โˆ‘_{c โˆˆ ๐”ฝโ‚‚แต} (a + โˆ‘ cโ‚— uโ‚—) ^ (2 ^ k - 1) = det (u l ^ 2 ^ m) for every base point a.

For a linearized function Q x = โˆ‘_{j โˆˆ โ„ค/n} a j * x ^ 2 ^ j on a field with 2 ^ n elements, the Moore permanent of Q โˆ˜ w expands in the monomials โˆโ‚— wโ‚— ^ 2 ^ ฯ„โ‚—, ฯ„ : Fin k โ†’ โ„ค/n, with coefficient the permanent of (a (ฯ„ l - m) ^ 2 ^ m)_{l, m} [BenSassonKopparty2012, Lemma 3.13].

Main definitions #

Main results #

References #

def Cslib.mooreMatrix {F : Type u_1} [Field F] {k : โ„•} (u : Fin k โ†’ F) :
Matrix (Fin k) (Fin k) F

The Moore matrix (u l ^ 2 ^ m)_{l, m} of a family u : Fin k โ†’ F.

Instances For
    @[simp]
    theorem Cslib.mooreMatrix_apply {F : Type u_1} [Field F] {k : โ„•} (u : Fin k โ†’ F) (l m : Fin k) :
    mooreMatrix u l m = u l ^ 2 ^ โ†‘m

    Entry (l, m) of the Moore matrix is u l ^ 2 ^ m.

    theorem Matrix.det_eq_permanent_of_charTwo {R : Type u_2} {ฮน : Type u_3} [CommRing R] [CharP R 2] [Fintype ฮน] [DecidableEq ฮน] (M : Matrix ฮน ฮน R) :

    In characteristic two the determinant of a matrix is its permanent.

    theorem Cslib.pow_two_pow_sub_one_eq_prod {R : Type u_2} [CommMonoid R] (x : R) (k : โ„•) :
    x ^ (2 ^ k - 1) = โˆ m : Fin k, x ^ 2 ^ โ†‘m

    x ^ (2 ^ k - 1) is the product of the k additive powers x ^ 2 ^ m, m < k.

    theorem Cslib.sum_cube_pow_eq_det_mooreMatrix {F : Type u_1} [Field F] [Algebra (ZMod 2) F] {k : โ„•} (a : F) (u : Fin k โ†’ F) :
    โˆ‘ c : Fin k โ†’ ZMod 2, (a + โˆ‘ l : Fin k, c l โ€ข u l) ^ (2 ^ k - 1) = (mooreMatrix u).det

    The Moore determinant is a finite difference: for every base point a, โˆ‘_{c โˆˆ ๐”ฝโ‚‚แต} (a + โˆ‘ cโ‚— uโ‚—) ^ (2 ^ k - 1) is the Moore determinant of u.

    theorem Cslib.permanent_mooreMatrix_linearizedEval {F : Type u_1} [Field F] [Algebra (ZMod 2) F] [Finite F] {n : โ„•} [NeZero n] (hn : Module.finrank (ZMod 2) F = n) (a : ZMod n โ†’ F) {k : โ„•} (w : Fin k โ†’ F) :
    (mooreMatrix fun (l : Fin k) => linearizedEval a (w l)).permanent = โˆ‘ ฯ„ : Fin k โ†’ ZMod n, (Matrix.of fun (l m : Fin k) => a (ฯ„ l - โ†‘โ†‘m) ^ 2 ^ โ†‘m).permanent * โˆ l : Fin k, w l ^ 2 ^ (ฯ„ l).val

    Monomial expansion of a Moore permanent, an analogue of [BenSassonKopparty2012, Lemma 3.13]: for the linearized function Q = linearizedEval a on a field with 2 ^ n elements, per (Q (w l) ^ 2 ^ m) = โˆ‘_ฯ„ per (a (ฯ„ l - m) ^ 2 ^ m) * โˆโ‚— w l ^ 2 ^ ฯ„ l, the sum ranging over all ฯ„ : Fin k โ†’ ZMod n.