-
Notifications
You must be signed in to change notification settings - Fork 350
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
Deriving DecidableEq fails in implicit argument #2914
Labels
bug
Something isn't working
Comments
It's worth mentioning that when the type of |
kmill
added a commit
to kmill/lean4
that referenced
this issue
Nov 20, 2023
…started with an implicit argument Fixes leanprover#2914
kmill
added a commit
to kmill/lean4
that referenced
this issue
Nov 20, 2023
…started with an implicit argument Fixes leanprover#2914
kmill
added a commit
to kmill/lean4
that referenced
this issue
Nov 20, 2023
…started with an implicit argument Fixes leanprover#2914
kmill
added a commit
to kmill/lean4
that referenced
this issue
Nov 20, 2023
…started with an implicit argument Fixes leanprover#2914
kmill
added a commit
to kmill/lean4
that referenced
this issue
Nov 20, 2023
…started with an implicit argument Fixes leanprover#2914
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Description
Can't derive DecidableEq when implicit argument is used in structure
Context
Zulip discussion: https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/deriving.20DecidableEq.20fails.20with.20implicit.20argument. The equivalent in Lean 3 succeeds. This was observed in a porting note in mathlib from February 2023 but seemingly never reported.
Steps to Reproduce
Code as above.
Expected behavior: A DecidableEq instance is generated for Foo.
Actual behavior: Fails with error:
Versions
Lean (version 4.3.0-rc2)
MacOS
Additional Information
None
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: