Skip to content
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

[Merged by Bors] - chore: move non @[to_additive] parts of Algebra.Order.Monoid and Algebra.Order.Group to a different file #14667

Closed
wants to merge 7 commits into from

Conversation

Command-Master
Copy link
Collaborator

Following the discussion on #14598, move LinearOrderedAddCommMonoidWithTop, LinearOrderedAddCommGroupWithTop, and associated theorems to Algebra.Order.AddGroupWithTop.


Open in Gitpod

@Command-Master Command-Master added the t-algebra Algebra (groups, rings, fields, etc) label Jul 12, 2024
@Command-Master
Copy link
Collaborator Author

!bench

@github-actions github-actions bot added the new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! label Jul 12, 2024
@Command-Master Command-Master changed the title chore: move non @[toadditive] parts of Algebra.Order.Monoid and Algebra.Order.Group to a different file chore: move non @[to_additive] parts of Algebra.Order.Monoid and Algebra.Order.Group to a different file Jul 12, 2024
Copy link

github-actions bot commented Jul 12, 2024

PR summary 43f21e04c8

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Algebra.Order.Group.WithTop 202 0 -202 (-100.00%)
Mathlib.Algebra.Order.Monoid.WithTop 198 181 -17 (-8.59%)
Mathlib.Algebra.PUnitInstances.Order 345 358 +13 (+3.77%)
Mathlib.Data.Nat.Cast.WithTop 235 239 +4 (+1.70%)
Mathlib.Algebra.Order.Sub.WithTop 200 203 +3 (+1.50%)
Mathlib.Algebra.CharZero.Lemmas 408 412 +4 (+0.98%)
Mathlib.Algebra.Order.GroupWithZero.Canonical 352 355 +3 (+0.85%)
Mathlib.Data.Finset.Fold 411 414 +3 (+0.73%)
Mathlib.Algebra.Order.Monoid.Defs 180 179 -1 (-0.56%)
Mathlib.Algebra.Order.Group.Defs 183 182 -1 (-0.55%)
Import changes for all files
Files Import difference
Too many changes (3112)!

Declarations diff

++-- coe_eq_ofNat
++-- coe_nat
++-- coe_ofNat
++-- map_add
++-- ofNat_eq_coe

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

@YaelDillies
Copy link
Collaborator

Thanks! I think that's a pretty good split, and the new file is not too big.

maintainer merge

Copy link

🚀 Pull request has been placed on the maintainer queue by YaelDillies.

@leanprover-bot
Copy link
Collaborator

Here are the benchmark results for commit e31785e.
There were significant changes against commit 0679e1b:

  Benchmark                               Metric         Change
  =============================================================
+ ~Mathlib.Algebra.Order.Monoid.WithTop   instructions   -77.1%
- ~Mathlib.CategoryTheory.Monoidal.Mon_   instructions     4.8%

@YaelDillies
Copy link
Collaborator

Hmm, that performance in CategoryTheory.Monoidal.Mon_ is a bit strange

@jcommelin
Copy link
Member

But not too problematic, I think.

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Jul 12, 2024
mathlib-bors bot pushed a commit that referenced this pull request Jul 12, 2024
…`Algebra.Order.Group` to a different file (#14667)

Following the discussion on #14598, move `LinearOrderedAddCommMonoidWithTop`, `LinearOrderedAddCommGroupWithTop`, and associated theorems to `Algebra.Order.AddGroupWithTop`.



Co-authored-by: Daniel Weber <[email protected]>
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jul 12, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: move non @[to_additive] parts of Algebra.Order.Monoid and Algebra.Order.Group to a different file [Merged by Bors] - chore: move non @[to_additive] parts of Algebra.Order.Monoid and Algebra.Order.Group to a different file Jul 12, 2024
@mathlib-bors mathlib-bors bot closed this Jul 12, 2024
@mathlib-bors mathlib-bors bot deleted the CommandMaster_moveLOAMWT branch July 12, 2024 08:44
@adomani adomani mentioned this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer-merge new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants