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

Names for variables introduced by STApp #90

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mtzguido
Copy link
Member

A follow up to #88, also give a clearer name to the implicits introduced by the Pulse checker on applications, i.e. those at the tail of a function call. This does not do anything for implicits "inside" an application, since those are instantiated by F*. Perhaps this PR is better not merged until we fix those too, so we do not create confusion?
 
File:

module X

open Pulse.Lib.Pervasives

assume val f : int -> vprop

```pulse
fn foo () (#x:int)
  requires f x
  ensures  emp
{
  admit()
}
```

```pulse
fn test (x:int)
  requires emp
  ensures  emp
{
  foo ()
}
```

Before:

* Error <unknown> at X.fst(21,2-21,8):
  - Cannot prove:
      X.f _
  - In the context:
      emp

After:

* Error <unknown> at X.fst(21,2-21,8):
  - Cannot prove:
      X.f ?x
  - In the context:
      emp

mtzguido added 2 commits June 13, 2024 15:44
This only works for the implicits at the tail of the application,
since they are the ones that Pulse instantiates, but not for those
in the middle which are instantiated by F*.
@mtzguido mtzguido changed the title Names Names for variables introduced by STApp Jun 14, 2024
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

Successfully merging this pull request may close these issues.

1 participant