(** The values of the erased memory may be more defined and its
       permissions are top.*)
  (** In retrospect setting the permissions to top was a bad
  choice. It should have been that the permissions of the erased
  memory are above the permissions of the other memory. This would
  make it more reusable and it wouldn't need a second definition for
  free. *)

  Local Notation "a # b" := (PMap.get b a) (at level 1).

Lemma check_value_erasure: forall vl vl', memval_erasure_list vl vl' -> forall v v' q n, check_value n v q vl = true -> val_erasure v v' -> v <> Vundef -> check_value n v' q vl' = true.