(* misc expec *)
Add Parametric Morphism (A: Set): (@expec A)
with signature (@ext_eq A nat) ==> (@ext_eq (ne_tree.T A) R)
as expec_ext_morph.

(* Specifications: *)
Lemma Rmult_INR1_id: ext_eq (Rmult (INR 1)) (@id R).
Lemma expec_plus (T: Set) (f g: T -> nat) (t: ne_tree.T T):
expec (fun x => plus (f x) (g x)) t = expec f t + expec g t.