-
Notifications
You must be signed in to change notification settings - Fork 11
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
Update to Lean 2024-09-26 broke bv_automata #660
Comments
A branch with the broken test case is available in #662. |
I think the issue is that the statement is false (?). The error message is
and There is the same error with an obviously false statement In any case it would be good to have a more informative error message. |
bv_AddSub_1556
The same issue arises with |
As far as I understand, the Which version of Lean worked? I tried with 2024-09-20 and it has the same behavior. |
works for me at e6e6f63 - maybe try with |
I haven't found the source of the issue yet, but the problem is that now the |
The recent update of lean changed the behaviour of ring_nf, which led to one simp lemma not firing exposing `bv_automata` to a state where it would throw a bug: #660. This PR adds a simp-lemma to simplify the offending statement, bringing our CI back to the state before the recent lean update. While not urgent anymore, the offending bug should anyhow be fixed at some point.
I think what was happening is that before the update, |
Indeed. |
Currently, `bv_automata` does not fail if the goal is false, because `native_decide` doesn't fail, it produces an ill-typed proof. On consequence is that it is awkward to use `bv_automata` in a tactic such as `bv_auto`, since it relied on tactics to fail to be able to try the next tactic (cf issue #660) It also give an error that is not helpful at all after the proof is complete. This PR is a proof of concept that modifies the implementation of `native_decide` to check that the problem is solved by the decision procedure before constructing the proof object.
Updating to the new Mathlib version (2024-09-26) broke AliveStatement
bv_AddSub_1556
:The offending commit is likely leanprover/lean4-nightly@a3ca15d.
The text was updated successfully, but these errors were encountered: