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,*): lemmas about filter.ne_bot #9234

Closed
wants to merge 4 commits into from

Conversation

urkud
Copy link
Member

@urkud urkud commented Sep 16, 2021

  • add prod.range_fst, prod.range_snd, set.range_eval;
  • add function.surjective_eval;
  • add filter.*_ne_bot and/or filter.*_ne_bot_iff lemmas for sup, supr,
    comap prod.fst _, comap prod.snd _, coprod, Coprod.

Open in Gitpod

@urkud urkud added the awaiting-review The author would like community review of the PR label Sep 16, 2021
Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

LGTM, maybe someone more familiar with filters should take a quick look.

Getting the instance from the iffs is a nice approach.

{ simp [comap_ne_bot_iff_frequently, h] }
end

@[instance] lemma comap_fst_ne_bot [nonempty β] {f : filter α} [ne_bot f] :
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason why you are using @[instance] lemma instead of just instance, here and in most lemmas below? (but not in Coprod_ne_bot, surprisingly).

Copy link
Member Author

Choose a reason for hiding this comment

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

With @[instance] lemma, the lemma is not protected. For Coprod_ne_bot this is a typo.

@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 Sep 17, 2021
@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 Sep 17, 2021
@sgouezel
Copy link
Collaborator

bors d+

@bors
Copy link

bors bot commented Sep 17, 2021

✌️ urkud can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@github-actions github-actions bot added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Sep 17, 2021
@urkud
Copy link
Member Author

urkud commented Sep 18, 2021

bors merge

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Sep 18, 2021
bors bot pushed a commit that referenced this pull request Sep 18, 2021
* add `prod.range_fst`, `prod.range_snd`, `set.range_eval`;
* add `function.surjective_eval`;
* add `filter.*_ne_bot` and/or `filter.*_ne_bot_iff` lemmas for `sup`, `supr`,
  `comap prod.fst _`, `comap prod.snd _`, `coprod`, `Coprod`.
@bors
Copy link

bors bot commented Sep 18, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(order/filter,*): lemmas about filter.ne_bot [Merged by Bors] - feat(order/filter,*): lemmas about filter.ne_bot Sep 18, 2021
@bors bors bot closed this Sep 18, 2021
@bors bors bot deleted the filter-ne-bot branch September 18, 2021 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions. 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