proposition: Lemma fdist_selfE a : fdist_self a = if a.1 == a.2 then P a.1 else 0.
proof: Proof. by rewrite /fdist_self; unlock; rewrite ffunE. Qed.
imports: mathcomp(all_ssreflect ssralg fingroup perm matrix) mathcomp(all_algebra vector reals normedtype) mathcomp(mathcomp_extra boolp) mathcomp(Rstruct) ssrR logb realType_ext ssr_ext ssralg_ext bigop_ext