Fixed patterns in uniform finite functions #
A uniform function to a finite alphabet agrees with a prescribed pattern on a set of r
coordinates with probability |alphabet|⁻ʳ. Restriction to those coordinates is uniform;
the agreement event is one point of that function space. Unrestricted coordinates contribute
no extra conditions, even when the prescribed pattern outside the set is arbitrary.
theorem Cslib.Probability.PMF.toOuterMeasure_uniformOfFintype_pi_eqOn {ι : Type u_1} {α : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype α] [Nonempty α] (I : Finset ι) (pattern : ι → α) :
(uniformOfFintype (ι → α)).toOuterMeasure {f : ι → α | ∀ i ∈ I, f i = pattern i} = (↑(Fintype.card α) ^ I.card)⁻¹
Agreement with a fixed pattern on a finite set has inverse alphabet-size power probability.