Skip to content

[Merged by Bors] - chore: Move the inheritance StrictOrderedSemiring α → CharZero α instance to a less obscure file#13654

Closed
YaelDillies wants to merge 2 commits intomasterfrom
move_strict_ordered_semiring_to_char_zero
Closed

[Merged by Bors] - chore: Move the inheritance StrictOrderedSemiring α → CharZero α instance to a less obscure file#13654
YaelDillies wants to merge 2 commits intomasterfrom
move_strict_ordered_semiring_to_char_zero

Conversation

@YaelDillies
Copy link
Copy Markdown
Contributor

@YaelDillies YaelDillies commented Jun 9, 2024

There is little point in avoiding to import CharZero in Algebra.Order.Ring.Defs (where StrictOrderedSemiring is defined) since it is so basic. Exiling the titular basic instance to an obscure file meant that people had trouble finding that instance (and it just happened to Eric).


Open in Gitpod

…stance to a less obscure file

There is little point in avoiding to import `CharZero` in `Algebra.Order.Ring.Defs` since it is so basic. Exiling the titular basic instance to an obscure file meant that people had trouble finding that instance (and it just happened to Eric).
@YaelDillies YaelDillies added awaiting-review t-algebra Algebra (groups, rings, fields, etc) t-order Order theory labels Jun 9, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 9, 2024

PR summary

Import changes

Dependency changes

File Base Count Head Count Change
Mathlib.Algebra.Order.Ring.CharZero 205 0 -205 (-100.00%)
Mathlib.Algebra.Order.Ring.Defs 203 204 +1 (+0.49%)
Mathlib.Algebra.Order.Ring.Cast 389 388 -1 (-0.26%)
Mathlib.Algebra.Order.Ring.Abs 391 390 -1 (-0.26%)
Mathlib.Data.Nat.Cast.Field 425 424 -1 (-0.24%)
Mathlib.Data.Nat.Choose.Bounds 427 426 -1 (-0.23%)
Mathlib.NumberTheory.Cyclotomic.Rat 2098 2097 -1 (-0.05%)

Declarations diff

No declarations were harmed in the making of this PR! 🐙

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

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

@eric-wieser
Copy link
Copy Markdown
Member

bors d+

This dependency does seem pretty lightweight; can you justify in the PR description why it should go here and not even earlier?

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 9, 2024

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

@github-actions github-actions bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Jun 9, 2024
@YaelDillies
Copy link
Copy Markdown
Contributor Author

This dependency does seem pretty lightweight; can you justify in the PR description why it should go here and not even earlier?

This is the earliest file it can go in since StrictOrderedSemiring is defined there!

@YaelDillies
Copy link
Copy Markdown
Contributor Author

bors merge

mathlib-bors bot pushed a commit that referenced this pull request Jun 9, 2024
…stance to a less obscure file (#13654)

There is little point in avoiding to import `CharZero` in `Algebra.Order.Ring.Defs` (where `StrictOrderedSemiring` is defined) since it is so basic. Exiling the titular basic instance to an obscure file meant that people had trouble finding that instance (and it just happened to Eric).
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 9, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: Move the inheritance StrictOrderedSemiring α → CharZero α instance to a less obscure file [Merged by Bors] - chore: Move the inheritance StrictOrderedSemiring α → CharZero α instance to a less obscure file Jun 9, 2024
@mathlib-bors mathlib-bors bot closed this Jun 9, 2024
@mathlib-bors mathlib-bors bot deleted the move_strict_ordered_semiring_to_char_zero branch June 9, 2024 10:41
AntoineChambert-Loir pushed a commit that referenced this pull request Jun 20, 2024
…stance to a less obscure file (#13654)

There is little point in avoiding to import `CharZero` in `Algebra.Order.Ring.Defs` (where `StrictOrderedSemiring` is defined) since it is so basic. Exiling the titular basic instance to an obscure file meant that people had trouble finding that instance (and it just happened to Eric).
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). t-algebra Algebra (groups, rings, fields, etc) t-order Order theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants