Definition FLIP mu :=
  match mu with
    Build_SM_Injection locBSrc locBTgt pSrc pTgt local extBSrc extBTgt fSrc fTgt extern =>
    Build_SM_Injection extBSrc extBTgt fSrc fTgt extern locBSrc locBTgt pSrc pTgt local
  end.

Lemma RelyGuaranteeTgt: forall mu Etgt Esrc m2 m2' (WD: SM_wd mu) (TgtHyp: forall b ofs, Etgt b ofs = true -> (Mem.valid_block m2 b /\ (locBlocksTgt mu b = false -> exists b1 delta1, foreign_of mu b1 = Some(b,delta1) /\ Esrc b1 (ofs-delta1) = true))) (Unch2: Mem.unchanged_on (fun b z => Etgt b z = false) m2 m2') (SrcHyp: forall b ofs, Esrc b ofs = true -> vis mu b = true) m1 (SrcPerm: forall b1 z, Esrc b1 z = true -> Mem.perm m1 b1 z Max Nonempty), Mem.unchanged_on (local_out_of_reach (FLIP mu) m1) m2 m2'.