bv_decide
throws an unknown free variable
error if there is an hypothesis b.toNat > 0
in the context
#5674
Closed
3 tasks done
Labels
bug
Something isn't working
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
In the following MWE,
bv_decide
complains about an unknown free variable.If we remove the hypothesis
h
,bv_decide
will correctly come up with a counterexample,or if we rephrase
h
in term of bitvector le, (i.e.,b > 0
),bv_decide
correctly comes up with a proof, so it seems the presence oftoNat
is problematic.Context
Minimized from LNSym
Steps to Reproduce
Expected behavior: I expect
bv_decide
to either come up with a proof, a counterexample, or a meaningful error to explain why it couldn't do either.Actual behavior: I get "unknown fvar"
Versions
nightly-2024-10-09 on MacOS
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: