Restructured proof.

New proof opens the DLS predicate to justify accesses to `pxTaskItem->next` and proves that `pxTaskItem->next` points to a valid list item.
This commit is contained in:
Tobias Reinhard 2022-11-22 10:10:41 -05:00
parent 49643b6f5e
commit f7e537a19f
2 changed files with 123 additions and 76 deletions

View file

@ -0,0 +1,15 @@
#ifndef VERIFAST_LISTS_EXTENDED_H
#define VERIFAST_LISTS_EXTENDED_H
/* This file contains lemmas that would fit `list.gh` which is part
* of VeriFast's standard library.
*/
// TODO: prove
/*@
lemma void mem_suffix_implies_mem<t>(t x, list<t> xs, int i);
requires mem(x, drop(i, xs)) == true;
ensures mem(x, xs) == true;
@*/
#endif /* VERIFAST_LISTS_EXTENDED_H */