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

False typechecker error (expected: Unknown) #34

Open
jiwonparc opened this issue Jul 7, 2021 · 0 comments
Open

False typechecker error (expected: Unknown) #34

jiwonparc opened this issue Jul 7, 2021 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@jiwonparc
Copy link
Collaborator

This makes the typechecker fail (but z3 and cvc4 are happy with it):

(declare-fun x () Int)
(assert (=>
	(= x 3)
	(forall ((x Int)) (let ((?y x))
		(= ?y 3)
	))
))
(check-sat)

The output is:

src.parsing.typechecker.TypeCheckError: Ill-typed expression 
term:           (= x 3)
faulty subterm: 3
expected:       Unknown
actual:         Int

The error disappears when the quantified and global variable have different names.

@jiwonparc jiwonparc added the bug Something isn't working label Jul 7, 2021
@wintered wintered added this to the release 0.4.0 milestone Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants