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] - feat(order/filter/at_top_bot): use weaker TC assumptions, add lemmas #14105

Closed
wants to merge 6 commits into from

Conversation

urkud
Copy link
Member

@urkud urkud commented May 12, 2022

  • add filter.eventually_gt_of_tendsto_at_top,
    filter.eventually_ne_at_bot,
    filter.eventually_lt_of_tendsto_at_bot;

  • generalize filter.eventually_ne_of_tendsto_at_top and
    filter.eventually_ne_of_tendsto_at_bot from nontrivial ordered
    (semi)rings to preorders with no maximal/minimal elements.


Open in Gitpod

* add `filter.eventually_gt_of_tendsto_at_top`,
  `filter.eventually_ne_at_bot`,
  `filter.eventually_lt_of_tendsto_at_bot`;

* generalize `filter.eventually_ne_of_tendsto_at_top` and
  `filter.eventually_ne_of_tendsto_at_bot` from nontrivial ordered
  (semi)rings to preorders with no maximal/minimal elements.
@urkud urkud added awaiting-review The author would like community review of the PR awaiting-CI The author would like to see what CI has to say before doing more work. labels May 12, 2022
@github-actions github-actions bot removed the awaiting-CI The author would like to see what CI has to say before doing more work. label May 12, 2022
Copy link
Collaborator

@b-mehta b-mehta left a comment

Choose a reason for hiding this comment

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

I use this pattern a lot when working with tendsto, so I think these lemmas would be very valuable to have

(eventually_gt_at_top a).mono (λ x hx, hx.ne.symm)
(eventually_gt_at_top a).mono $ λ x, ne_of_gt

lemma eventually_gt_of_tendsto_at_top [preorder β] [no_max_order β] {f : α → β} {l : filter α}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it would be useful to have the eventually_ge version of this too

(eventually_gt_at_top a).mono (λ x hx, hx.ne.symm)
(eventually_gt_at_top a).mono $ λ x, ne_of_gt

lemma eventually_gt_of_tendsto_at_top [preorder β] [no_max_order β] {f : α → β} {l : filter α}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps tendsto.eventually_gt_at_top to allow dot notation?

Copy link
Member Author

Choose a reason for hiding this comment

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

Feel free to adopt this PR. I usually use h.eventually (eventually_??_at_top _). I've just noticed that we have lemmas that assume [ordered_ring R] for no reason.

@urkud urkud added the please-adopt This PR/issue may have been abandoned by the original contributor. You are welcome to take it over. label May 12, 2022
@b-mehta b-mehta removed the please-adopt This PR/issue may have been abandoned by the original contributor. You are welcome to take it over. label May 12, 2022
@urkud
Copy link
Member Author

urkud commented May 14, 2022

@b-mehta I fixed compile errors.

@b-mehta
Copy link
Collaborator

b-mehta commented May 14, 2022

Thanks for that @urkud!

@urkud
Copy link
Member Author

urkud commented May 15, 2022

@b-mehta Should we merge it now or wait for a review from one more maintainer?

@b-mehta
Copy link
Collaborator

b-mehta commented May 15, 2022

I think we should wait for another maintainer to take a look. Perhaps @RemyDegenne?

@RemyDegenne
Copy link
Collaborator

LGTM
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 May 16, 2022
bors bot pushed a commit that referenced this pull request May 16, 2022
…14105)

* add `filter.eventually_gt_of_tendsto_at_top`,
  `filter.eventually_ne_at_bot`,
  `filter.eventually_lt_of_tendsto_at_bot`;

* generalize `filter.eventually_ne_of_tendsto_at_top` and
  `filter.eventually_ne_of_tendsto_at_bot` from nontrivial ordered
  (semi)rings to preorders with no maximal/minimal elements.



Co-authored-by: Bhavik Mehta <bm489@cam.ac.uk>
Co-authored-by: Bhavik Mehta <bhavikmehta8@gmail.com>
@bors
Copy link

bors bot commented May 16, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(order/filter/at_top_bot): use weaker TC assumptions, add lemmas [Merged by Bors] - feat(order/filter/at_top_bot): use weaker TC assumptions, add lemmas May 16, 2022
@bors bors bot closed this May 16, 2022
@bors bors bot deleted the YK-ev-ne-at-top branch May 16, 2022 15:52
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

3 participants