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

Imprecise logical context in the match branch (cannot prove that the scrutinee is not a data constructor that is matched before this branch) #157

Open
aseemr opened this issue Jan 31, 2024 · 1 comment

Comments

@aseemr
Copy link
Collaborator

aseemr commented Jan 31, 2024

noeq
type t =
  | A : t
  | B : t

fn test (x:t)
  requires emp
  ensures emp
{
  match x {
    A -> {
      ()
    }
    _ -> {
      assert (pure (~ (A? x)))
    }
  }
}
@nikswamy
Copy link
Collaborator

We should improve this and when we do also correspondingly update this piece of documentation.

https://github.com/FStarLang/PoP-in-FStar/blob/pulse/book/pulse/pulse_conditionals.rst?plain=1#L170-L183

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

2 participants