Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

[Merged by Bors] - feat(combinatorics/quiver/*): More edge reversal constructions#17665

Closed
bottine wants to merge 25 commits intomasterfrom
bottine/quiver_symmetrify_refactor
Closed

[Merged by Bors] - feat(combinatorics/quiver/*): More edge reversal constructions#17665
bottine wants to merge 25 commits intomasterfrom
bottine/quiver_symmetrify_refactor

Conversation

@bottine
Copy link
Copy Markdown
Collaborator

@bottine bottine commented Nov 21, 2022

Move

  • quiver.symmetrify,
  • quiver.has_reverse,
  • quiver.has_involutive_reverse,
  • quiver.reverse,
  • quiver.path.reverse,
  • quiver.symmetrify.of,
  • quiver.lift,
  • associated lemmas,

from combinatorics/quiver/connected_component.lean to combinatorics/quiver/symmetrify.lean.

Add

  • the class prefunctor.map_reverse witnessing that a prefunctor maps reverses to reverses, and change the lemmas taking this property as an explicit argument.
  • prefunctor.symmetrify mapping a prefunctor to the prefunctor between symmetrifications,
  • associated lemmas,

to combinatorics/quiver/symmetrify.lean.

Move quiver.hom.to_pos and quiver.hom.to_neg from category_theory/groupoid/free_groupoid.lean to combinatorics/quiver/symmetrify.lean.

Add map_reverse instance for functors between groupoids.


Co-authored-by: Antoine Labelle antoinelab01@gmail.com

Open in Gitpod

@ghost ghost added 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 Nov 21, 2022
bottine and others added 3 commits November 22, 2022 06:29
@bottine bottine requested a review from YaelDillies November 25, 2022 06:04
@ghost ghost 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 3, 2022
@ghost
Copy link
Copy Markdown

ghost commented Dec 3, 2022

This PR/issue depends on:

@YaelDillies
Copy link
Copy Markdown
Collaborator

Can you make clear whether you're adding new material or moving existing one?

@bottine
Copy link
Copy Markdown
Collaborator Author

bottine commented Dec 4, 2022

@YaelDillies Well, since it's a bit of both (moving old stuff because just adding to the original file didn't make sense), can I just explain so in the commit message (which I just did), or are you arguing for further splitting?

@YaelDillies
Copy link
Copy Markdown
Collaborator

The splitting I offered before was for you to move everything at once, then add the new material file by file. As I understand, you only moved part of the material in the previous PRs, so yes please split further!

@alreadydone
Copy link
Copy Markdown
Collaborator

alreadydone commented Dec 5, 2022

I had an AI generate a description of the diff and the result is in my fork; can you check if what it said make sense? I haven't look at this PR carefully so I'm not in a position to judge ... (Update: it seems that it didn't get that you're moving a large part of connected_component to symmetrify, and the notation X ⟶ Y isn't changed right? It seems to copy a lot of comments added to the code also. And zigzag doesn't exist as a declaration, so the last bullet point is nonsense (which also includes a link totally conjured up).)

I think the AI must have been trained / fine-tuned on Github PR description/comments, and the mathlib repo probably have been included in the training data.

@bottine
Copy link
Copy Markdown
Collaborator Author

bottine commented Dec 5, 2022

Hahaha, I believe only the first bullet makes sense! Nice try though :)

@bottine
Copy link
Copy Markdown
Collaborator Author

bottine commented Dec 5, 2022

@YaelDillies I expanded the commit message. Does that work?

@bottine
Copy link
Copy Markdown
Collaborator Author

bottine commented Dec 13, 2022

I made a mathlib4 PR here In order to get this one in.

@YaelDillies
Copy link
Copy Markdown
Collaborator

Is this ready for review? If so, please add the awaiting-review tag 😉

@bottine bottine added the awaiting-review The author would like community review of the PR label Dec 13, 2022
@bottine
Copy link
Copy Markdown
Collaborator Author

bottine commented Dec 13, 2022

oh, does adding labels have any effect beside easing the filtering when looking at the list of PRs?

@YaelDillies
Copy link
Copy Markdown
Collaborator

It clearly marks your intention. A PR that's not tagged awaiting-review is very unlikely to get reviewed because it doesn't show up on the queue.

bottine and others added 4 commits December 13, 2022 15:36
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
@kim-em
Copy link
Copy Markdown
Collaborator

kim-em commented Dec 17, 2022

bors d+

Please only merge once the mathlib4 PR is in sync.

@bors
Copy link
Copy Markdown

bors bot commented Dec 17, 2022

✌️ bottine 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 Dec 17, 2022
@bottine
Copy link
Copy Markdown
Collaborator Author

bottine commented Dec 17, 2022

@semorrison I've updated the mathlib4 PR (#971). I'll wait for an approval of mathlib4#971 to merge the current one.

@bottine
Copy link
Copy Markdown
Collaborator Author

bottine commented Dec 17, 2022

bors r+

bors bot pushed a commit that referenced this pull request Dec 17, 2022
Move 

* `quiver.symmetrify`,
* `quiver.has_reverse`,
* `quiver.has_involutive_reverse`,
* `quiver.reverse`,
* `quiver.path.reverse`,
* `quiver.symmetrify.of`,
* `quiver.lift`,
* associated lemmas,

from `combinatorics/quiver/connected_component.lean` to `combinatorics/quiver/symmetrify.lean`. 

Add

* the class `prefunctor.map_reverse` witnessing that a prefunctor maps reverses to reverses, and change the lemmas taking this property as an explicit argument.
* `prefunctor.symmetrify` mapping a prefunctor to the prefunctor between symmetrifications,
* associated lemmas,

to `combinatorics/quiver/symmetrify.lean`.

Move `quiver.hom.to_pos` and `quiver.hom.to_neg` from `category_theory/groupoid/free_groupoid.lean` to `combinatorics/quiver/symmetrify.lean`.

Add `map_reverse` instance for functors between groupoids.



Co-authored-by: Rémi Bottinelli <bottine@users.noreply.github.com>
@bors
Copy link
Copy Markdown

bors bot commented Dec 17, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(combinatorics/quiver/*): More edge reversal constructions [Merged by Bors] - feat(combinatorics/quiver/*): More edge reversal constructions Dec 17, 2022
@bors bors bot closed this Dec 17, 2022
@bors bors bot deleted the bottine/quiver_symmetrify_refactor branch December 17, 2022 08:28
bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Dec 17, 2022
… in order to sync with PR 17665 on mathlib3.

See leanprover-community/mathlib3#17665

Co-authored-by: Rémi Bottinelli <bottine@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

delegated The PR author may merge after reviewing final suggestions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants