Proof with eauto with renamings id_renamings val_renamings.
intros.
constructor; constructor;
eauto with id_renamings; unfold id_ren; intros;
repeat match goal with
| [H: context[valid_block_dec ?M ?B] |- _] =>
destruct (valid_block_dec M B); simpl in *
| [H: _ = Some _ |- _] => inv H; clear H
end; auto.
rewrite setMaxPerm_Cur;
apply po_refl.
rewrite setMaxPerm_Cur; auto.
destruct (ZMap.get ofs (Mem.mem_contents m) # b2) eqn:Hget;
constructor.
destruct v0; constructor.
specialize (H _ v _ _ Hget).
simpl in H.
(*this gives an anomaly: erewrite Coqlib2.if_true with (E:= {Mem.valid_block m b} + {~ Mem.valid_block m b}). *)
destruct (valid_block_dec m b); simpl; tauto.
Qed.

Lemma mem_obs_eq_id :
forall m,
valid_mem m ->
mem_obs_eq (id_ren m) m m.