Definition pures_sub (phi phi' : rmap) :=
forall adr,
match resource_at phi adr with
| PURE k pp => resource_at phi' adr
= PURE k (preds_fmap (approx (level phi')) (approx (level phi')) pp)
| _ => True
end.

Lemma pures_sub_refl phi : pures_sub phi phi.
Definition pures_eq (phi phi' : rmap) :=
pures_sub phi phi' /\
(forall adr,
match resource_at phi' adr with
| PURE k pp' => exists pp, resource_at phi adr = PURE k pp
| _ => True
end).