Skip to content

[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
masterfrom
mrb/order_order
Closed

mattrobball wants to merge 2 commits into
masterfrom
mrb/order_order

Conversation

@mattrobball

Copy link
Copy Markdown
Contributor

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.


Open in Gitpod

@mattrobball mattrobball added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. labels Dec 13, 2023
@mattrobball

Copy link
Copy Markdown
Contributor Author

!bench

@github-actions github-actions Bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Dec 14, 2023
@leanprover-bot

Copy link
Copy Markdown

Here are the benchmark results for commit 73944d1.
There were significant changes against commit 91ebbbe:

  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%

@kim-em

kim-em commented Dec 14, 2023

Copy link
Copy Markdown
Contributor

bors merge

@github-actions github-actions Bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Dec 14, 2023
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.
@mathlib-bors

mathlib-bors Bot commented Dec 14, 2023

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore (Order.Defs): reorder parents to simplify instances and avoid non-reducible defeq checks [Merged by Bors] - chore (Order.Defs): reorder parents to simplify instances and avoid non-reducible defeq checks Dec 14, 2023
@mathlib-bors mathlib-bors Bot closed this Dec 14, 2023
@mathlib-bors
mathlib-bors Bot deleted the mrb/order_order branch December 14, 2023 22:40
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants