-
Notifications
You must be signed in to change notification settings - Fork 335
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
chore: unify binary inf and min #18707
base: master
Are you sure you want to change the base?
Conversation
It can be fixed by adjusting the priority of instances. But leanprover/lean4#2905 causes the need to change the priority of instances of a lot of ordered algebraic typeclasses. You can also try to create shortcut instances only for |
I wasn't able to create the shortcut instances (Max on R≥0 is still deduced from some noncomputable ordered algebra instance). And I do not know enough about the typeclass inference algorithm and the classes in mathlib to play around with priorities |
…Order after removing unnecessary hypotheses
PR summary 543c823f68Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
Unify binary inf and min, as discussed in https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/.60sup.60.2F.60inf.60.20or.20.60max.60.2F.60min.60.20for.20set.20interval.20lemmas.3F.
Regressions: The instance for the product of metric spaces and some dependent instances are noncomputable now. I had the impression that noncomputability for reals is usual and unproblematic throughout mathlib, but could have a look at it otherwise.
Things that still need to be done: Optionally unify notation in some lemmas to always use min and max for total orders.