Section Exports.
Definition inj_ext := E.
Definition injects := injects.
Definition Inject := Inject.
(* The following two definitions are central for framing with respect to the hooks. In essence. we can add more hooks via the frame rule, if none of the protocols in the "core" world (i.e., the world, to which we attach the frame with more hooks) are going to become constrained by the newly added hooks.  In other words, the new hooks only constrain the world "to be attached" but not our "core" world. *)
Definition not_hooked_by (K : hooks) l :=
forall z lc l' st, (z, lc, (l', st)) \in dom K -> l != l'.
Definition world_not_hooked (W: world) K :=
forall l, l \in dom W.1 -> not_hooked_by K l.
(********************************************************************)
(*                      Framing result                              *)
(********************************************************************)
(* State something about hook direction *)

Lemma locProjR (W1 W2 : world) l s1 s2:
(s1 \+ s2) \In Coh (W1 \+ W2) -> l \in dom W2.1 ->
s2 \In Coh W2 -> getStatelet (s1 \+ s2) l = getStatelet s2 l.