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

Failure of tactic in --lax #3175

Open
mtzguido opened this issue Dec 19, 2023 · 1 comment
Open

Failure of tactic in --lax #3175

mtzguido opened this issue Dec 19, 2023 · 1 comment
Assignees

Comments

@mtzguido
Copy link
Member

mtzguido commented Dec 19, 2023

module P

open FStar.Tactics.V2

#push-options "--lax"

let aux2 (p:Type0)
: Lemma True
= calc (==>) {
    squash p;
    ==> { _ by (apply (`Squash.join_squash); hyp (nth_var (-1))) }
    p;
  }

Gives:

* Error 217 at FStar.Calc.fsti(91,52-91,62):
  - Tactic left uninstantiated unification variable ?87 of type Type0 (reason = "flex-flex quasi:      lhs=Instantiating implicit argument in application     rhs=apply arg")

Blocking #3174

@mtzguido mtzguido self-assigned this Dec 19, 2023
mtzguido added a commit that referenced this issue Dec 19, 2023
@mtzguido
Copy link
Member Author

Partly caused by the special handling of ==> in calc, which uses FStar.Calc.push_impl to obtain the antecedent in scope for the justification of the step. If one makes calc not use that, then this works better. But the problem seems to be that the tactic runs in an environment with unresolved uvars.

let (==>>) = (==>)

let aux2 (p:Type0)
: Lemma True
= calc (==>>) {
    squash p;
    ==>> { _ by (let b = implies_intro () in apply (`Squash.join_squash); hyp b) }
    p;
  }

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