Definition normalize {X} `{Finite X} (d : dist X) : dist X.
refine {|
dist_pmf := map (fun x => (x, eval_dist d (Classes.eqb x))) enum;
dist_law := _;
|}.

Lemma card_prod {X Y} `{Finite X, Finite Y} : card (X * Y) = (card X * card Y)%nat.