Universal hash families exist for all polynomial lengths
ProvedHILL.PRG.universal_hash_existscryptographyhillpseudorandom-generatoruniversal-hashing
Let and be polynomially bounded integer parameters, where is computable in polynomial time (no computability assumption is placed on ). Then there is a P-time keyed family
that is a (pairwise independent) universal hash function in the sense of Definition 4.6: for every , all distinct and all ,
This is the existence statement behind every use of universal hashing in the paper (Constructions 4.13, 4.15 and (6.7)); the matrix construction of Definition 4.7 is one witness.
Formalization Note P-time evaluation is the model's HashFamily.PTime: the key and input lengths are computed from the security parameter together with the output length, which is supplied as unary advice, so may be a mildly nonuniform parameter such as in (6.6).
Preamble
import Mathlib import Definitions.Def_HILL_PRG_Model
Formal statement
namespace HILL.PRG
/-- Universal hash families exist for every polynomial input length computable from
`1ⁿ` and every polynomially bounded output length. -/
theorem universal_hash_exists (inL outL : ℕ → ℕ)
(hin : IsPoly inL)
(hinP : PolyTimeComputable (fun w => List.replicate (inL w.length) true))
(hout : IsPoly outL) :
∃ h : HashFamily, h.IsUniversal ∧ ∀ n, h.inLen n = inL n ∧ h.outLen n = outL n := by sorry
end HILL.PRG
Source
Håstad, Impagliazzo, Levin, Luby, A Pseudorandom Generator from Any One-Way Function, SIAM J. Comput. 28(4), 1999, pp. 1377–1378, Definition 4.6 and Definition 4.7 (matrix construction); https://www.cs.bu.edu/fac/lnd/pdf/hill.pdf