proposition: Lemma cti_rest_gen_size: forall h to s (Hi : 0 <= Z.of_nat to < Zlength (spaces h)) (Hh : has_space (Znth (Z.of_nat to) (spaces h)) s), rest_gen_size h to = rest_gen_size (cut_heap h (Z.of_nat to) s Hi Hh) to + s.
proof: Proof. intros. unfold rest_gen_size. rewrite !nth_space_Znth. unfold cut_thread_info. simpl. rewrite upd_Znth_same by assumption. simpl. lia. 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