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
Type class inference failure in pi type #2011
Comments
1 task
bors bot
pushed a commit
to leanprover-community/mathlib4
that referenced
this issue
Jan 7, 2023
One earlier failure was extensively discussed: - https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Performance.20issue.20with.20.60CompleteBooleanAlgebra.60/near/319019205 - https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/type.20class.20inference.20looping and is fixed as of leanprover/lean4@70a6c06, in mathlib as of the bump #1335. Another failure posted to Zulip and the Lean 4 repo - https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/type.20class.20inference.20failure.20in.20pi.20type - leanprover/lean4#2011 and is fixed as of leanprover/lean4@fedf235, in mathlib as of the bump #1397. There is one more mysterious `apply` failure, now worked around; we should track this down someday. - [x] depends on: #1397 Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
jcommelin
pushed a commit
to leanprover-community/mathlib4
that referenced
this issue
Jan 23, 2023
One earlier failure was extensively discussed: - https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Performance.20issue.20with.20.60CompleteBooleanAlgebra.60/near/319019205 - https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/type.20class.20inference.20looping and is fixed as of leanprover/lean4@70a6c06, in mathlib as of the bump #1335. Another failure posted to Zulip and the Lean 4 repo - https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/type.20class.20inference.20failure.20in.20pi.20type - leanprover/lean4#2011 and is fixed as of leanprover/lean4@fedf235, in mathlib as of the bump #1397. There is one more mysterious `apply` failure, now worked around; we should track this down someday. - [x] depends on: #1397 Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Description
This is a failure of type class inference (possibly relevant: in a pi-type), which did not occur in Lean 3.
Steps to Reproduce
Expected behavior: [What you expect to happen]
No errors. (Note that this works in Lean 3.)
Actual behavior: [What actually happens]
"failed to synthesize instance SMulZeroClass R (f x✝)" on the
SMulZeroClass.smul_zero _
Reproduces how often: [What percentage of the time does it reproduce?]
Always
Versions
Nightly 2023-01-04
Additional Information
Zulip: https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/type.20class.20inference.20failure.20in.20pi.20type
Mathlib PR where this arose: leanprover-community/mathlib4#1283
The text was updated successfully, but these errors were encountered: