Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(RingTheory/TensorProduct): fix instance diamonds (#6162)
The optional fields to the algebra typeclasses are a trap; if you forget to provide them then you get diamonds. This change includes `example`s to verify that the issues are gone. It looks like this was contributing to the very poor performance of `RingTheory.Kahler`; while the `intAlgebra` and `natAlgebra` diamonds were probably irrelevant, the `Ring.toAddCommGroup` diamond likely caused havoc during unification.
- Loading branch information
1 parent
0bcfc2d
commit 758b7d6
Showing
2 changed files
with
37 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
758b7d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!bench