proposition: Lemma E_cast_RV_fdist_rV1 (A : finType) (P : real_realType.-fdist A) : forall (X : {RV P -> R}), `E (cast_RV_fdist_rV1 X) = `E X.
proof: Proof. move=> f; rewrite /cast_RV_fdist_rV1 /=; apply big_rV_1 => // m. by rewrite -fdist_rV1. Qed.
imports: mathcomp(all_ssreflect ssralg ssrnum matrix) mathcomp(Rstruct reals) Reals Lra ssrR Reals_ext realType_ext logb ssr_ext ssralg_ext bigop_ext fdist