Skip to content

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

Closed
Command-Master wants to merge 7 commits intomasterfrom
CommandMaster_moveLOAMWT
Closed

[Merged by Bors] - chore: move non @[to_additive] parts of Algebra.Order.Monoid and Algebra.Order.Group to a different file#14667
Command-Master wants to merge 7 commits intomasterfrom
CommandMaster_moveLOAMWT

Conversation

@Command-Master
Copy link
Copy Markdown
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
Copy Markdown
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
@github-actions
Copy link
Copy Markdown

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>

Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
@YaelDillies
Copy link
Copy Markdown
Contributor

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

maintainer merge

@github-actions
Copy link
Copy Markdown

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

@github-actions github-actions bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jul 12, 2024
@leanprover-bot
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@jcommelin
Copy link
Copy Markdown
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 <55664973+Command-Master@users.noreply.github.com>
@mathlib-bors
Copy link
Copy Markdown
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 A reviewer has approved the changed; awaiting maintainer approval. 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