-
Notifications
You must be signed in to change notification settings - Fork 297
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(category_theory/monoidal/subcategory): full monoidal subcategories #14311
Conversation
Co-authored-by: Scott Morrison <scott@tqft.net>
Co-authored-by: Scott Morrison <scott@tqft.net>
Co-authored-by: Scott Morrison <scott@tqft.net>
lemma prop_id [hP : monoidal_predicate P] : P (𝟙_ C) := hP.prop_id' | ||
|
||
-- For some reason which I don't understand `hP.prop_tensor' hX hY` doesn't work here. | ||
lemma prop_tensor [hP : monoidal_predicate P] {X Y : C} (hX : P X) (hY : P Y) : P (X ⊗ Y) := | ||
by { apply hP.prop_tensor', exact hX, exact hY } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively:
lemma prop_id [hP : monoidal_predicate P] : P (𝟙_ C) := hP.prop_id' | |
-- For some reason which I don't understand `hP.prop_tensor' hX hY` doesn't work here. | |
lemma prop_tensor [hP : monoidal_predicate P] {X Y : C} (hX : P X) (hY : P Y) : P (X ⊗ Y) := | |
by { apply hP.prop_tensor', exact hX, exact hY } | |
restate_axiom monoidal_predicate.prop_id' | |
restate_axiom monoidal_predicate.prop_tensor' | |
open monoidal_predicate |
(You'll need to remove two explicit P
arguments below.)
(prop_id' : P (𝟙_ C)) | ||
(prop_tensor' : ∀ {X Y}, P X → P Y → P (X ⊗ Y)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not essential, but you could add . obviously
here if you like.
bors d+ |
✌️ antoinelab01 can now approve this pull request. To approve and merge a pull request, simply reply with |
bors r+ |
…es (#14311) We use a type synonym for `{X : C // P X}` when `C` is a monoidal category and the property `P` is closed under the monoidal unit and tensor product so that `full_monoidal_subcategory` can be made an instance. Co-authored-by: antoinelab01 <66086247+antoinelab01@users.noreply.github.com>
Build failed (retrying...): |
…es (#14311) We use a type synonym for `{X : C // P X}` when `C` is a monoidal category and the property `P` is closed under the monoidal unit and tensor product so that `full_monoidal_subcategory` can be made an instance. Co-authored-by: antoinelab01 <66086247+antoinelab01@users.noreply.github.com>
Pull request successfully merged into master. Build succeeded: |
We use a type synonym for
{X : C // P X}
whenC
is a monoidal category and the propertyP
is closed under the monoidal unit and tensor product so thatfull_monoidal_subcategory
can be made an instance.