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

Presheaves, BinProd, Elements, TwistedArrow, Constant #872

Merged
merged 19 commits into from
Jan 14, 2023
Merged

Conversation

anuyts
Copy link
Contributor

@anuyts anuyts commented Jul 25, 2022

Expanding the presheaf library (Cubical.Categories.Presheaf)

@anuyts
Copy link
Contributor Author

anuyts commented Jul 29, 2022

My apologies, this ended up being a mix of only moderately related things:

  • I cleaned up the binary product of categories:
    • Renamed it to ×C
    • Added a functor pairing operation and based most other stuff on it
    • Merged the confusing file Categories.Functor.BinProduct into Categories.Constructions.BinProduct
  • Categories of elements:
    • I redefined the contravariant version as the opposite of the covariant version; this required splitting it up in two modules,
  • Defined the twisted arrow category as the category of elements of the Hom-functor
  • Defined constant functors
  • Renamed PreShv to PresheafCategory, in contrast to the type of presheaves Presheaf
  • Defined non-presheaves together with forgetful, free and cofree functors, but did not prove adjointness.

@anuyts anuyts marked this pull request as ready for review July 29, 2022 18:07
@anuyts anuyts changed the title Presheaves Presheaves, BinProd, Elements, TwistedArrow, Constant Jul 29, 2022
@mortberg mortberg self-requested a review August 10, 2022 14:14
@maxsnew
Copy link
Collaborator

maxsnew commented Aug 26, 2022

I think if we want a "most general" version of a universal property, a good one to pick in my experience is "representable profunctor", i.e. a profunctor C^o x D -> Set that is equivalent to a composition of Hom with a functor either from C to D or vice-versa. This includes adjoint functors, relative adjoint functors, limits, colimits, Kan extensions etc very directly. I hacked something up here that could be cleaned up and submitted (https://github.com/maxsnew/cubical-cbpv/blob/main/Profunctor.agda).

@anuyts
Copy link
Contributor Author

anuyts commented Aug 27, 2022

@maxsnew I think you probably wanted to post that comment in #873.

@ecavallo
Copy link
Collaborator

@mortberg are you going to review this? If not I'll do it

@mortberg
Copy link
Collaborator

@mortberg are you going to review this? If not I'll do it

Please do it! I'm way behind on all of my reviewing, so any help is very appreciated!

@ecavallo
Copy link
Collaborator

Thanks! I just did some minor cleanup.

@ecavallo ecavallo merged commit 2dfa93e into agda:master Jan 14, 2023
@anuyts anuyts deleted the psh branch January 16, 2023 13:31
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