Definition AsGame {A} f (a:A) : Comp (list (Bvector 256) * KV 256) := ret(f a).Definition Generate_refactored state := AsGame (GenUpdate_original_core state).

Lemma Refactored kv n: comp_spec (fun x y => x=y) (@Generate _ HMAC_Bvec eqDecState kv n) (*(AsGame (GenUpdate_original_core kv) n)*) (ret (GenUpdate_original_core kv n)).