Repository navigation
[Merged by Bors] - refactor(CategoryTheory): Make ChosenFiniteProducts extend MonoidalCategory - #24399
Closed
erdOne wants to merge 28 commits into
Closed
[Merged by Bors] - refactor(CategoryTheory): Make ChosenFiniteProducts extend MonoidalCategory#24399erdOne wants to merge 28 commits into
ChosenFiniteProducts extend MonoidalCategory#24399erdOne wants to merge 28 commits into
Conversation
Define cartesian-monoidal categories as braided monoidal categories whose tensor unit is terminal and whose tensor product is the cartesian product. In the long run, this will replace (most of) the uses of `ChosenFiniteProducts`. From Toric
…ions (#24389) Split the definitions and lemmas about orthogonal projections from `Mathlib.Geometry.Euclidean.Basic` (plus some pieces in `Mathlib.Geometry.Euclidean.Circumcenter`) into a separate file `Mathlib.Geometry.Euclidean.Projection`. No definitions, statements or proofs are changed, just moved from one place to another (plus `shake`, plus fixing up the results of `shake` including import removals that worked but weren't pointed out by `shake`).
PR summary e9d41cf744Import changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diffNo declarations were harmed in the making of this PR! 🐙 You can run this locally as follows## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for Decrease in tech debt: (relative, absolute) = (8.00, 0.01)
Current commit e9d41cf744 You can run this locally as
|
YaelDillies
reviewed
Apr 27, 2025
joelriou
reviewed
Apr 28, 2025
Co-authored-by: Joël Riou <[email protected]>
joelriou
reviewed
Apr 28, 2025
YaelDillies
reviewed
May 4, 2025
4 tasks done
Contributor
|
Should we refactor |
Contributor
|
I have done so. It's currently in the diff of #24390, but I will move be to a new PR in due time. |
YaelDillies
reviewed
May 4, 2025
Contributor
|
Thanks! bors merge |
mathlib-bors Bot
pushed a commit
that referenced
this pull request
May 7, 2025
…lCategory` (#24399) There are cases where we have an existing monoidal structure on a category, which turns out to be cartesian monoidal in certain situations. The existing design cannot support such scenarios, as the monoidal category instance is currently forced to come from `monoidalOfChosenFiniteProducts`. We refactor `ChosenFiniteProducts` to instead extend `MonoidalCategory`, and to contain extra data that the existing monoidal structure is cartesian. The plan is to rename `ChosenFiniteProducts` to `CartesianMonoidalCategory` in a follow up PR. Examples of such cases include 1. If `C` is a monoidal category, then `Cᵒᵖ` has a canonical monoidal structure. It is cartesian when e.g. `C = Ab`. 2. If `C` is a monoidal category, then `Mon_ C` has a canonical monoidal structure. It is cartesian when `C` is. Also see https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Bimon.20C.20.3D.20Mon.20C.20when.20C.20is.20cartesian-monoidal From Toric Co-authored-by: Andrew Yang <[email protected]> Co-authored-by: Joseph Myers <[email protected]> Co-authored-by: Andrew Yang <[email protected]>
Contributor
|
Pull request successfully merged into master. Build succeeded: |
ChosenFiniteProducts extend MonoidalCategoryChosenFiniteProducts extend MonoidalCategory
YaelDillies
added a commit
that referenced
this pull request
May 8, 2025
This was automatic before #24399.
mathlib-bors Bot
pushed a commit
that referenced
this pull request
May 8, 2025
This was automatic before #24399.
tannerduve
pushed a commit
that referenced
this pull request
May 13, 2025
…lCategory` (#24399) There are cases where we have an existing monoidal structure on a category, which turns out to be cartesian monoidal in certain situations. The existing design cannot support such scenarios, as the monoidal category instance is currently forced to come from `monoidalOfChosenFiniteProducts`. We refactor `ChosenFiniteProducts` to instead extend `MonoidalCategory`, and to contain extra data that the existing monoidal structure is cartesian. The plan is to rename `ChosenFiniteProducts` to `CartesianMonoidalCategory` in a follow up PR. Examples of such cases include 1. If `C` is a monoidal category, then `Cᵒᵖ` has a canonical monoidal structure. It is cartesian when e.g. `C = Ab`. 2. If `C` is a monoidal category, then `Mon_ C` has a canonical monoidal structure. It is cartesian when `C` is. Also see https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Bimon.20C.20.3D.20Mon.20C.20when.20C.20is.20cartesian-monoidal From Toric Co-authored-by: Andrew Yang <[email protected]> Co-authored-by: Joseph Myers <[email protected]> Co-authored-by: Andrew Yang <[email protected]>
tannerduve
pushed a commit
that referenced
this pull request
May 13, 2025
This was automatic before #24399.
bwehlin
pushed a commit
to bwehlin/mathlib4
that referenced
this pull request
May 31, 2025
…lCategory` (leanprover-community#24399) There are cases where we have an existing monoidal structure on a category, which turns out to be cartesian monoidal in certain situations. The existing design cannot support such scenarios, as the monoidal category instance is currently forced to come from `monoidalOfChosenFiniteProducts`. We refactor `ChosenFiniteProducts` to instead extend `MonoidalCategory`, and to contain extra data that the existing monoidal structure is cartesian. The plan is to rename `ChosenFiniteProducts` to `CartesianMonoidalCategory` in a follow up PR. Examples of such cases include 1. If `C` is a monoidal category, then `Cᵒᵖ` has a canonical monoidal structure. It is cartesian when e.g. `C = Ab`. 2. If `C` is a monoidal category, then `Mon_ C` has a canonical monoidal structure. It is cartesian when `C` is. Also see https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Bimon.20C.20.3D.20Mon.20C.20when.20C.20is.20cartesian-monoidal From Toric Co-authored-by: Andrew Yang <[email protected]> Co-authored-by: Joseph Myers <[email protected]> Co-authored-by: Andrew Yang <[email protected]>
bwehlin
pushed a commit
to bwehlin/mathlib4
that referenced
this pull request
May 31, 2025
…munity#24680) This was automatic before leanprover-community#24399.
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There are cases where we have an existing monoidal structure on a category, which turns out to be cartesian monoidal in certain situations. The existing design cannot support such scenarios, as the monoidal category instance is currently forced to come from
monoidalOfChosenFiniteProducts. We refactorChosenFiniteProductsto instead extendMonoidalCategory, and to contain extra data that the existing monoidal structure is cartesian. The plan is to renameChosenFiniteProductstoCartesianMonoidalCategoryin a follow up PR.Examples of such cases include
Cis a monoidal category, thenCᵒᵖhas a canonical monoidal structure. It is cartesian when e.g.C = Ab.Cis a monoidal category, thenMon_ Chas a canonical monoidal structure. It is cartesian whenCis.Also see https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Bimon.20C.20.3D.20Mon.20C.20when.20C.20is.20cartesian-monoidal
From Toric