Definition size_compatible' (n: Z) (p: val) :=
match p with
| Vundef => True
| Vint _ => True
| Vlong _ => True
| Vfloat _ => True
| Vsingle _ => True
| Vptr _ i_ofs => Ptrofs.unsigned i_ofs + n < Ptrofs.modulus
end.

Lemma nonreadable_memory_block_mapsto: forall sh p t v, ~ readable_share sh -> type_is_by_value t = true -> type_is_volatile t = false -> size_compatible t p -> align_compatible t p -> tc_val' t v -> memory_block sh (sizeof t) p = mapsto sh t p v.