proposition: Lemma ans_nth_old: forall h sp i (Hs: 0 <= i < MAX_SPACES) gen, gen <> Z.to_nat i -> nth_space (add_new_space h sp i Hs) gen = nth_space h gen.
proof: Proof. intros. rewrite !nth_space_Znth. simpl. rewrite upd_Znth_diff_strong. - reflexivity. - rewrite spaces_size. assumption. - intro. apply H. subst. rewrite Nat2Z.id. reflexivity. Qed.
imports: Coq.ZArith.ZArith Coq.Program.Basics Coq.micromega.Lia compcert.lib.Integers compcert.common.Values VST.veric.base VST.veric.Clight_lemmas VST.veric.val_lemmas VST.veric.shares VST.msl.seplog VST.msl.shares VST.zlist.sublist VST.floyd.coqlib3 VST.floyd.functional_base VST.floyd.data_at_rec_lemmas VST.zlist.list_solver CertiGraph.lib.EquivDec_ext CertiGraph.lib.List_ext CertiGraph.graph.graph_model CertiGraph.graph.graph_gen