Skip to content

[Merged by Bors] - feat: forward-port leanprover-community/mathlib#18517#2543

Closed
mans0954 wants to merge 7 commits intomasterfrom
mans0954/directed-on-insert
Closed

[Merged by Bors] - feat: forward-port leanprover-community/mathlib#18517#2543
mans0954 wants to merge 7 commits intomasterfrom
mans0954/directed-on-insert

Conversation

@mans0954
Copy link
Copy Markdown
Collaborator

@mans0954 mans0954 commented Feb 28, 2023

Matches leanprover-community/mathlib3#18517

This result is required in #2508.


Open in Gitpod

We prove an insert result for directed sets when the relation is reflexive. This is then used to show that a Scott continuous function is monotone.

@kim-em kim-em added awaiting-review mathlib3-pair This PR is a forward-port of a mathlib3 PR or part of one, either under review or recently merged awaiting-author A reviewer has asked the author a question or requested changes. and removed awaiting-review labels Mar 29, 2023
bors bot pushed a commit to leanprover-community/mathlib3 that referenced this pull request Apr 20, 2023
We prove an insert result for directed sets when the relation is reflexive. This is then used to show that a Scott continuous function is monotone.

This result is required in the [construction of the Scott topology on a preorder](leanprover-community/mathlib4#2508) (see also #18448).

Holding PR for mathlib4: leanprover-community/mathlib4#2543



Co-authored-by: Christopher Hoskin <mans0954@users.noreply.github.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@mans0954 mans0954 force-pushed the mans0954/directed-on-insert branch from 91a801a to a424a69 Compare April 21, 2023 05:31
This one-line change lets us forward-port this other PR simultaneously.
@YaelDillies YaelDillies added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Apr 21, 2023
@eric-wieser
Copy link
Copy Markdown
Member

leanprover-community/mathlib3#8475 isn't through mathport yet. Are you sure this ports it?


! This file was ported from Lean 3 source module order.directed
! leanprover-community/mathlib commit 18a5306c091183ac90884daa9373fa3b178e8607
! leanprover-community/mathlib commit e8cf0cfec5fcab9baf46dc17d30c5e22048468be
Copy link
Copy Markdown
Member

@eric-wieser eric-wieser Apr 21, 2023

Choose a reason for hiding this comment

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

Are you sure you don't mean leanprover-community/mathlib3@485b24e?

Copy link
Copy Markdown
Collaborator Author

@mans0954 mans0954 Apr 22, 2023

Choose a reason for hiding this comment

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

@eric-wieser The diff here says:

-! leanprover-community/mathlib commit 485b24ed47b1b7978d38a1e445158c6224c3f42c
+! leanprover-community/mathlib commit e8cf0cfec5fcab9baf46dc17d30c5e22048468be

So I assumed e8cf0cfec5fcab9baf46dc17d30c5e22048468be was the new value to use?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I was the one updating the SHA to this. It should be the right value.

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.

I backed this change out anyway because it's less confusing to port it in #3588.

@mans0954: the dashboard presents multiple diffs; an overall diff, and a diff per commit. I was confused because your PR title suggested this was for just one commit. In general, prefer porting one commit at a time because it's easier for reviewers to diff against the mathport output in the dashboard, and gives a cleaner git history.

@YaelDillies
Copy link
Copy Markdown
Contributor

leanprover-community/mathlib#8475 isn't through mathport yet. Are you sure this ports it?

It's a one-line change, so yes.

@YaelDillies YaelDillies added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Apr 22, 2023
It's easier to revert this change than come up with a sensible title for this PR. We can forward-port this single line along with the rest of leanprover-community/mathlib3#8475
@eric-wieser eric-wieser changed the title feat(order/directed): port Insert for directed sets feat: forward-port leanprover-community/mathlib#18517 Apr 23, 2023
@eric-wieser
Copy link
Copy Markdown
Member

bors d+

@bors
Copy link
Copy Markdown

bors bot commented Apr 23, 2023

✌️ mans0954 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 This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Apr 23, 2023
@eric-wieser eric-wieser added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Apr 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 Apr 24, 2023
@mans0954
Copy link
Copy Markdown
Collaborator Author

bors r+

bors bot pushed a commit that referenced this pull request Apr 24, 2023
Matches leanprover-community/mathlib3#18517

This result is required in #2508.



Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@bors
Copy link
Copy Markdown

bors bot commented Apr 24, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat: forward-port leanprover-community/mathlib#18517 [Merged by Bors] - feat: forward-port leanprover-community/mathlib#18517 Apr 24, 2023
@bors bors bot closed this Apr 24, 2023
@bors bors bot deleted the mans0954/directed-on-insert branch April 24, 2023 05:58
kim-em pushed a commit that referenced this pull request May 10, 2023
Matches leanprover-community/mathlib3#18517

This result is required in #2508.



Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
hrmacbeth pushed a commit that referenced this pull request May 10, 2023
Matches leanprover-community/mathlib3#18517

This result is required in #2508.



Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
hrmacbeth pushed a commit that referenced this pull request May 11, 2023
Matches leanprover-community/mathlib3#18517

This result is required in #2508.



Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
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). mathlib3-pair This PR is a forward-port of a mathlib3 PR or part of one, either under review or recently merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants