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

monads are lax functors #460

Merged
merged 7 commits into from
Feb 12, 2025
Merged

monads are lax functors #460

merged 7 commits into from
Feb 12, 2025

Conversation

4e554c4c
Copy link
Contributor

@4e554c4c 4e554c4c commented Feb 6, 2025

I noticed this on the nlab and it sounded fun to write down.
Really it'd be nice to do this using displayed bicategories with a displayed bicategory of monads over a base bicategory $$\mathsf{S}$$.

Description

  • A few facts about the terminal category
  • The terminal bicategory
  • Monads are equivalent to lax functors from said bicategory

Checklist

Before submitting a merge request, please check the items below:

  • I've read the contributing guidelines.
  • The imports of new modules have been sorted with support/sort-imports.hs (or nix run --experimental-features nix-command -f . sort-imports).
  • All new code blocks have "agda" as their language.

If your change affects many files without adding substantial content, and
you don't want your name to appear on those pages (for example, treewide
refactorings or reformattings), start the commit message and PR title with chore:.

@Lavenza
Copy link
Member

Lavenza commented Feb 6, 2025

@4e554c4c
Copy link
Contributor Author

4e554c4c commented Feb 6, 2025

a quick note: to say that monads are lax functors (i.e. with a path) we would need some kind of Monad-path and lax-functor-path lemmas... which don't really seem to be possible with the current state of tri-category theory in 1lab.
happy to add them tho lol

src/Cat/Bi/Diagram/Monad/Lax.lagda.md Outdated Show resolved Hide resolved
src/Cat/Bi/Diagram/Monad/Lax.lagda.md Outdated Show resolved Hide resolved
src/Cat/Bi/Diagram/Monad/Lax.lagda.md Outdated Show resolved Hide resolved
src/Cat/Bi/Instances/Terminal.lagda.md Outdated Show resolved Hide resolved
src/Cat/Bi/Instances/Terminal.lagda.md Outdated Show resolved Hide resolved
src/Cat/Instances/Shape/Terminal/Properties.lagda.md Outdated Show resolved Hide resolved
src/Cat/Instances/Shape/Terminal/Properties.lagda.md Outdated Show resolved Hide resolved
src/Cat/Bi/Diagram/Monad/Lax.lagda.md Outdated Show resolved Hide resolved
src/Cat/Bi/Diagram/Monad/Lax.lagda.md Outdated Show resolved Hide resolved
src/Cat/Bi/Diagram/Monad/Lax.lagda.md Outdated Show resolved Hide resolved
@ncfavier
Copy link
Member

ncfavier commented Feb 6, 2025

to say that monads are lax functors (i.e. with a path) we would need some kind of Monad-path and lax-functor-path lemmas... which don't really seem to be possible with the current state of tri-category theory in 1lab

Do we need any of that? The automatically generated path lemmas that don't build in any univalence should be enough since all the relevant structure seems to be mapped strictly?

src/Cat/Bi/Diagram/Monad.lagda.md Outdated Show resolved Hide resolved
src/Cat/Bi/Diagram/Monad.lagda.md Outdated Show resolved Hide resolved
@4e554c4c
Copy link
Contributor Author

4e554c4c commented Feb 8, 2025

should be fixed now. it's kind of hard without the workflow giving a preview sorry

ncfavier
ncfavier previously approved these changes Feb 10, 2025
@plt-amy plt-amy merged commit f832d2d into the1lab:main Feb 12, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants