Skip to content

[Merged by Bors] - feat(CategoryTheory): Computable cartesian monoidal structure on slices induced by chosen pullbacks - #31433

Closed
sinhp wants to merge 118 commits into
leanprover-community:masterfrom
sinhp:lccc-over
Closed

sinhp wants to merge 118 commits into
leanprover-community:masterfrom
sinhp:lccc-over

Conversation

@sinhp

@sinhp sinhp commented Nov 9, 2025 •

Copy link
Copy Markdown
Collaborator

We provide for a category C with chosen pullbacks, a cartesian monoidal structure on the slice categories Over X for all objects X : C.

We also show that the functor pullback f : Over X ⥤ Over Y is naturally isomorphic to toOver (Over.mk f): Over X ⥤ Over (Over.mk f) post-composed with the iterated slice equivalence Over (Over.mk f) ⥤ Over Y.

This latter theorem will be crucial in relating closed objects in the slices to exponentiable morphisms in the base in LocallyCartesianClosed.Basic.lean

(Here toOver is defined to be the computable analogue of the functor Over.star.)

graph TD
  A[ChosenPullbackAlong.lean] --> A'[Over.lean] 
  A' --> B[Sections.lean]
  A --> C[ExponentiableMorphism.lean]
  B --> D[Basic.lean]
  C --> D
  D --> E[Types.lean]
  E --> F[Presheaves.lean]
  D --> G[Beck-Chevalley.lean]

  %% Define highlight style
  classDef highlight fill:#ffe599,stroke:#d4a017,stroke-width:2px;

  %% Apply to one node
  class A' highlight;
Loading

Open in Gitpod

sinhp and others added 30 commits October 28, 2025 22:00
@dagurtomas dagurtomas added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Dec 3, 2025
@sinhp

sinhp commented Dec 3, 2025

Copy link
Copy Markdown
Collaborator Author

I feel like the folder LocallyCartesianClosed should not exist yet (we don't have the definition of a LCCC, right?). Chosen pullbacks and the cartesian monoidal structure on over categories should live somewhere else (the former somewhere in Limits, and the latter in Monoidal.Cartesian?)

We discussed this with @joelriou in #30366, and we decided to put these two files in this folder. Happy to hear what @joelriou thinks. My reservation about Monoidal.Cartesian is that we already have Over there but it is noncomputable. The point of ChosenPullback was to make the theory of LCCCs computable. There is a discussion about this on Zulip somewhere.

Yes, we have definition of LCCC in #30375.

@sinhp sinhp removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Dec 16, 2025

@robin-carlier robin-carlier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The only remaining comments I have is about the characterizing lemmas for some def that can be added by using @[simps!]. Feel free to ignore if some of these ommisions were intentional.

Thanks!

maintainer delegate

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by robin-carlier.

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Dec 19, 2025
@jcommelin

Copy link
Copy Markdown
Member

Thanks 🎉

bors d+

@mathlib-bors

mathlib-bors Bot commented Dec 19, 2025

Copy link
Copy Markdown
Contributor

✌️ sinhp can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Dec 19, 2025
@sinhp

sinhp commented Dec 19, 2025

Copy link
Copy Markdown
Collaborator Author

bors r+

bors r+

mathlib-bors Bot pushed a commit that referenced this pull request Dec 19, 2025
…es induced by chosen pullbacks (#31433)

We provide for a category `C` with chosen pullbacks, a cartesian monoidal structure on the slice categories `Over X` for all objects `X : C`. 

We also show that the functor `pullback f : Over X ⥤ Over Y` is naturally isomorphic to `toOver (Over.mk f): Over X ⥤ Over (Over.mk f)` post-composed with the iterated slice equivalence `Over (Over.mk f) ⥤ Over Y`.

This latter theorem will be crucial in relating closed objects in the slices to exponentiable morphisms in the base in `LocallyCartesianClosed.Basic.lean`

(Here `toOver` is defined to be the computable analogue of the functor `Over.star`.)

```mermaid
graph TD
  A[ChosenPullbackAlong.lean] --> A'[Over.lean] 
  A' --> B[Sections.lean]
  A --> C[ExponentiableMorphism.lean]
  B --> D[Basic.lean]
  C --> D
  D --> E[Types.lean]
  E --> F[Presheaves.lean]
  D --> G[Beck-Chevalley.lean]

  %% Define highlight style
  classDef highlight fill:#ffe599,stroke:#d4a017,stroke-width:2px;

  %% Apply to one node
  class A' highlight;
```

Co-authored-by: Dagur Asgeirsson <[email protected]>
@mathlib-bors

mathlib-bors Bot commented Dec 19, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(CategoryTheory): Computable cartesian monoidal structure on slices induced by chosen pullbacks [Merged by Bors] - feat(CategoryTheory): Computable cartesian monoidal structure on slices induced by chosen pullbacks Dec 19, 2025
@mathlib-bors mathlib-bors Bot closed this Dec 19, 2025
YuvalFilmus pushed a commit to YuvalFilmus/mathlib4 that referenced this pull request Dec 19, 2025
…es induced by chosen pullbacks (leanprover-community#31433)

We provide for a category `C` with chosen pullbacks, a cartesian monoidal structure on the slice categories `Over X` for all objects `X : C`. 

We also show that the functor `pullback f : Over X ⥤ Over Y` is naturally isomorphic to `toOver (Over.mk f): Over X ⥤ Over (Over.mk f)` post-composed with the iterated slice equivalence `Over (Over.mk f) ⥤ Over Y`.

This latter theorem will be crucial in relating closed objects in the slices to exponentiable morphisms in the base in `LocallyCartesianClosed.Basic.lean`

(Here `toOver` is defined to be the computable analogue of the functor `Over.star`.)

```mermaid
graph TD
  A[ChosenPullbackAlong.lean] --> A'[Over.lean] 
  A' --> B[Sections.lean]
  A --> C[ExponentiableMorphism.lean]
  B --> D[Basic.lean]
  C --> D
  D --> E[Types.lean]
  E --> F[Presheaves.lean]
  D --> G[Beck-Chevalley.lean]

  %% Define highlight style
  classDef highlight fill:#ffe599,stroke:#d4a017,stroke-width:2px;

  %% Apply to one node
  class A' highlight;
```

Co-authored-by: Dagur Asgeirsson <[email protected]>
goliath-klein pushed a commit to PrParadoxy/mathlib4 that referenced this pull request Jan 24, 2026
…es induced by chosen pullbacks (leanprover-community#31433)

We provide for a category `C` with chosen pullbacks, a cartesian monoidal structure on the slice categories `Over X` for all objects `X : C`. 

We also show that the functor `pullback f : Over X ⥤ Over Y` is naturally isomorphic to `toOver (Over.mk f): Over X ⥤ Over (Over.mk f)` post-composed with the iterated slice equivalence `Over (Over.mk f) ⥤ Over Y`.

This latter theorem will be crucial in relating closed objects in the slices to exponentiable morphisms in the base in `LocallyCartesianClosed.Basic.lean`

(Here `toOver` is defined to be the computable analogue of the functor `Over.star`.)

```mermaid
graph TD
  A[ChosenPullbackAlong.lean] --> A'[Over.lean] 
  A' --> B[Sections.lean]
  A --> C[ExponentiableMorphism.lean]
  B --> D[Basic.lean]
  C --> D
  D --> E[Types.lean]
  E --> F[Presheaves.lean]
  D --> G[Beck-Chevalley.lean]

  %% Define highlight style
  classDef highlight fill:#ffe599,stroke:#d4a017,stroke-width:2px;

  %% Apply to one node
  class A' highlight;
```

Co-authored-by: Dagur Asgeirsson <[email protected]>
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). t-category-theory Category theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants