-
Notifications
You must be signed in to change notification settings - Fork 437
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
kernel hangs on ac_nf expression #5699
Comments
Didn't look closely yet. This might have a similar cause as #5384 |
Fun fact: Enabling theorem add_eq_sub_not_sub_one'' : ∀ (x : BitVec 32), (!x == x + 1#32 + 4294967295#32) = true → False :=
fun x h =>
foo
(Eq.mp
(congrArg (fun x_1 => (!x == x_1) = true)
(Lean.Data.AC.Context.eq_of_norm
{ op := HAdd.hAdd, assoc := BitVec.instAssociativeHAdd, comm := some { down := BitVec.instCommutativeHAdd },
idem := none,
vars :=
[{ value := x, neutral := none }, { value := 1#32, neutral := none },
{ value := 4294967295#32, neutral := none }],
arbitrary := x }
(((Lean.Data.AC.Expr.var 0).op (Lean.Data.AC.Expr.var 1)).op (Lean.Data.AC.Expr.var 2))
((Lean.Data.AC.Expr.var 0).op ((Lean.Data.AC.Expr.var 1).op (Lean.Data.AC.Expr.var 2))) (Eq.refl true)))
h) I'm fairly certain that it’s the same issue as #5384; like there, a strategically placed
|
Indeed, and the fix seems to work (#5708). |
Wow, what a fast turnaround. Thank you! 🥳 |
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
The following test case hangs in the kernel
Context
This issue arose when testing bv_decide with
ac_nf
enabled.Steps to Reproduce
exact foo h
not disappearingExpected behavior: Proof should be confirmed by kernel
Actual behavior: Kernel is hanging
Versions
"4.12.0, commit 225e089"
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: