Relabeling and dropping uniform draws #
relabel_uniform e [with x]: equatesPMFdistributions whose leading uniform draws (Cslib.Probability.PMF.uniformOfFintype, collapsing nestedProddraws) match up toe : α ≃ βorf : α → β, auto-discharging standard bijectivities.drop_uniform with x: simplifies constantPMF.bindstages viaPMF.bind_constand peels an unused leadingPMF.bindstageμ.bind fun y => f y = gtof x = gviabind_const_of_eq.
Main definitions #
theorem Cslib.Tactic.UniformRelabel.uniformOfFintype_map_bijective {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Fintype α] [Nonempty α] [Fintype β] [Nonempty β] {f : α → β} (hf : Function.Bijective f) {g : β → γ} {g' : α → γ} (hg : ∀ (a : α), g' a = g (f a)) :
Internal tactic bridge lemma pushing PMF.map through a bijection of finite nonempty types.
relabel_uniform e [with x] relabels PMF.uniformOfFintype draws along e : α ≃ β or
f : α → β. On a PMF equality it normalizes Bind/Pure/Map notation, collapses
consecutive uniform draws along nested products when needed, applies
uniformOfFintype_bind_bijective / uniformOfFintype_map_bijective, and auto-discharges standard
bijectivities.
drop_uniform with x simplifies constant PMF.bind stages via PMF.bind_const and peels a
leading PMF.bind draw μ.bind fun y => f y = g to f x = g via bind_const_of_eq.