Repository navigation
[Merged by Bors] - chore (Order.Defs): reorder parents to simplify instances and avoid non-reducible defeq checks - #9034
Closed
mattrobball wants to merge 2 commits into
Closed
mattrobball wants to merge 2 commits into
mattrobball wants to merge 2 commits into
Conversation
Contributor
Author
|
!bench |
|
Here are the benchmark results for commit 73944d1. Benchmark Metric Change
================================================================================
- ~Mathlib.Analysis.NormedSpace.Multilinear.Basic instructions 2.6%
- ~Mathlib.CategoryTheory.Abelian.ProjectiveResolution instructions 3.0%
+ ~Mathlib.CategoryTheory.Monoidal.Mon_ instructions -3.6%
- ~Mathlib.LinearAlgebra.FinsuppVectorSpace instructions 5.2%
+ ~Mathlib.RepresentationTheory.Action.Basic instructions -4.1%
- ~Mathlib.RepresentationTheory.GroupCohomology.Resolution instructions 2.8% |
Contributor
|
bors merge |
mathlib-bors Bot
pushed a commit
that referenced
this pull request
Dec 14, 2023
…on-reducible defeq checks (#9034) Currently, `OrderDual.orderedCommMonoid` unifies with `LinearOrderedAddCommMonoid.toOrderedAddCommMonoid` at instance transparency because of an extra eta expansion in its definition. The provided instances can be synthesized by Lean and deleted. This removes the extraneous eta expansion but causes defeq to fail at instance transparency. To fix this, we reorder the parents of `LinearOrderedAddCommMonoid`. We also do this for the non-`Add` version.
Contributor
|
Pull request successfully merged into master. Build succeeded: |
awueth
pushed a commit
that referenced
this pull request
Dec 19, 2023
…on-reducible defeq checks (#9034) Currently, `OrderDual.orderedCommMonoid` unifies with `LinearOrderedAddCommMonoid.toOrderedAddCommMonoid` at instance transparency because of an extra eta expansion in its definition. The provided instances can be synthesized by Lean and deleted. This removes the extraneous eta expansion but causes defeq to fail at instance transparency. To fix this, we reorder the parents of `LinearOrderedAddCommMonoid`. We also do this for the non-`Add` version.
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.
Currently,
OrderDual.orderedCommMonoidunifies withLinearOrderedAddCommMonoid.toOrderedAddCommMonoidat instance transparency because of an extra eta expansion in its definition. The provided instances can be synthesized by Lean and deleted. This removes the extraneous eta expansion but causes defeq to fail at instance transparency. To fix this, we reorder the parents ofLinearOrderedAddCommMonoid. We also do this for the non-Addversion.