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(CategoryTheory): morphism properties that have the two-out-of-three property #12460

Closed
wants to merge 21 commits into from

Conversation

joelriou
Copy link
Collaborator

The type class MorphismProperty.HasTwoOutOfThreeProperty is introduced. The structure StableUnderComposition is also changed into a type class IsStableUnderComposition.


Open in Gitpod

@joelriou joelriou added the t-category-theory Category theory label Apr 27, 2024
simpa only [← F.map_comp] using h (F.map f) (F.map g) hf hg
#align category_theory.morphism_property.stable_under_composition.inverse_image CategoryTheory.MorphismProperty.StableUnderComposition.inverseImage
theorem respectsIso_of_isStableUnderComposition {P : MorphismProperty C}
[P.IsStableUnderComposition] (hP : isomorphisms C ⊆ P) :
Copy link
Member

Choose a reason for hiding this comment

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

I noticed that a lot of these are formalized with subset rather than le. Is there a reason to this? It will require either a lot more duplication or rewrites into le when using the order API (when considering the disjunction of properties, or monotone property constructors etc.)
(out of scope of this PR)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For MorphismProperty, I prefer over , because if h : W₁ ⊆ W₂, it can be used as h f hf, rather than h X Y f hf if it were h : W₁ ≤ W₂ (and f : X ⟶ Y).

Copy link
Member

Choose a reason for hiding this comment

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

Hmmm good point. I'll try later if I can change up the implicitness when deriving the complete lattice instance.

@joelriou joelriou added the awaiting-review The author would like community review of the PR label Apr 27, 2024
Co-authored-by: Andrew Yang <36414270+erdOne@users.noreply.github.com>
@erdOne erdOne 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 Apr 28, 2024
@erdOne
Copy link
Member

erdOne commented Apr 28, 2024

!bench

@leanprover-bot
Copy link
Collaborator

Here are the benchmark results for commit 70e66e2.
There were no significant changes against commit b119a28.

@joelriou joelriou 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 Apr 28, 2024
@erdOne
Copy link
Member

erdOne commented Apr 28, 2024

Thanks!
maintainer merge

Copy link

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

Copy link
Member

@jcommelin jcommelin 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 merge

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Apr 29, 2024
mathlib-bors bot pushed a commit that referenced this pull request Apr 29, 2024
…ree property (#12460)

The type class `MorphismProperty.HasTwoOutOfThreeProperty` is introduced. The structure `StableUnderComposition` is also changed into a type class `IsStableUnderComposition`.



Co-authored-by: Joël Riou <37772949+joelriou@users.noreply.github.com>
@mathlib-bors
Copy link

mathlib-bors bot commented Apr 29, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(CategoryTheory): morphism properties that have the two-out-of-three property [Merged by Bors] - feat(CategoryTheory): morphism properties that have the two-out-of-three property Apr 29, 2024
@mathlib-bors mathlib-bors bot closed this Apr 29, 2024
@mathlib-bors mathlib-bors bot deleted the two-out-of-three-property branch April 29, 2024 08:00
apnelson1 pushed a commit that referenced this pull request May 12, 2024
…ree property (#12460)

The type class `MorphismProperty.HasTwoOutOfThreeProperty` is introduced. The structure `StableUnderComposition` is also changed into a type class `IsStableUnderComposition`.



Co-authored-by: Joël Riou <37772949+joelriou@users.noreply.github.com>
callesonne pushed a commit that referenced this pull request May 16, 2024
…ree property (#12460)

The type class `MorphismProperty.HasTwoOutOfThreeProperty` is introduced. The structure `StableUnderComposition` is also changed into a type class `IsStableUnderComposition`.



Co-authored-by: Joël Riou <37772949+joelriou@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer-merge ready-to-merge This PR has been sent to bors. t-category-theory Category theory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants