(** * Properties of equations *)

Module ESF := FSetFacts.Facts(EqSet).Module ESP := FSetProperties.Properties(EqSet).Module ESD := FSetDecide.Decide(EqSet).Definition sel_val (k: equation_kind) (v: val) : val :=
  match k with
  | Full => v
  | Low => Val.loword v
  | High => Val.hiword v
  end.

Lemma add_equation_ros_satisf: forall rs ls ros mos e e', add_equation_ros ros mos e = Some e' -> satisf rs ls e' -> satisf rs ls e.