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 sumF_ext {X} `{Finite X} (f g : X -> nat) :
(forall x, f x = g x) -> sumF f = sumF g.