Permuting a multinomial sampler gives a random function
ProvedPlinko.perm_compose_uniformcryptographyprivate-information-retrieval
Let be a finite set and a family of functions whose load vector, for uniform , has the same distribution as that of a uniformly random function . Then for a uniform permutation of and an independent uniform , the function is uniformly distributed: for every ,
Preamble
import Definitions.Def_Plinko
Formal statement
namespace Plinko
/-- Composing a uniformly random permutation with any keyed family of functions whose load
vector is distributed as `MN(n, m)` gives a uniformly random function `[n] → [m]`. -/
theorem perm_compose_uniform {n m : ℕ} {K : Type*} [Fintype K] (S : K → Fin n → Fin m)
(hS : ∀ l : Fin m → ℕ,
prob (fun k : K => loads (S k) = l) = prob (fun f : Fin n → Fin m => loads f = l))
(f : Fin n → Fin m) :
prob (fun p : Equiv.Perm (Fin n) × K => (fun x => S p.2 (p.1 x)) = f) = 1 / (m : ℝ) ^ n := by
sorry
end Plinko