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

Support for Opposite Categories #101

Closed
jpfairbanks opened this issue Sep 13, 2023 · 1 comment
Closed

Support for Opposite Categories #101

jpfairbanks opened this issue Sep 13, 2023 · 1 comment

Comments

@jpfairbanks
Copy link
Member

@olynch and @kris-brown, I know that you have been motivated by Slice Categories as a driving example for categories as contexts approach. I was trying to implement contravariant functors on FinSet in Catlab and got stuck on how the OppositeCategory type works in Catlab.

If we had Categories as Contexts implemented, then when you do op(FinSet) you could get a new context that knows that morphisms should have the same type as in FinSet, but that composition of morphisms is just in the opposite order. With the current wrapper type implementation, if you want to implement FinSetOp, you would have to make wrapper types for OpFinFunction.

@olynch
Copy link
Member

olynch commented Sep 13, 2023

Yeah, this shouldn't be hard at all, and is a good motivating example!

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

No branches or pull requests

2 participants