Skip to content

[Merged by Bors] - refactor: Deduplicate monotonicity of • lemmas - #9179

Closed
YaelDillies wants to merge 14 commits into
masterfrom
scavenge_ordered_smul
Closed

YaelDillies wants to merge 14 commits into
masterfrom
scavenge_ordered_smul

Conversation

@YaelDillies

Copy link
Copy Markdown
Contributor

Remove the duplicates introduced in #8869 by sorting the lemmas in Algebra.Order.SMul into three files:

  • Algebra.Order.Module.Defs for the order isomorphism induced by scalar multiplication by a positivity element
  • Algebra.Order.Module.Pointwise for the order properties of scalar multiplication of sets. This file is new. I credit myself for [Merged by Bors] - feat(algebra/bounds): smul of upper/lower bounds mathlib3#9078
  • Algebra.Order.Module.OrderedSMul: The material about OrderedSMul per se. Inherits the copyright header from Algebra.Order.SMul. This file should eventually be deleted.

I move each #align to the correct file. On top of that, I delete unused redundant OrderedSMul instances (they were useful in Lean 3, but not anymore) and eq_of_smul_eq_smul_of_pos_of_le/eq_of_smul_eq_smul_of_neg_of_le since those lemmas are weird and unused.


Open in Gitpod

Remove the duplicates introduced in #8869 by sorting the lemmas in `Algebra.Order.SMul` into three files:
* `Algebra.Order.Module.Defs` for the order isomorphism induced by scalar multiplication by a positivity element
* `Algebra.Order.Module.Pointwise` for the order properties of scalar multiplication of sets. This file is new. I credit myself for leanprover-community/mathlib3#9078
* `Algebra.Order.Module.OrderedSMul`: The material about `OrderedSMul` per se. Inherits the copyright header from `Algebra.Order.SMul`. This file should eventually be deleted.

I move each `#align` to the correct file. On top of that, I delete unused redundant `OrderedSMul` instances (they were useful in Lean 3, but not anymore) and `eq_of_smul_eq_smul_of_pos_of_le`/`eq_of_smul_eq_smul_of_neg_of_le` since those lemmas are weird and unused.
@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 Dec 21, 2023
Comment thread Mathlib.lean Resolved
@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 Dec 23, 2023

## TODO

This file is now mostly useless. We should try deleting `OrderedSMul`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What is it superseded by?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The PosSMulMono and friends mixins. OrderedSMul is a mixin that effectively combinesPosSMulStrictMono and PosSMulReflectLT together.

@jcommelin jcommelin left a comment

Copy link
Copy Markdown
Member

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

mathlib-bors Bot commented Dec 23, 2023

Copy link
Copy Markdown
Contributor

✌️ 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.

@ghost ghost added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Dec 23, 2023
@jcommelin jcommelin added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. and removed delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). labels Dec 23, 2023
@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 Dec 23, 2023
@YaelDillies

Copy link
Copy Markdown
Contributor Author

bors merge

mathlib-bors Bot pushed a commit that referenced this pull request Dec 23, 2023
Remove the duplicates introduced in #8869 by sorting the lemmas in `Algebra.Order.SMul` into three files:
* `Algebra.Order.Module.Defs` for the order isomorphism induced by scalar multiplication by a positivity element
* `Algebra.Order.Module.Pointwise` for the order properties of scalar multiplication of sets. This file is new. I credit myself for leanprover-community/mathlib3#9078
* `Algebra.Order.Module.OrderedSMul`: The material about `OrderedSMul` per se. Inherits the copyright header from `Algebra.Order.SMul`. This file should eventually be deleted.

I move each `#align` to the correct file. On top of that, I delete unused redundant `OrderedSMul` instances (they were useful in Lean 3, but not anymore) and `eq_of_smul_eq_smul_of_pos_of_le`/`eq_of_smul_eq_smul_of_neg_of_le` since those lemmas are weird and unused.
@mathlib-bors

mathlib-bors Bot commented Dec 23, 2023

Copy link
Copy Markdown
Contributor

Build failed:

@YaelDillies

Copy link
Copy Markdown
Contributor Author

bors merge

mathlib-bors Bot pushed a commit that referenced this pull request Dec 23, 2023
Remove the duplicates introduced in #8869 by sorting the lemmas in `Algebra.Order.SMul` into three files:
* `Algebra.Order.Module.Defs` for the order isomorphism induced by scalar multiplication by a positivity element
* `Algebra.Order.Module.Pointwise` for the order properties of scalar multiplication of sets. This file is new. I credit myself for leanprover-community/mathlib3#9078
* `Algebra.Order.Module.OrderedSMul`: The material about `OrderedSMul` per se. Inherits the copyright header from `Algebra.Order.SMul`. This file should eventually be deleted.

I move each `#align` to the correct file. On top of that, I delete unused redundant `OrderedSMul` instances (they were useful in Lean 3, but not anymore) and `eq_of_smul_eq_smul_of_pos_of_le`/`eq_of_smul_eq_smul_of_neg_of_le` since those lemmas are weird and unused.
@mathlib-bors

mathlib-bors Bot commented Dec 23, 2023

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title refactor: Deduplicate monotonicity of • lemmas [Merged by Bors] - refactor: Deduplicate monotonicity of • lemmas Dec 23, 2023
@mathlib-bors mathlib-bors Bot closed this Dec 23, 2023
@mathlib-bors
mathlib-bors Bot deleted the scavenge_ordered_smul branch December 23, 2023 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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