Skip to content
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

Quantify over ticked variables in rewrites? #321

Open
mtzguido opened this issue Feb 11, 2025 · 0 comments
Open

Quantify over ticked variables in rewrites? #321

mtzguido opened this issue Feb 11, 2025 · 0 comments

Comments

@mtzguido
Copy link
Member

fn test (r1 r2 : ref int)
  requires pts_to r1 'x ** pure (r1 == r2)
  ensures  pts_to r2 'x
{
  rewrite pts_to r1 'y as pts_to r2 'y;
}

I think it would be nice if this worked, by quantifying over 'y with a with. Note that it does work if we say 'x, but that's just referring to the implicitly-quantified 'x above.

Not sure if this would raise more confusion though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant