Definition compat_pointer_chunks (chunk1 chunk2: memory_chunk) : Prop :=
  match chunk1, chunk2 with
  | (Mint32 | Many32), (Mint32 | Many32) => True
  | (Mint64 | Many64), (Mint64 | Many64) => True
  | _, _ => False
  end.

Lemma valid_access_inj: forall f m1 m2 b1 b2 delta chunk ofs p, mem_inj f m1 m2 -> f b1 = Some(b2, delta) -> valid_access m1 chunk b1 ofs p -> valid_access m2 chunk b2 (ofs + delta) p.