Skip to content
This repository was archived by the owner on Nov 6, 2026. It is now read-only.

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

Closed
bottine wants to merge 25 commits into
masterfrom
bottine/quiver_symmetrify_refactor
Closed

bottine wants to merge 25 commits into
masterfrom
bottine/quiver_symmetrify_refactor

Conversation

@bottine

@bottine bottine commented Nov 21, 2022 •

Copy link
Copy Markdown
Contributor

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 [email protected]

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
Comment thread src/combinatorics/quiver/basic.lean Resolved
Comment thread src/combinatorics/quiver/basic.lean Resolved
Comment thread src/combinatorics/quiver/basic.lean Resolved
@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

ghost commented Dec 3, 2022

Copy link
Copy Markdown

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

bottine commented Dec 4, 2022 •

Copy link
Copy Markdown
Contributor Author

@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

alreadydone commented Dec 5, 2022 •

Copy link
Copy Markdown
Collaborator

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

bottine commented Dec 5, 2022

Copy link
Copy Markdown
Contributor Author

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

@bottine

bottine commented Dec 5, 2022

Copy link
Copy Markdown
Contributor Author

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

Comment thread src/combinatorics/quiver/symmetric.lean Resolved
@bottine

bottine commented Dec 13, 2022

Copy link
Copy Markdown
Contributor Author

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

bottine commented Dec 13, 2022

Copy link
Copy Markdown
Contributor Author

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.

Comment thread src/combinatorics/quiver/symmetric.lean Resolved
Comment thread src/combinatorics/quiver/symmetric.lean Resolved
Comment thread src/combinatorics/quiver/symmetric.lean Resolved
Comment thread src/combinatorics/quiver/symmetric.lean Resolved
Comment thread src/combinatorics/quiver/symmetric.lean Resolved
Comment thread src/combinatorics/quiver/symmetric.lean Resolved
Comment thread src/combinatorics/quiver/symmetric.lean Resolved
Comment thread src/combinatorics/quiver/symmetric.lean Resolved
Comment thread src/combinatorics/quiver/symmetric.lean Resolved
Comment thread src/combinatorics/quiver/symmetric.lean Resolved
@kim-em

kim-em commented Dec 17, 2022

Copy link
Copy Markdown
Collaborator

bors d+

Please only merge once the mathlib4 PR is in sync.

@bors

bors Bot commented Dec 17, 2022

Copy link
Copy Markdown

✌️ 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

bottine commented Dec 17, 2022 •

Copy link
Copy Markdown
Contributor Author

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

@bottine

bottine commented Dec 17, 2022

Copy link
Copy Markdown
Contributor Author

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 <[email protected]>
@bors

bors Bot commented Dec 17, 2022

Copy link
Copy Markdown

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 <[email protected]>
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