Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - chore(algebra/ordered_field): cleanup #3723

Closed
wants to merge 5 commits into from

Conversation

urkud
Copy link
Member

@urkud urkud commented Aug 7, 2020

  • drop mul_zero_lt_mul_inv_of_pos and mul_zero_lt_mul_inv_of_neg;
  • add iff lemmas one_div_pos/neg/nonneg/nonpos replacing old
    implications;
  • some lemmas now assume instead of <;
  • rename mul_lt_of_gt_div_of_neg to mul_lt_of_neg_of_div_lt
    replacing > by <.
  • add mul_sub_mul_div_mul_neg_iff and mul_sub_mul_div_mul_nonpos_iff,
    generate implications using alias;
  • drop div_pos_of_pos_of_pos (use div_pos) and
    div_nonneg_of_nonneg_of_pos (use div_nonneg);
  • replace div_nonpos_of_nonpos_of_pos with
    div_nonpos_of_nonpos_of_nonneg;
  • replace div_nonpos_of_nonneg_of_neg with
    div_nonpos_of_nonneg_of_nonpos;
  • replace div_mul_le_div_mul_of_div_le_div_pos and
    div_mul_le_div_mul_of_div_le_div_pos' with
    div_mul_le_div_mul_of_div_le_div_nonneg; I failed to find
    in the history why we had two equivalent lemmas.
  • merge le_mul_of_ge_one_right and le_mul_of_one_le_right' into
    le_mul_of_one_le_right, rename old le_mul_of_one_le_right to
    le_mul_of_one_le_right';
  • ditto with le_mul_of_ge_one_left, le_mul_of_one_le_left, and
    le_mul_of_one_le_left';
  • ditto with lt_mul_of_gt_one_right, lt_mul_of_one_lt_right, and
    lt_mul_of_one_lt_right';
  • rename div_lt_of_mul_lt_of_pos to div_lt_of_pos_of_lt_mul;
  • rename div_lt_of_mul_gt_of_neg to div_lt_of_neg_of_mul_lt;
  • rename mul_le_of_div_le_of_neg to mul_le_of_neg_of_div_le;
  • rename div_le_of_mul_le_of_neg to div_le_of_neg_of_mul_le;
  • rename div_lt_div_of_lt_of_pos to div_lt_div_of_pos_of_lt, swap
    arguments;
  • rename div_le_div_of_le_of_pos to div_le_div_of_pos_of_le, swap
    arguments;
  • rename div_lt_div_of_lt_of_neg to div_lt_div_of_neg_of_lt, swap
    arguments;
  • rename div_le_div_of_le_of_neg to div_le_div_of_neg_of_le, swap
    arguments;
  • rename one_div_lt_one_div_of_lt_of_neg to
    one_div_lt_one_div_of_neg_of_lt;
  • rename one_div_le_one_div_of_le_of_neg to
    one_div_le_one_div_of_neg_of_le;
  • rename le_of_one_div_le_one_div_of_neg to
    le_of_neg_of_one_div_le_one_div;
  • rename lt_of_one_div_lt_one_div_of_neg to
    lt_of_neg_of_one_div_lt_one_div;
  • rename one_div_le_of_one_div_le_of_pos to
    one_div_le_of_pos_of_one_div_le;
  • rename one_div_le_of_one_div_le_of_neg to
    one_div_le_of_neg_of_one_div_le.

* drop `mul_zero_lt_mul_inv_of_pos` and `mul_zero_lt_mul_inv_of_neg`;
* add `iff` lemmas `one_div_pos/neg/nonneg/nonpos` replacing old
  implications;
* some lemmas now assume `≤` instead of `<`;
* rename `mul_lt_of_gt_div_of_neg` to `mul_ot_of_div_lt_of_neg`
  replacing `>` by `<`.
* add `mul_sub_mul_div_mul_neg_iff` and `mul_sub_mul_div_mul_nonpos_iff`,
  generate implications using `alias`;
* drop `div_pos_of_pos_of_pos` (use `div_pos`) and
  `div_nonneg_of_nonneg_of_pos` (use `div_nonneg`);
* replace `div_nonpos_of_nonpos_of_pos` with
  `div_nonpos_of_nonpos_of_nonneg`;
* replace `div_nonpos_of_nonneg_of_neg` with
  `div_nonpos_of_nonneg_of_nonpos`;
* replace `div_mul_le_div_mul_of_div_le_div_pos` and
  `div_mul_le_div_mul_of_div_le_div_pos'` with
  `div_mul_le_div_mul_of_div_le_div_nonneg`; I failed to find
  in the history why we had two equivalent lemmas.
@urkud urkud added the awaiting-review The author would like community review of the PR label Aug 7, 2020
src/algebra/ordered_field.lean Outdated Show resolved Hide resolved
src/algebra/ordered_field.lean Outdated Show resolved Hide resolved
src/algebra/ordered_field.lean Outdated Show resolved Hide resolved
src/algebra/ordered_field.lean Outdated Show resolved Hide resolved
src/algebra/ordered_field.lean Outdated Show resolved Hide resolved
@sgouezel sgouezel added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Aug 9, 2020
urkud and others added 3 commits August 10, 2020 04:12
Co-authored-by: sgouezel <sebastien.gouezel@univ-rennes1.fr>
* merge `le_mul_of_ge_one_right` and `le_mul_of_one_le_right'` into
  `le_mul_of_one_le_right`, rename old `le_mul_of_one_le_right` to
  `le_mul_of_one_le_right'`;
* ditto with `le_mul_of_ge_one_left`, `le_mul_of_one_le_left', and
  `le_mul_of_one_le_left'`;
* ditto with `lt_mul_of_gt_one_right`, `lt_mul_of_one_lt_right`, and
  `lt_mul_of_one_lt_right'`;
* rename `mul_lt_of_div_lt_of_neg` to `mul_lt_of_neg_of_div_lt`;
* rename `div_lt_of_mul_lt_of_pos` to `div_lt_of_pos_of_lt_mul`;
* rename `div_lt_of_mul_gt_of_neg` to `div_lt_of_neg_of_mul_lt`;
@urkud urkud added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Aug 10, 2020
* rename `mul_le_of_div_le_of_neg` to `mul_le_of_neg_of_div_le`;
* rename `div_le_of_mul_le_of_neg` to `div_le_of_neg_of_mul_le`;
* rename `div_lt_div_of_lt_of_pos` to `div_lt_div_of_pos_of_lt`, swap
  arguments;
* rename `div_le_div_of_le_of_pos` to `div_le_div_of_pos_of_le`, swap
  arguments;
* rename `div_lt_div_of_lt_of_neg` to `div_lt_div_of_neg_of_lt`, swap
  arguments;
* rename `div_le_div_of_le_of_neg` to `div_le_div_of_neg_of_le`, swap
  arguments;
* rename `one_div_lt_one_div_of_lt_of_neg` to
  `one_div_lt_one_div_of_neg_of_lt`;
* rename `one_div_le_one_div_of_le_of_neg` to
  `one_div_le_one_div_of_neg_of_le`;
* rename `le_of_one_div_le_one_div_of_neg` to
  `le_of_neg_of_one_div_le_one_div`;
* rename `lt_of_one_div_lt_one_div_of_neg` to
  `lt_of_neg_of_one_div_lt_one_div`;
* rename `one_div_le_of_one_div_le_of_pos` to
  `one_div_le_of_pos_of_one_div_le`;
* rename `one_div_le_of_one_div_le_of_neg` to
  `one_div_le_of_neg_of_one_div_le`;
@sgouezel
Copy link
Collaborator

bors r+

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Aug 10, 2020
bors bot pushed a commit that referenced this pull request Aug 10, 2020
* drop `mul_zero_lt_mul_inv_of_pos` and `mul_zero_lt_mul_inv_of_neg`;
* add `iff` lemmas `one_div_pos/neg/nonneg/nonpos` replacing old
  implications;
* some lemmas now assume `≤` instead of `<`;
* rename `mul_lt_of_gt_div_of_neg` to `mul_lt_of_neg_of_div_lt`
  replacing `>` by `<`.
* add `mul_sub_mul_div_mul_neg_iff` and `mul_sub_mul_div_mul_nonpos_iff`,
  generate implications using `alias`;
* drop `div_pos_of_pos_of_pos` (use `div_pos`) and
  `div_nonneg_of_nonneg_of_pos` (use `div_nonneg`);
* replace `div_nonpos_of_nonpos_of_pos` with
  `div_nonpos_of_nonpos_of_nonneg`;
* replace `div_nonpos_of_nonneg_of_neg` with
  `div_nonpos_of_nonneg_of_nonpos`;
* replace `div_mul_le_div_mul_of_div_le_div_pos` and
  `div_mul_le_div_mul_of_div_le_div_pos'` with
  `div_mul_le_div_mul_of_div_le_div_nonneg`; I failed to find
  in the history why we had two equivalent lemmas.
* merge `le_mul_of_ge_one_right` and `le_mul_of_one_le_right'` into
  `le_mul_of_one_le_right`, rename old `le_mul_of_one_le_right` to
  `le_mul_of_one_le_right'`;
* ditto with `le_mul_of_ge_one_left`, `le_mul_of_one_le_left`, and
  `le_mul_of_one_le_left'`;
* ditto with `lt_mul_of_gt_one_right`, `lt_mul_of_one_lt_right`, and
  `lt_mul_of_one_lt_right'`;
* rename `div_lt_of_mul_lt_of_pos` to `div_lt_of_pos_of_lt_mul`;
* rename `div_lt_of_mul_gt_of_neg` to `div_lt_of_neg_of_mul_lt`;
* rename `mul_le_of_div_le_of_neg` to `mul_le_of_neg_of_div_le`;
* rename `div_le_of_mul_le_of_neg` to `div_le_of_neg_of_mul_le`;
* rename `div_lt_div_of_lt_of_pos` to `div_lt_div_of_pos_of_lt`, swap
  arguments;
* rename `div_le_div_of_le_of_pos` to `div_le_div_of_pos_of_le`, swap
  arguments;
* rename `div_lt_div_of_lt_of_neg` to `div_lt_div_of_neg_of_lt`, swap
  arguments;
* rename `div_le_div_of_le_of_neg` to `div_le_div_of_neg_of_le`, swap
  arguments;
* rename `one_div_lt_one_div_of_lt_of_neg` to
  `one_div_lt_one_div_of_neg_of_lt`;
* rename `one_div_le_one_div_of_le_of_neg` to
  `one_div_le_one_div_of_neg_of_le`;
* rename `le_of_one_div_le_one_div_of_neg` to
  `le_of_neg_of_one_div_le_one_div`;
* rename `lt_of_one_div_lt_one_div_of_neg` to
  `lt_of_neg_of_one_div_lt_one_div`;
* rename `one_div_le_of_one_div_le_of_pos` to
  `one_div_le_of_pos_of_one_div_le`;
* rename `one_div_le_of_one_div_le_of_neg` to
  `one_div_le_of_neg_of_one_div_le`.
@bors
Copy link

bors bot commented Aug 10, 2020

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(algebra/ordered_field): cleanup [Merged by Bors] - chore(algebra/ordered_field): cleanup Aug 10, 2020
@bors bors bot closed this Aug 10, 2020
@bors bors bot deleted the ordered-field branch August 10, 2020 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants