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

Faulty translation of Nat existentials into SMT #15

Closed
dranov opened this issue Feb 13, 2024 · 0 comments · Fixed by #16
Closed

Faulty translation of Nat existentials into SMT #15

dranov opened this issue Feb 13, 2024 · 0 comments · Fixed by #16

Comments

@dranov
Copy link
Contributor

dranov commented Feb 13, 2024

import Auto
set_option auto.smt true
set_option auto.smt.trust true

set_option trace.auto.smt.printCommands true
set_option trace.auto.smt.result true

example : false = true := by
  auto -- z3 says Sat

example : ∃ (n : Int), false = true := by
  auto -- z3 says Sat

example : ∃ (n : Nat), false = true := by
  auto -- z3 says Unsat
  /-
  [auto.smt.printCommands] (assert (! (|not| (exists ((|smtd_0| |Int|)) (|=>| (|>=| |smtd_0| 0) (|=| |false| |true|)))) :named valid_fact_0))
  [auto.smt.result] z3 says Unsat, unsat core:
      (|valid_fact_0|)
  -/

In the translation of exists, there should be a conjunction rather than implication. As far as I can tell, the bug is due to lamQuantified2STerm.

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

Successfully merging a pull request may close this issue.

1 participant