Documentation

CslibFrontier.Probability.PMF.UniformExtend

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 #

theorem Cslib.Probability.PMF.uniformOfFintype_bind_bind_adaptiveExtend {ι : Type u_1} {ι' : Type u_2} {κ : Type u_3} {ε : Type u_4} [Fintype ι] [DecidableEq ι] [Fintype ι'] [DecidableEq ι'] [Fintype κ] [Nonempty κ] (e : (ι → κ) → ι' ↪ ι) (stable : ∀ (f : ι → κ) (t : ι' → κ), e (Function.extend (⇑(e f)) t f) = e f) (g : (ι → κ) → PMF ε) :
((uniformOfFintype (ι → κ)).bind fun (f : ι → κ) => (uniformOfFintype (ι' → κ)).bind fun (t : ι' → κ) => g (Function.extend (⇑(e f)) t f)) = (uniformOfFintype (ι → κ)).bind g

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.

theorem Cslib.Probability.PMF.uniformOfFintype_bind_bind_extend {ι : Type u_1} {ι' : Type u_2} {κ : Type u_3} {ε : Type u_4} [Fintype ι] [DecidableEq ι] [Fintype ι'] [DecidableEq ι'] [Fintype κ] [Nonempty κ] (e : ι' → ι) (g : (ι → κ) → PMF ε) :
((uniformOfFintype (ι → κ)).bind fun (f : ι → κ) => (uniformOfFintype (ι' → κ)).bind fun (t : ι' → κ) => g (Function.extend e t f)) = (uniformOfFintype (ι → κ)).bind g

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.