Section FancyUpdates.
Context {inv_names : invG}.
Definition fupd (E1 E2 : Ensemble iname) P :=
(wsat * ghost_set g_en E1) -* |==> except0 (wsat * ghost_set g_en E2 * P).
Notation "|={ E1 , E2 }=> P" := (fupd E1 E2 P) (at level 62): logic.
Notation "|={ E }=> P" := (fupd E E P) (at level 62): logic.

(* these last two are probably redundant *)
Lemma inv_close : forall E i P, In E i ->
invariant i P * |> P * ghost_list(P := exclusive_PCM _) g_dis (list_singleton i (Some tt)) |--
|={Subtract E i, E}=> TT.