Documentation

CommunicationComplexity.Functions.Hash

@[reducible, inline]

A hash function on α with outputs in Fin k.

Equations
Instances For
    theorem CommunicationComplexity.Functions.Hash.collision_prob_le (α : Type u_1) [Fintype α] (k : ) [NeZero k] (x y : α) (hxy : x y) :
    MeasureTheory.volume.real {h : HashSpace α k | h x = h y} 1 / k

    For distinct inputs, a uniformly random hash collides with probability 1 / k.