Skip to content

[Merged by Bors] - chore: Move Bernoulli's inequality#9456

Closed
YaelDillies wants to merge 2 commits intomasterfrom
move_bernoulli
Closed

[Merged by Bors] - chore: Move Bernoulli's inequality#9456
YaelDillies wants to merge 2 commits intomasterfrom
move_bernoulli

Conversation

@YaelDillies
Copy link
Copy Markdown
Contributor

The first versions for ordered semirings do not need to import so much but:

  • they have no obvious place to go
  • nobody needs them that early (in particular, it seems nobody needs them without also needing the ordered field version)

Part of #9411


Open in Gitpod

The first versions for ordered semirings do not need to import so much but:
* they have no obvious place to go
* nobody needs them that early (in particular, it seems nobody needs them without also needing the ordered field version)

Part of #9411
@YaelDillies YaelDillies added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. t-algebra Algebra (groups, rings, fields, etc) t-order Order theory labels Jan 5, 2024
@jcommelin
Copy link
Copy Markdown
Member

they have no obvious place to go

Why can't they just stay where they are? Is it such a bad place?

@YaelDillies
Copy link
Copy Markdown
Contributor Author

They could, but all other lemmas in Algebra.GroupPower.Lemmas are going to move to more appropriate places, and then Algebra.GroupPower.Lemmas is a weird name for the file containing them. I did consider moving them to a file called Algebra.Order.Ring.Bernoulli instead, but it would miss one of the Bernoulli inequality statements. What do you think?

@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 Jan 5, 2024
@ericrbg
Copy link
Copy Markdown
Contributor

ericrbg commented Jan 5, 2024

New files are cheap, IMO

@YaelDillies
Copy link
Copy Markdown
Contributor Author

Okay but what do I put in this new file? the three Bernoulli inequalities for rings and I leave the field one in Algebra.Order.Field.Power? all inequalities and the file imports Algebra.Order.Field.Power?

@jcommelin
Copy link
Copy Markdown
Member

Okay but what do I put in this new file? the three Bernoulli inequalities for rings and I leave the field one in Algebra.Order.Field.Power? all inequalities and the file imports Algebra.Order.Field.Power?

I would go for

the three Bernoulli inequalities for rings and I leave the field one in Algebra.Order.Field.Power

and add some comments pointing back and forth.

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 🎉

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Jan 9, 2024
mathlib-bors bot pushed a commit that referenced this pull request Jan 9, 2024
The first versions for ordered semirings do not need to import so much but:
* they have no obvious place to go
* nobody needs them that early (in particular, it seems nobody needs them without also needing the ordered field version)

Part of #9411
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jan 9, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: Move Bernoulli's inequality [Merged by Bors] - chore: Move Bernoulli's inequality Jan 9, 2024
@mathlib-bors mathlib-bors bot closed this Jan 9, 2024
@mathlib-bors mathlib-bors bot deleted the move_bernoulli branch January 9, 2024 09:24
mathlib-bors bot pushed a commit that referenced this pull request Jan 30, 2024
`Algebra.GroupPower.Lemmas` used to be a big bag of lemmas that made it there on the criterion that they needed "more imports". This was completely untrue, as all lemmas could be moved to earlier files in PRs:
- #9440
- #9442
- #9443
- #9455
- #9456
- #9457
- #9459
- #9461
- #9463
- #9466
- #9501
- #9502
- #9503
- #9505
- #9551
- #9553
- #9720
- #9739
- #9740
- #9805
- #9806
- and this one

There are several reasons for this:
* Necessary lemmas have been moved to earlier files since lemmas were dumped in `Algebra.GroupPower.Lemmas`
* In the Lean 3 → Lean 4 transition, Std acquired basic `Int` and `Nat` lemmas which let us shortcircuit the part of the algebraic order hierarchy on which the corresponding general lemmas rest
* Some proofs were overpowered
* Some earlier files were tangled and I have untangled them

This PR finishes the job by moving the last few lemmas out of `Algebra.GroupPower.Lemmas`, which is therefore deleted.
mathlib-bors bot pushed a commit that referenced this pull request Jan 30, 2024
`Algebra.GroupPower.Lemmas` used to be a big bag of lemmas that made it there on the criterion that they needed "more imports". This was completely untrue, as all lemmas could be moved to earlier files in PRs:
- #9440
- #9442
- #9443
- #9455
- #9456
- #9457
- #9459
- #9461
- #9463
- #9466
- #9501
- #9502
- #9503
- #9505
- #9551
- #9553
- #9720
- #9739
- #9740
- #9805
- #9806
- and this one

There are several reasons for this:
* Necessary lemmas have been moved to earlier files since lemmas were dumped in `Algebra.GroupPower.Lemmas`
* In the Lean 3 → Lean 4 transition, Std acquired basic `Int` and `Nat` lemmas which let us shortcircuit the part of the algebraic order hierarchy on which the corresponding general lemmas rest
* Some proofs were overpowered
* Some earlier files were tangled and I have untangled them

This PR finishes the job by moving the last few lemmas out of `Algebra.GroupPower.Lemmas`, which is therefore deleted.
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. t-algebra Algebra (groups, rings, fields, etc) t-order Order theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants