Documentation

MerLeanBpqc.Remarks.Rem_3_ExpandingMatrixDefinition

Remark 3: Expanding Matrix Definition #

A matrix A ∈ 𝔽₂^{m × n} is called (α, β)-expanding, where α ∈ (0, 1] and β > 0, if for any x ∈ 𝔽₂^n with |x| ≤ α n we have |Ax| ≥ β |x|, where |·| denotes the Hamming weight.

Main Definitions #

Hamming weight #

@[reducible, inline]
abbrev hammingWeight {n : } (x : Fin n𝔽₂) :

The Hamming weight of a vector x : Fin n → 𝔽₂, i.e., the number of nonzero entries. This is hammingNorm from Mathlib specialized to vectors over 𝔽₂.

Equations
Instances For

    Expanding matrix definition #

    def IsExpanding {m n : } (A : Matrix (Fin m) (Fin n) 𝔽₂) (α β : ) :

    A matrix A ∈ 𝔽₂^{m × n} is (α, β)-expanding, where α ∈ (0, 1] and β > 0, if for any vector x ∈ 𝔽₂^n with Hamming weight |x| ≤ α · n, we have |A x| ≥ β · |x|, where |·| denotes the Hamming weight.

    The parameters α and β are real numbers with 0 < α ≤ 1 and 0 < β.

    Equations
    Instances For