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(category_theory/monoidal/subcategory): full monoidal subcategories #14311

Closed
wants to merge 12 commits into from

Conversation

antoinelab01
Copy link
Collaborator

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.


Open in Gitpod

@antoinelab01 antoinelab01 added the WIP Work in progress label May 22, 2022
@antoinelab01 antoinelab01 added the awaiting-CI The author would like to see what CI has to say before doing more work. label May 22, 2022
@semorrison semorrison added the awaiting-author A reviewer has asked the author a question or requested changes label May 22, 2022
@antoinelab01 antoinelab01 added awaiting-review The author would like community review of the PR and removed WIP Work in progress awaiting-author A reviewer has asked the author a question or requested changes labels May 24, 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 May 24, 2022
antoinelab01 and others added 2 commits May 26, 2022 22:18
Co-authored-by: Scott Morrison <scott@tqft.net>
Co-authored-by: Scott Morrison <scott@tqft.net>
Co-authored-by: Scott Morrison <scott@tqft.net>
Comment on lines 37 to 41
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 }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Alternatively:

Suggested change
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.)

Comment on lines 34 to 35
(prop_id' : P (𝟙_ C))
(prop_tensor' : ∀ {X Y}, P X → P Y → P (X ⊗ Y))
Copy link
Collaborator

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.

@semorrison
Copy link
Collaborator

bors d+

@bors
Copy link

bors bot commented May 27, 2022

✌️ antoinelab01 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 May 27, 2022
@antoinelab01
Copy link
Collaborator Author

bors r+

bors bot pushed a commit that referenced this pull request May 27, 2022
…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>
@bors
Copy link

bors bot commented May 27, 2022

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request May 27, 2022
…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>
@bors
Copy link

bors bot commented May 27, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(category_theory/monoidal/subcategory): full monoidal subcategories [Merged by Bors] - feat(category_theory/monoidal/subcategory): full monoidal subcategories May 27, 2022
@bors bors bot closed this May 27, 2022
@bors bors bot deleted the symm_cat branch May 27, 2022 05:12
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants