Make pointed-set categories and schemas actually pointed#857
Open
KevinDCarlson wants to merge 1 commit intomainfrom
Open
Make pointed-set categories and schemas actually pointed#857KevinDCarlson wants to merge 1 commit intomainfrom
KevinDCarlson wants to merge 1 commit intomainfrom
Conversation
epatters
reviewed
Sep 29, 2023
Member
There was a problem hiding this comment.
Thanks for the PR. With the idea that Catlab.Theories should contain a hierarchy of plausibly useful theories even if we don't immediately need them, I might suggest having:
ThPointedSetCategoryfor a category enriched in pointed sets, as beforeThPointedCategoryfor a pointed category inherits fromThPointedSetCategory, adding the zero objects.
| """ | ||
| @theory ThPointedSetCategory{Ob,Hom} <: ThCategory{Ob,Hom} begin | ||
| @theory ThPointedCategory{Ob,Hom} <: ThCategory{Ob,Hom} begin | ||
| ZeroOb()::Ob |
Member
There was a problem hiding this comment.
Our convention for term constructors in Catlab.Theories is that they are lowercase.
| compose(g::(A→B),zeromap(A,B))==zeromap(A,C)⊣(A::Ob,B::Ob,C::Ob) | ||
|
|
||
| #f == g ⊣ (A::Ob,f::Hom(A,ZeroOb()),g::Hom(A,ZeroOb())) | ||
| #f == g ⊣ (B::Ob,f::Hom(ZeroOb(),B),g::Hom(ZeroOb(),B)) |
Member
There was a problem hiding this comment.
Why have commented out axioms?
Member
There was a problem hiding this comment.
Documentation on your documentation.
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.
I original left out zero objects in
PtdSetCategoryandPtdSetSchemabut now I want theAttrside to be allowed to have a zero object so that I can pull attrs out of a hat that aren't in the source schema; I'm not sure whether I really need the zero object in the combinatorial side yet but why tempt fate?