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(data/set/pairwise): split #17880

Closed
wants to merge 25 commits into from

Conversation

FR-vdash-bot
Copy link
Collaborator

@FR-vdash-bot FR-vdash-bot commented Dec 9, 2022

This PR will split most of the lemmas in data.set.pairwise which are independent of the data.set.lattice. It makes a lot of files no longer depend on data.set.lattice.

Zulip

mathlib4 PR: leanprover-community/mathlib4#1184


Open in Gitpod

`finset.disj_Union` is not used in most of mathlib. This PR move most of related things into a new file.
This PR also move other things about `set.pairwise` in `data.finset.basic` into `data.finset.pairwise`.
@FR-vdash-bot FR-vdash-bot 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. blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. labels Dec 9, 2022
@FR-vdash-bot FR-vdash-bot added the WIP Work in progress label Dec 9, 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 Dec 9, 2022
@FR-vdash-bot FR-vdash-bot removed the WIP Work in progress label Dec 10, 2022
bors bot pushed a commit that referenced this pull request Dec 21, 2022
This PR moves some lemmas in `data.set.lattice` to `data.set.basic`, `data.set.image`, and `data.set.function`. They are basic enough and do not depend on the set lattice. This also helps #17880 to split `data.set.pairwise` and reduce the dependency of many files.

mathlib4 PR: leanprover-community/mathlib4#1109
@mathlib-dependent-issues-bot mathlib-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Dec 21, 2022
@mathlib-dependent-issues-bot
Copy link
Collaborator

This PR/issue depends on:

Copy link
Collaborator

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

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

Thanks. This is a sensible split. Could you fix the conflict?

For delegation,
maintainer merge

@YaelDillies
Copy link
Collaborator

The conflict vanished.

maintainer merge

@github-actions
Copy link

🚀 Pull request has been placed on the maintainer queue by YaelDillies.

Copy link
Collaborator

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

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

Thanks!

bors r+

@leanprover-community-bot-assistant leanprover-community-bot-assistant 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 Mar 24, 2023
bors bot pushed a commit that referenced this pull request Mar 24, 2023
This PR will split most of the lemmas in `data.set.pairwise` which are independent of the `data.set.lattice`. It makes a lot of files no longer depend on `data.set.lattice`.

[Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/port.20progress/near/315072418)

mathlib4 PR: leanprover-community/mathlib4#1184



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

bors bot commented Mar 24, 2023

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Mar 24, 2023
This PR will split most of the lemmas in `data.set.pairwise` which are independent of the `data.set.lattice`. It makes a lot of files no longer depend on `data.set.lattice`.

[Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/port.20progress/near/315072418)

mathlib4 PR: leanprover-community/mathlib4#1184



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

bors bot commented Mar 24, 2023

Build failed:

@Vierkantor
Copy link
Collaborator

I'm not sure why Bors says it's a linting error and GitHub a build error...

bors d+

@bors
Copy link

bors bot commented Mar 24, 2023

✌️ negiizhao 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 the delegated The PR author may merge after reviewing final suggestions. label Mar 24, 2023
@bryangingechen
Copy link
Collaborator

bors r+

bors bot pushed a commit that referenced this pull request Mar 26, 2023
This PR will split most of the lemmas in `data.set.pairwise` which are independent of the `data.set.lattice`. It makes a lot of files no longer depend on `data.set.lattice`.

[Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/port.20progress/near/315072418)

mathlib4 PR: leanprover-community/mathlib4#1184



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

bors bot commented Mar 26, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(data/set/pairwise): split [Merged by Bors] - chore(data/set/pairwise): split Mar 26, 2023
@bors bors bot closed this Mar 26, 2023
@bors bors bot deleted the FR_finset_disj_Union branch March 26, 2023 16:54
Comment on lines -59 to -60
alias function.injective_iff_pairwise_ne ↔ function.injective.pairwise_ne _

Copy link
Member

Choose a reason for hiding this comment

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

What happened to this alias?

Copy link
Collaborator

@YaelDillies YaelDillies Mar 27, 2023

Choose a reason for hiding this comment

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

It is already declared in logic.pairwise. cf the porting note in mathlib4.

bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Mar 27, 2023
Match leanprover-community/mathlib#17880

The new import of `Mathlib.Data.Set.Lattice` in `Mathlib.Data.Finset.Basic` was implied transitively from tactic imports present in Lean 3.



Co-authored-by: Parcly Taxel <reddeloostw@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
joelriou pushed a commit to leanprover-community/mathlib4 that referenced this pull request Mar 30, 2023
Match leanprover-community/mathlib#17880

The new import of `Mathlib.Data.Set.Lattice` in `Mathlib.Data.Finset.Basic` was implied transitively from tactic imports present in Lean 3.



Co-authored-by: Parcly Taxel <reddeloostw@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
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

7 participants