Skip to content

[Merged by Bors] - feat(Mathlib/Algebra/Order): add equivalent conditions to a ≤ b - #19166

Closed
yoh-tanimoto wants to merge 6 commits into
masterfrom
yoh-tanimoto-le_iff
Closed

yoh-tanimoto wants to merge 6 commits into
masterfrom
yoh-tanimoto-le_iff

Conversation

@yoh-tanimoto

@yoh-tanimoto yoh-tanimoto commented Nov 17, 2024 •

Copy link
Copy Markdown
Collaborator

Two theorems that give equivalent conditions to a ≤ b in terms of ε-approximation.

  • Generalize a ≤ b ↔ ∀ ε, 1 < ε → a ≤ b * ε (le_iff_forall_one_lt_le_mul) to monoids.
  • Add (hb : 0 ≤ b) : a ≤ b ↔ ∀ ε, 1 < ε → a ≤ b * ε for linearly ordered semifields.

the proofs were suggested by @fpvandoorn in this thread

motivation: I will need them in the proof of regularity of rieszContent, that will be defined after #18775

@github-actions

github-actions Bot commented Nov 17, 2024 •

Copy link
Copy Markdown

PR summary 46b1955dd9

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ le_iff_forall_one_lt_le_mul₀

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.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions github-actions Bot added the t-algebra Algebra (groups, rings, fields, etc) label Nov 17, 2024
@yoh-tanimoto yoh-tanimoto added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Nov 17, 2024
@alreadydone alreadydone added the t-order Order theory label Nov 17, 2024
@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 Nov 17, 2024
@j-loreaux j-loreaux added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 18, 2024

@fpvandoorn fpvandoorn 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.

LGTM besides the one comment

@yoh-tanimoto yoh-tanimoto added awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. and removed awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Nov 18, 2024
@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 Nov 18, 2024
Comment thread Mathlib/Algebra/Order/Field/Basic.lean Resolved
@mathlib-bors

mathlib-bors Bot commented Nov 18, 2024

Copy link
Copy Markdown
Contributor

✌️ yoh-tanimoto 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 Nov 18, 2024
@yoh-tanimoto

Copy link
Copy Markdown
Collaborator Author

bors r+

mathlib-bors Bot pushed a commit that referenced this pull request Nov 18, 2024
…9166)

Two theorems that give equivalent conditions to `a ≤ b` in terms of `ε`-approximation.
- Generalize `a ≤ b ↔ ∀ ε, 1 < ε → a ≤ b * ε` (`le_iff_forall_one_lt_le_mul`) to monoids.
- Add `(hb : 0 ≤ b) : a ≤ b ↔ ∀ ε, 1 < ε → a ≤ b * ε` for linearly ordered semifields.

the proofs were suggested by @fpvandoorn in [this thread](https://leanprover.zulipchat.com/#narrow/channel/217875-Is-there-code-for-X.3F/topic/.60le_iff_forall_pos_le_add.60.20for.20.60NNReal.60)

motivation: I will need them in the proof of regularity of `rieszContent`, that will be defined after #18775

Co-authored-by: Yoh Tanimoto <[email protected]>
@mathlib-bors

mathlib-bors Bot commented Nov 18, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(Mathlib/Algebra/Order): add equivalent conditions to a ≤ b [Merged by Bors] - feat(Mathlib/Algebra/Order): add equivalent conditions to a ≤ b Nov 18, 2024
@mathlib-bors mathlib-bors Bot closed this Nov 18, 2024
@mathlib-bors
mathlib-bors Bot deleted the yoh-tanimoto-le_iff branch November 18, 2024 18:54
TobiasLeichtfried pushed a commit that referenced this pull request Nov 21, 2024
…9166)

Two theorems that give equivalent conditions to `a ≤ b` in terms of `ε`-approximation.
- Generalize `a ≤ b ↔ ∀ ε, 1 < ε → a ≤ b * ε` (`le_iff_forall_one_lt_le_mul`) to monoids.
- Add `(hb : 0 ≤ b) : a ≤ b ↔ ∀ ε, 1 < ε → a ≤ b * ε` for linearly ordered semifields.

the proofs were suggested by @fpvandoorn in [this thread](https://leanprover.zulipchat.com/#narrow/channel/217875-Is-there-code-for-X.3F/topic/.60le_iff_forall_pos_le_add.60.20for.20.60NNReal.60)

motivation: I will need them in the proof of regularity of `rieszContent`, that will be defined after #18775

Co-authored-by: Yoh Tanimoto <[email protected]>
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.

4 participants