Definition isVAL (r : resource) :=
match r with
| YES _ _ (VAL _) _ => Logic.True
| _ => False
end.

Lemma m_dry_personal_mem_eq m phi phi' pr pr' :
(forall loc, perm_of_res (phi @ loc) = perm_of_res (phi' @ loc)) ->
m_dry (@personal_mem m phi pr) =
m_dry (@personal_mem m phi' pr').