-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
predicates describing bytes in memory #185
Comments
For stackallocation, we need lemmas for conversion to bytes and back. For example, for
It would be desirable to apply these lemmas automatically. In either direction, it is the more structured (non-bytes) side that determines the length. For exmaple, if the goal is |
I'm not a big fan of |
mit-plv/coqutil#44 would help with Scalars.v |
We have many separation-logic predicates for what is essentially bytes in memory. Here is a probably incomplete list, based on what arguments they take:
Additionally, for existentilly quantified bytes:
Commentary:
I think
ptsto_bytes
is very painful for general use and I would like to eliminate it from as many places as possible.eq(_$@_)
andarray1
are proven equivalent for lists of less than 2^32 elements; no urgency to replace on with another as far as I can see.scalar
currently lacks a lemma for casting toarray
or$@
. I will probably just prove it, but do we think we want to keep the definition as-is anyway? It goes throughptsto_bytes
...Bignum
has a lemma for converting toarray 1
and back, good. Placeholder can be converted to Bignum.anybytes
has lemmas toarray 1
, I think lemmas to$@
are currently not present but should be easy either througharray 1
or directlyThe text was updated successfully, but these errors were encountered: