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
[Merged by Bors] - fix(deprecated/*): remove instances #4735
Conversation
I think lowering the instance priority for whole files is the wrong way to fix this issue. We should only lower the priority of a single instance, and understand what caused this issue in the first place. Ideally there'd also be a linter. Do you have an MWE? |
Re MWE, see the test file.
|
We deprecated these files because we realised that these things shouldn't use the typeclass system. So I think it makes sense to actually lower the priority for the entire file. |
Ok, didn't look too closely at the file names. I'm still a bit uneasy, because we'll probably still have timeouts in type-class searches that should fail (lowering the priority typically doesn't help here). If we're going to remove the files soon anyhow, then I won't bother debugging this. |
I don't think these files will go away... 😢 |
LGTM |
Co-authored-by: Mario Carneiro <di.gama@gmail.com>
bors merge |
Remove all instances constructing structures from `is_*` predicates, like for example: ```lean instance subset.ring {S : set R} [is_subring S] : ring S := ... ``` Co-Authored-By: Gabriel Ebner <gebner@gebner.org> Co-authored-by: Gabriel Ebner <gebner@gebner.org>
Pull request successfully merged into master. Build succeeded: |
Remove all instances constructing structures from
is_*
predicates, like for example:Co-Authored-By: Gabriel Ebner gebner@gebner.org