Definition replace_locals (mu:SM_Injection) pSrc' pTgt': SM_Injection :=
  match mu with
    Build_SM_Injection locBSrc locBTgt pSrc pTgt local extBSrc extBTgt fSrc fTgt extern =>
    Build_SM_Injection locBSrc locBTgt pSrc' pTgt' local extBSrc extBTgt fSrc fTgt extern
  end.

Lemma replace_locals_pub': forall mu pubSrc' pubTgt' (P: forall b, pubBlocksSrc mu b = true -> pubSrc' b = true) b (B: pubBlocksSrc mu b = true), pub_of (replace_locals mu pubSrc' pubTgt') b = pub_of mu b.