Definition restrict_sm mu (X:block -> bool) :=
match mu with
Build_SM_Injection locBSrc locBTgt pSrc pTgt local extBSrc extBTgt fSrc fTgt extern =>
Build_SM_Injection locBSrc locBTgt pSrc pTgt (restrict local X)
extBSrc extBTgt fSrc fTgt (restrict extern X)
end.

Lemma restrict_sm_preserves_globals' F V (ge:Genv.t F V) mu X :
Events.meminj_preserves_globals ge (extern_of mu) ->
(forall b, isGlobalBlock ge b = true -> X b = true) ->
Events.meminj_preserves_globals ge (extern_of (restrict_sm mu X)).