(** Injections on registers *)

  Definition reg_ren f (r:PregEq.t) (rs rs' : regset) : Prop :=
    val_obs f (Pregmap.get r rs) (Pregmap.get r rs').Definition regset_ren f rs rs' : Prop :=
    forall r, reg_ren f r rs rs'.Definition core_inj f c c' :=
    match c, c' with State rs _, State rs' _ => regset_ren f rs rs' end.

Lemma core_inj_halted : forall the_ge c c' (f : memren), core_inj f c c' -> forall v, halted (Asm_core_sem the_ge) c v <-> halted (Asm_core_sem the_ge) c' v.