Definition memory_block (sh: share) (n: Z) (v: val) : mpred :=
match v with
| Vptr b ofs => (!!(Ptrofs.unsigned ofs + n < Ptrofs.modulus)) && memory_block' sh (nat_of_Z n) b (Ptrofs.unsigned ofs)
| _ => FF
end.

Lemma memory_block_share_join:
forall sh1 sh2 sh n p,
sepalg.join sh1 sh2 sh ->
memory_block sh1 n p * memory_block sh2 n p = memory_block sh n p.