Cyclic convolution of bit strings #
Mathlib represents cyclic convolution as a circulant matrix-vector product. Over the Boolean ring, this operation is commutative and associative. The results below expose those generator-level laws directly, complementing Mathlib's matrix product laws.
Main results #
Cslib.BitString.circulant_mulVec_comm: binary cyclic convolution is commutative.Cslib.BitString.circulant_mulVec_assoc: binary cyclic convolution is associative.
Binary cyclic convolution is commutative.
theorem Cslib.BitString.circulant_mulVec_assoc {n : ℕ} (x y z : BitString n) :
(Matrix.circulant ((Matrix.circulant x).mulVec y)).mulVec z = (Matrix.circulant x).mulVec ((Matrix.circulant y).mulVec z)
Binary cyclic convolution is associative.