-
Notifications
You must be signed in to change notification settings - Fork 546
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
typeclass inference failure #3313
Labels
bug
Something isn't working
Comments
Is this |
This was referenced May 9, 2024
Closed
github-merge-queue bot
pushed a commit
that referenced
this issue
May 14, 2024
Summary: - Take `synthPendingDepth` into account when caching TC results - Add `maxSynthPendingDepth` option with default := 2. - Add support for tracking `synthPending` failures when using `set_option diagnostics true` closes #2522 closes #3313 closes #3927 Identical to #4114 but with `maxSynthPendingDepth := 1` closes #4114 cc @semorrison
(just to clarify: the fix now is to add |
As of #5920, this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Description
An incomprehensible (to me) typeclass inference failure.
Context
The issue presented here has been minimised from an occurrence in the wild in mathlib. The Zulip discussion is here
Steps to Reproduce
The relevant part of the failing trace is
and the last line is the mystery: I don't know how to get
tryResolve
to tell me why it's failing to let?m.667
beR
.Expected behavior:
The first
#synth
works.Actual behavior: [Clear and concise description of what actually happens]
The first
#synth
fails, but starts to work again once I add the shortcut instance explicitly.Versions
Lean (version 4.6.0-rc1, x86_64-unknown-linux-gnu, commit 5cc0c3f145ff, Release)
[OS version]
Ubuntu 22.04
Additional Information
There has been more discussion on the Zulip thread since I opened this issue, which may be of some use (in particular some fingers are being pointed at discrimination trees, but I'm not competent enough to know if this is a red herring or not).
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: