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

Prover failure when filling in squash arguments #127

Open
mtzguido opened this issue Jun 30, 2024 · 0 comments
Open

Prover failure when filling in squash arguments #127

mtzguido opened this issue Jun 30, 2024 · 0 comments

Comments

@mtzguido
Copy link
Member

This snippet:

```pulse
ghost
fn f (p:prop)
     (#_ : squash p)
  requires emp
  ensures emp
{
  ();
}
```

```pulse
ghost
fn g (p:prop)
  requires pure p
  ensures emp
{
  f p
}
```

Gives an error in the call to f:

- Prover error: ill-typed substitutions (prover could not prove uvar _#3)
- pst.pg = [_#2 : squash p, p#1 : prop]
- pst.uvs = [?uu___24309#3 : squash p]
- pst.ss = []
- pst.remaining_ctxt = []
- pst.unsolved = []

But changing that line to:

  f p #()

works perfectly fine.

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