-
Notifications
You must be signed in to change notification settings - Fork 439
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
feat: prop instance
yields theorems
#5856
Conversation
@Kha The way I got this to work was by adding an extra DefKind for instances that's basically the same as for defs, but when the declaration is finally added to the environment, it checks to see if the type is a Prop to decide whether to use a theorem or a definition. Instances then follow |
Mathlib CI status (docs):
|
Adds a feature to the the mutual def elaborator where the `instance` command yields theorems instead of definitions when the class is a `Prop`. Closes leanprover#5672
This PR adds a feature to the the mutual def elaborator where the
instance
command yields theorems instead of definitions when the class is aProp
.Closes #5672