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

def fails without error (by in variable) #2226

Closed
digama0 opened this issue May 22, 2023 · 0 comments · Fixed by #4370
Closed

def fails without error (by in variable) #2226

digama0 opened this issue May 22, 2023 · 0 comments · Fixed by #4370

Comments

@digama0
Copy link
Collaborator

digama0 commented May 22, 2023

In this (definitely contrived) example, the foo declaration fails, as evidenced by the fact that it is not in the environment, but no error is reported:

variable (A : Nat) (B : by skip)
def foo := A = B -- no error is reported

#print foo -- unknown constant 'foo'

Using def foo : Prop instead causes the declaration to succeed and report that it uses sorry.

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