Skip to content

[Merged by Bors] - feat: chosen finite products in a category - #11248

Closed
adamtopaz wants to merge 8 commits into
masterfrom
AT-ChosenFiniteProducts
Closed

adamtopaz wants to merge 8 commits into
masterfrom
AT-ChosenFiniteProducts

Conversation

@adamtopaz

@adamtopaz adamtopaz commented Mar 8, 2024 •

Copy link
Copy Markdown
Contributor

This PR introduces a class for categories with explicit choices of binary products and terminal objects, and introduces the associated (Cartesian) symmetric monoidal instance. The primary use of this class is to be able to define internal algebraic objects in categories with chosen finite products, while retaining good definitional properties of the products in question, primarily as a convenience.

We introduce an instance of this new class for the category of types where the binary product is the usual type-theoretic product and the terminal object is PUnit. Future work will introduce an instance for other categories, especially the category of affine schemes which should make objects like group schemes more convenient.

NOTE: In some sense this reverses the refactor done in leanprover-community/mathlib3#3995 but only in the particular case of binary products and terminal objects. Working with (nonexplicit) (co)limits is still the preferred way to work with (co)limits in abstract categories, and instances of ChosenFiniteProducts (and other similar classes which may be introduced in the future) should be carefully considered before they are introduced.


Open in Gitpod

@adamtopaz adamtopaz added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. t-category-theory Category theory labels Mar 8, 2024

@kbuzzard kbuzzard left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would like to see this go in because I am interested in seeing whether it solves problems that we're seeing with monoid objects in the FLT project.

We introduce a class, `ChosenFiniteProducts`, which bundles explicit choices
for a terminal object and binary products in a category `C`.
This is primarily useful for categories which have finite products with good
definitional properties, such as the category of types.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I care more about the category of schemes, or affine schemes, or affine schemes over Spec(R). If you are envisaging your work being helpful for these categories (which are much more interesting than the boring old category of types) then you could mention one or more of them here. If this is future work then it could be added as a TODO.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Will do. Right now the category of types is the only example that's provided.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I added a comment in the module docstring for now.

@github-actions github-actions Bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Mar 8, 2024

@TwoFX TwoFX left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Feels a bit like we're coming full circle, having switched away from this approach in leanprover-community/mathlib3#3995. I hope that usage of this stays localized enough that it's not as painful this time.

@TwoFX TwoFX added awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed awaiting-review labels Mar 9, 2024
@adamtopaz adamtopaz added awaiting-review and removed awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Mar 12, 2024
@TwoFX TwoFX added awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed awaiting-review labels Mar 12, 2024
@adamtopaz adamtopaz added awaiting-review and removed awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Mar 12, 2024
@joelriou

Copy link
Copy Markdown
Contributor

Thanks! Could you add a description of the content in the first comment above so that it appears as the commit message?

bors d+

@mathlib-bors

mathlib-bors Bot commented Mar 14, 2024

Copy link
Copy Markdown
Contributor

✌️ adamtopaz 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 This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Mar 14, 2024
@adamtopaz

adamtopaz commented Mar 14, 2024 •

Copy link
Copy Markdown
Contributor Author

Thanks! Could you add a description of the content in the first comment above so that it appears as the commit message?

bors d+

Will do. Just to be clear, are you referring to Kevin's comment?

Edit: I'll just add a description of that, as well as Markus's comment.

@adamtopaz

Copy link
Copy Markdown
Contributor Author

bors r+

@github-actions github-actions Bot added the ready-to-merge This PR has been sent to bors. label Mar 14, 2024
mathlib-bors Bot pushed a commit that referenced this pull request Mar 14, 2024
This PR introduces a class for categories with explicit choices of binary products and terminal objects, and introduces the associated (Cartesian) symmetric monoidal instance. The primary use of this class is to be able to define internal algebraic objects in categories with chosen finite products, while retaining good definitional properties of the products in question, primarily as a convenience.

We introduce an instance of this new class for the category of types where the binary product is the usual type-theoretic product and the terminal object is `PUnit`. Future work will introduce an instance for other categories, especially the category of affine schemes which should make objects like group schemes more convenient.

NOTE: In some sense this reverses the refactor done in leanprover-community/mathlib3#3995 but only in the particular case of binary products and terminal objects. Working with (nonexplicit) (co)limits is still the preferred way to work with (co)limits in abstract categories, and instances of `ChosenFiniteProducts` (and other similar classes which may be introduced in the future) should be carefully considered before they are introduced.
@mathlib-bors

mathlib-bors Bot commented Mar 14, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat: chosen finite products in a category [Merged by Bors] - feat: chosen finite products in a category Mar 14, 2024
@mathlib-bors mathlib-bors Bot closed this Mar 14, 2024
@mathlib-bors
mathlib-bors Bot deleted the AT-ChosenFiniteProducts branch March 14, 2024 22:45
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
This PR introduces a class for categories with explicit choices of binary products and terminal objects, and introduces the associated (Cartesian) symmetric monoidal instance. The primary use of this class is to be able to define internal algebraic objects in categories with chosen finite products, while retaining good definitional properties of the products in question, primarily as a convenience.

We introduce an instance of this new class for the category of types where the binary product is the usual type-theoretic product and the terminal object is `PUnit`. Future work will introduce an instance for other categories, especially the category of affine schemes which should make objects like group schemes more convenient.

NOTE: In some sense this reverses the refactor done in leanprover-community/mathlib3#3995 but only in the particular case of binary products and terminal objects. Working with (nonexplicit) (co)limits is still the preferred way to work with (co)limits in abstract categories, and instances of `ChosenFiniteProducts` (and other similar classes which may be introduced in the future) should be carefully considered before they are introduced.
utensil pushed a commit that referenced this pull request Mar 26, 2024
This PR introduces a class for categories with explicit choices of binary products and terminal objects, and introduces the associated (Cartesian) symmetric monoidal instance. The primary use of this class is to be able to define internal algebraic objects in categories with chosen finite products, while retaining good definitional properties of the products in question, primarily as a convenience.

We introduce an instance of this new class for the category of types where the binary product is the usual type-theoretic product and the terminal object is `PUnit`. Future work will introduce an instance for other categories, especially the category of affine schemes which should make objects like group schemes more convenient.

NOTE: In some sense this reverses the refactor done in leanprover-community/mathlib3#3995 but only in the particular case of binary products and terminal objects. Working with (nonexplicit) (co)limits is still the preferred way to work with (co)limits in abstract categories, and instances of `ChosenFiniteProducts` (and other similar classes which may be introduced in the future) should be carefully considered before they are introduced.
xgenereux pushed a commit that referenced this pull request Apr 15, 2024
This PR introduces a class for categories with explicit choices of binary products and terminal objects, and introduces the associated (Cartesian) symmetric monoidal instance. The primary use of this class is to be able to define internal algebraic objects in categories with chosen finite products, while retaining good definitional properties of the products in question, primarily as a convenience.

We introduce an instance of this new class for the category of types where the binary product is the usual type-theoretic product and the terminal object is `PUnit`. Future work will introduce an instance for other categories, especially the category of affine schemes which should make objects like group schemes more convenient.

NOTE: In some sense this reverses the refactor done in leanprover-community/mathlib3#3995 but only in the particular case of binary products and terminal objects. Working with (nonexplicit) (co)limits is still the preferred way to work with (co)limits in abstract categories, and instances of `ChosenFiniteProducts` (and other similar classes which may be introduced in the future) should be carefully considered before they are introduced.
uniwuni pushed a commit that referenced this pull request Apr 19, 2024
This PR introduces a class for categories with explicit choices of binary products and terminal objects, and introduces the associated (Cartesian) symmetric monoidal instance. The primary use of this class is to be able to define internal algebraic objects in categories with chosen finite products, while retaining good definitional properties of the products in question, primarily as a convenience.

We introduce an instance of this new class for the category of types where the binary product is the usual type-theoretic product and the terminal object is `PUnit`. Future work will introduce an instance for other categories, especially the category of affine schemes which should make objects like group schemes more convenient.

NOTE: In some sense this reverses the refactor done in leanprover-community/mathlib3#3995 but only in the particular case of binary products and terminal objects. Working with (nonexplicit) (co)limits is still the preferred way to work with (co)limits in abstract categories, and instances of `ChosenFiniteProducts` (and other similar classes which may be introduced in the future) should be carefully considered before they are introduced.
callesonne pushed a commit that referenced this pull request Apr 22, 2024
This PR introduces a class for categories with explicit choices of binary products and terminal objects, and introduces the associated (Cartesian) symmetric monoidal instance. The primary use of this class is to be able to define internal algebraic objects in categories with chosen finite products, while retaining good definitional properties of the products in question, primarily as a convenience.

We introduce an instance of this new class for the category of types where the binary product is the usual type-theoretic product and the terminal object is `PUnit`. Future work will introduce an instance for other categories, especially the category of affine schemes which should make objects like group schemes more convenient.

NOTE: In some sense this reverses the refactor done in leanprover-community/mathlib3#3995 but only in the particular case of binary products and terminal objects. Working with (nonexplicit) (co)limits is still the preferred way to work with (co)limits in abstract categories, and instances of `ChosenFiniteProducts` (and other similar classes which may be introduced in the future) should be carefully considered before they are introduced.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). 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.

4 participants