Resampling a uniform function along a map #
Draw f : ι → κ uniformly and, independently, a table t : ι' → κ uniformly. For any map
e : ι' → ι, the function Function.extend e t f is again uniform
(uniformOfFintype_bind_bind_extend). For injective e it takes the value t j at e j and
agrees with f off the range of e, so overwriting the values of a uniform function on the range
of a map by fresh uniform values leaves it uniform. This is the step that replaces part of a random
function or random oracle by an independent table.
For injective e, the pair (f, t) ↦ (Function.extend e t f, f ∘ e) is an involution, and
resampling along an equivalence (uniformOfFintype_bind_bind_fst_equiv) applies. A general map
is reduced to the inclusion of its range, pulling the table back along a section
(uniformOfFintype_pi_map_comp_embedding).
For a table-dependent embedding, the same swap works when the replacement preserves the
embedding (uniformOfFintype_bind_bind_adaptiveExtend).
Main results #
Cslib.Probability.PMF.uniformOfFintype_bind_bind_extend: a uniform function whose values on the range of a map are replaced by entries of an independent uniform table is uniform.
Resampling along a table-dependent embedding preserves a uniform function when overwriting its selected values leaves the embedding fixed. The old values on that image supply the inverse of the joint swap.
Resampling along a map: a uniform function whose values on the range of e are replaced
by entries of an independent uniform table is uniform. For injective e, the function
Function.extend e t f takes the value t j at e j and the value of f off the range of e.