Skip to content

[Merged by Bors] - chore (GCDMonoid.Nat): avoid bundled ordered algebra and move Init.Data.Int.Order#15152

Closed
mattrobball wants to merge 19 commits intomasterfrom
mrb/disconnect_gcdmonoid_nat
Closed

[Merged by Bors] - chore (GCDMonoid.Nat): avoid bundled ordered algebra and move Init.Data.Int.Order#15152
mattrobball wants to merge 19 commits intomasterfrom
mrb/disconnect_gcdmonoid_nat

Conversation

@mattrobball
Copy link
Copy Markdown
Contributor

@mattrobball mattrobball commented Jul 26, 2024

We swap out some bundled ordered algebra API calls for native Nat and Int ones. We also add one. This allows us to avoid needing bundled ordered algebra in this file and pushes its import further downstream. Since it touches Init.Data.Int.Order, we rename it Data.Int.Order.Basic.


Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 26, 2024

PR summary 7f06929087

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Algebra.GCDMonoid.Nat 413 399 -14 (-3.39%)
Import changes for all files
Files Import difference
Mathlib.Init.Data.Int.Order -35
Mathlib.Algebra.GCDMonoid.Nat -14
Mathlib.Data.Int.Order.Basic 35

Declarations diff

+ mul_nonneg_iff
+ mul_nonneg_of_nonneg_or_nonpos
+ nonneg_or_nonpos_of_mul_nonneg

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>

The doc-module for script/declarations_diff.sh contains some details about this script.

@ghost ghost added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Jul 26, 2024
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 29, 2024
@ghost ghost removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Aug 9, 2024
@ghost
Copy link
Copy Markdown

ghost commented Aug 9, 2024

@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 9, 2024
@joneugster joneugster added the t-algebra Algebra (groups, rings, fields, etc) label Aug 14, 2024
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 15, 2024
@ghost ghost added merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Aug 16, 2024
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 19, 2024
@mattrobball mattrobball changed the title chore (GCDMonoid.Nat): avoid bundled ordered algebra chore (GCDMonoid.Nat): avoid bundled ordered algebra and move Init.Data.Int.Order Aug 19, 2024
Copy link
Copy Markdown
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🎉

If CI passes, please remove the label awaiting-CI and merge this yourself, by adding a comment bors r+.

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Aug 22, 2024

✌️ mattrobball can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Aug 22, 2024
@mattrobball
Copy link
Copy Markdown
Contributor Author

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Aug 22, 2024
mathlib-bors bot pushed a commit that referenced this pull request Aug 22, 2024
…ata.Int.Order` (#15152)

We swap out some bundled ordered algebra API calls for native `Nat` and `Int` ones. We also add one. This allows us to avoid needing bundled ordered algebra in this file and pushes its import further downstream. Since it touches `Init.Data.Int.Order`, we rename it `Data.Int.Order.Basic`. 



Co-authored-by: Matthew Robert Ballard <100034030+mattrobball@users.noreply.github.com>
Co-authored-by: Johan Commelin <johan@commelin.net>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Aug 22, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore (GCDMonoid.Nat): avoid bundled ordered algebra and move Init.Data.Int.Order [Merged by Bors] - chore (GCDMonoid.Nat): avoid bundled ordered algebra and move Init.Data.Int.Order Aug 22, 2024
@mathlib-bors mathlib-bors bot closed this Aug 22, 2024
@mathlib-bors mathlib-bors bot deleted the mrb/disconnect_gcdmonoid_nat branch August 22, 2024 14:48
bjoernkjoshanssen pushed a commit that referenced this pull request Sep 9, 2024
…ata.Int.Order` (#15152)

We swap out some bundled ordered algebra API calls for native `Nat` and `Int` ones. We also add one. This allows us to avoid needing bundled ordered algebra in this file and pushes its import further downstream. Since it touches `Init.Data.Int.Order`, we rename it `Data.Int.Order.Basic`. 



Co-authored-by: Matthew Robert Ballard <100034030+mattrobball@users.noreply.github.com>
Co-authored-by: Johan Commelin <johan@commelin.net>
bjoernkjoshanssen pushed a commit that referenced this pull request Sep 9, 2024
…ata.Int.Order` (#15152)

We swap out some bundled ordered algebra API calls for native `Nat` and `Int` ones. We also add one. This allows us to avoid needing bundled ordered algebra in this file and pushes its import further downstream. Since it touches `Init.Data.Int.Order`, we rename it `Data.Int.Order.Basic`. 



Co-authored-by: Matthew Robert Ballard <100034030+mattrobball@users.noreply.github.com>
Co-authored-by: Johan Commelin <johan@commelin.net>
bjoernkjoshanssen pushed a commit that referenced this pull request Sep 12, 2024
…ata.Int.Order` (#15152)

We swap out some bundled ordered algebra API calls for native `Nat` and `Int` ones. We also add one. This allows us to avoid needing bundled ordered algebra in this file and pushes its import further downstream. Since it touches `Init.Data.Int.Order`, we rename it `Data.Int.Order.Basic`. 



Co-authored-by: Matthew Robert Ballard <100034030+mattrobball@users.noreply.github.com>
Co-authored-by: Johan Commelin <johan@commelin.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). 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.

3 participants