Uniform finite-field matrix hashing #
A uniform matrix over a finite field maps every nonzero vector to a uniform vector. Consequently,
ordinary matrix-vector multiplication satisfies the existing IsDeltaUniversalHash predicate.
These are finite probability laws, with no claim about sampling the matrix with bounded fair coins.
Main results #
uniformOfFintype_map_mulVec: uniform output at each fixed nonzero input.isDeltaUniversalHash_mulVec: distinct inputs have uniformly distributed hash differences.
The proofs reuse surjectivity of scalar linear combinations and uniformity under surjective
additive homomorphisms. These elementary API lemmas are original; the universality predicate is
the existing one from Probability.HashFamily.
A uniform finite-field matrix sends a fixed nonzero vector to a uniform vector.
Finite-field matrices are delta-universal under their uniform law: the difference at any two distinct inputs hits each output with probability exactly the reciprocal output cardinality. The predicate records the resulting upper bound.