Repository navigation
Conversation
PR summary ccfee270d5Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
mathlib-bors Bot
pushed a commit
that referenced
this pull request
Apr 29, 2026
A proposed core change to the instance priority of `instSMulOfMul` breaks current mathlib because it breaks the demonstration of the instance diamond in this file; the diamond becomes better hidden by the priority change. The new example is robust to all priority changes because it explicitly uses the different instances rather than using typeclass inference to find them. In particular it will not break if `instSMulOfMul` gets priority greater than the default priority in future versions of Lean (one can check this with `local [instance 1100] instSMulOfMul` before the code below; it still works, whereas `master` fails).
Contributor
|
Pull request successfully merged into master. Build succeeded: |
mathlib-bors Bot
pushed a commit
that referenced
this pull request
Apr 29, 2026
#38703 accidentally deleted a docstring. This adds it back (it's still a useful comment).
mathlib-bors Bot
pushed a commit
that referenced
this pull request
Apr 29, 2026
#38703 accidentally deleted a docstring. This adds it back (it's still a useful comment).
eric-wieser
added a commit
to eric-wieser/mathlib4
that referenced
this pull request
Apr 29, 2026
xroblot
pushed a commit
to xroblot/mathlib4
that referenced
this pull request
May 2, 2026
…-community#38703) A proposed core change to the instance priority of `instSMulOfMul` breaks current mathlib because it breaks the demonstration of the instance diamond in this file; the diamond becomes better hidden by the priority change. The new example is robust to all priority changes because it explicitly uses the different instances rather than using typeclass inference to find them. In particular it will not break if `instSMulOfMul` gets priority greater than the default priority in future versions of Lean (one can check this with `local [instance 1100] instSMulOfMul` before the code below; it still works, whereas `master` fails).
xroblot
pushed a commit
to xroblot/mathlib4
that referenced
this pull request
May 2, 2026
leanprover-community#38703 accidentally deleted a docstring. This adds it back (it's still a useful comment).
gaetanserre
pushed a commit
to gaetanserre/mathlib4
that referenced
this pull request
May 5, 2026
…-community#38703) A proposed core change to the instance priority of `instSMulOfMul` breaks current mathlib because it breaks the demonstration of the instance diamond in this file; the diamond becomes better hidden by the priority change. The new example is robust to all priority changes because it explicitly uses the different instances rather than using typeclass inference to find them. In particular it will not break if `instSMulOfMul` gets priority greater than the default priority in future versions of Lean (one can check this with `local [instance 1100] instSMulOfMul` before the code below; it still works, whereas `master` fails).
gaetanserre
pushed a commit
to gaetanserre/mathlib4
that referenced
this pull request
May 5, 2026
leanprover-community#38703 accidentally deleted a docstring. This adds it back (it's still a useful comment).
gasparattila
pushed a commit
to gasparattila/mathlib4
that referenced
this pull request
May 9, 2026
…-community#38703) A proposed core change to the instance priority of `instSMulOfMul` breaks current mathlib because it breaks the demonstration of the instance diamond in this file; the diamond becomes better hidden by the priority change. The new example is robust to all priority changes because it explicitly uses the different instances rather than using typeclass inference to find them. In particular it will not break if `instSMulOfMul` gets priority greater than the default priority in future versions of Lean (one can check this with `local [instance 1100] instSMulOfMul` before the code below; it still works, whereas `master` fails).
gasparattila
pushed a commit
to gasparattila/mathlib4
that referenced
this pull request
May 9, 2026
leanprover-community#38703 accidentally deleted a docstring. This adds it back (it's still a useful comment).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A proposed core change to the instance priority of
instSMulOfMulbreaks current mathlib because it breaks the demonstration of the instance diamond in this file; the diamond becomes better hidden by the priority change. The new example is robust to all priority changes because it explicitly uses the different instances rather than using typeclass inference to find them. In particular it will not break ifinstSMulOfMulgets priority greater than the default priority in future versions of Lean (one can check this withlocal [instance 1100] instSMulOfMulbefore the code below; it still works, whereasmasterfails).