Skip to content

Commit

Permalink
Merge pull request #118 from gap-packages/mh/rm-TerminalObject
Browse files Browse the repository at this point in the history
Remove (Has)InitialObject, (Has)TerminalObject
  • Loading branch information
grahamknockillaree authored Jan 5, 2024
2 parents fa4df59 + cf06620 commit c0e1d63
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 32 deletions.
2 changes: 0 additions & 2 deletions doc/Test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@
<C>IndeterminateDegrees</C><Br/>
<C>IndeterminatesOfGradedAlgebraPresentation</C><Br/>
<C>IndeterminatesOfPolynomial</C><Br/>
<C>InitialObject</C><Br/>
<C>InnerAutomorphismGroupQuandle</C><Br/>
<C>InnerAutomorphismGroupQuandleAsPerm</C><Br/>
<C>InverseRingHomomorphism</C><Br/>
Expand All @@ -536,7 +535,6 @@
<C>SourcePolynomialRing</C><Br/>
<C>SourceRelations</C><Br/>
<C>StarGraph</C><Br/>
<C>TerminalObject</C><Br/>
<C>TermsOfPolynomial</C><Br/>
<C>UnivariateMonomialsOfMonomial</C><Br/>
<C>CoefficientsRing</C><Br/>
Expand Down
5 changes: 0 additions & 5 deletions doc/Undocumented.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1766,9 +1766,6 @@
<C>IndexInSL2O</C>&nbsp;&nbsp;&nbsp;&nbsp;<B>Examples:</B> <URL><Link>../tutorial/chap11.html</Link><LinkText>1</LinkText></URL>&nbsp;
<Br/>
<Br/>
<C>InitialObject</C>&nbsp;&nbsp;&nbsp;&nbsp;<B>Examples:</B> <URL><Link>../www/SideLinks/About/aboutAbelianCategories.html</Link><LinkText>1</LinkText></URL>&nbsp;
<Br/>
<Br/>
<C>InnerAutomorphismGroupQuandle</C>&nbsp;&nbsp;&nbsp;&nbsp;<B>Examples:</B> <Br/>
<Br/>
<C>InnerAutomorphismGroupQuandleAsPerm</C>&nbsp;&nbsp;&nbsp;&nbsp;<B>Examples:</B> <Br/>
Expand Down Expand Up @@ -1848,8 +1845,6 @@
<Br/>
<C>StarGraphAttr</C>&nbsp;&nbsp;&nbsp;&nbsp;<B>Examples:</B> <Br/>
<Br/>
<C>TerminalObject</C>&nbsp;&nbsp;&nbsp;&nbsp;<B>Examples:</B> <Br/>
<Br/>
<C>TermsOfPolynomial</C>&nbsp;&nbsp;&nbsp;&nbsp;<B>Examples:</B> <Br/>
<Br/>
<C>UnivariateMonomialsOfMonomial</C>&nbsp;&nbsp;&nbsp;&nbsp;<B>Examples:</B> <Br/>
Expand Down
4 changes: 0 additions & 4 deletions doc/newCategories.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
</Description> </ManSection>
<ManSection> <Func Name="TerminalArrow" Arg="X"/> <Description> <P/> Inputs an object <M>X</M> in some category, and returns the arrow from <M>X</M> to the terminal object in the category. <P/><B>Examples:</B> <URL><Link>../www/SideLinks/About/aboutAbelianCategories.html</Link><LinkText>1</LinkText></URL>&nbsp;
</Description> </ManSection>
<ManSection> <Func Name="HasInitialObject" Arg="Name"/> <Description> <P/> Inputs the name of a category and returns true or false depending on whether the category has an initial object. <P/><B>Examples:</B> <URL><Link>../www/SideLinks/About/aboutAbelianCategories.html</Link><LinkText>1</LinkText></URL>&nbsp;
</Description> </ManSection>
<ManSection> <Func Name="HasTerminalObject" Arg="Name"/> <Description> <P/> Inputs the name of a category and returns true or false depending on whether the category has a terminal object. <P/><B>Examples:</B>
</Description> </ManSection>
<ManSection> <Func Name="Source" Arg="f"/> <Description> <P/> Inputs an arrow <M>f</M> in some category, and returns its source. <P/><B>Examples:</B> <URL><Link>../tutorial/chap2.html</Link><LinkText>1</LinkText></URL>&nbsp;, <URL><Link>../tutorial/chap4.html</Link><LinkText>2</LinkText></URL>&nbsp;, <URL><Link>../tutorial/chap7.html</Link><LinkText>3</LinkText></URL>&nbsp;, <URL><Link>../tutorial/chap8.html</Link><LinkText>4</LinkText></URL>&nbsp;, <URL><Link>../www/SideLinks/About/aboutAbelianCategories.html</Link><LinkText>5</LinkText></URL>&nbsp;, <URL><Link>../www/SideLinks/About/aboutNonabelian.html</Link><LinkText>6</LinkText></URL>&nbsp;, <URL><Link>../www/SideLinks/About/aboutCoefficientSequence.html</Link><LinkText>7</LinkText></URL>&nbsp;, <URL><Link>../www/SideLinks/About/aboutCoveringSpaces.html</Link><LinkText>8</LinkText></URL>&nbsp;, <URL><Link>../www/SideLinks/About/aboutCoverinSpaces.html</Link><LinkText>9</LinkText></URL>&nbsp;, <URL><Link>../www/SideLinks/About/aboutFunctorial.html</Link><LinkText>10</LinkText></URL>&nbsp;, <URL><Link>../www/SideLinks/About/aboutLieCovers.html</Link><LinkText>11</LinkText></URL>&nbsp;
</Description> </ManSection>
<ManSection> <Func Name="Target" Arg="f"/> <Description> <P/> Inputs an arrow <M>f</M> in some category, and returns its target. <P/><B>Examples:</B> <URL><Link>../tutorial/chap1.html</Link><LinkText>1</LinkText></URL>&nbsp;, <URL><Link>../tutorial/chap2.html</Link><LinkText>2</LinkText></URL>&nbsp;, <URL><Link>../tutorial/chap7.html</Link><LinkText>3</LinkText></URL>&nbsp;, <URL><Link>../tutorial/chap8.html</Link><LinkText>4</LinkText></URL>&nbsp;, <URL><Link>../www/SideLinks/About/aboutAbelianCategories.html</Link><LinkText>5</LinkText></URL>&nbsp;, <URL><Link>../www/SideLinks/About/aboutCoefficientSequence.html</Link><LinkText>6</LinkText></URL>&nbsp;, <URL><Link>../www/SideLinks/About/aboutCoveringSpaces.html</Link><LinkText>7</LinkText></URL>&nbsp;, <URL><Link>../www/SideLinks/About/aboutCoverinSpaces.html</Link><LinkText>8</LinkText></URL>&nbsp;
Expand Down
3 changes: 0 additions & 3 deletions lib/CategoryTheory/categories.gd
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,6 @@ DeclareAttribute( "Mapping" , IsCategoryArrow );
##
DeclareProperty("IsAbelianCategory", IsString);
DeclareProperty("IsAdditiveCategory", IsString);
DeclareAttribute("TerminalObject", IsString);
#DeclareProperty("HasTerminalObject", IsString);
DeclareAttribute("InitialObject", IsString); #changed from Propertry
DeclareAttribute("Pullbacks", IsString); #changed from Propertry
DeclareAttribute("Pushouts", IsString); #changed from Propertry

Expand Down
3 changes: 0 additions & 3 deletions lib/CategoryTheory/categories.gdold
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,6 @@ DeclareAttribute( "Mapping" , IsCategoryArrow );
##
DeclareProperty("IsAbelianCategory", IsString);
DeclareProperty("IsAdditiveCategory", IsString);
DeclareAttribute("TerminalObject", IsString);
#DeclareProperty("HasTerminalObject", IsString);
DeclareAttribute("InitialObject", IsString); #changed from Propertry
DeclareAttribute("Pullbacks", IsString); #changed from Propertry
DeclareAttribute("Pushouts", IsString); #changed from Propertry

Expand Down
11 changes: 5 additions & 6 deletions lib/CategoryTheory/categories.gi
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
##
BindGlobal("Category_Of_Groups", Objectify(
NewType(NewFamily("Category_Of_Groups"),
IsString and
HasInitialObject
and HasTerminalObject), []));
IsString), []));


#############################################################################
Expand Down Expand Up @@ -75,8 +73,8 @@ InstallMethod( InitialArrow,
if not CategoryName(A)=Category_Of_Groups then
TryNextMethod(); fi;

initial:=Group( () );
INITIAL:=CategoricalEnrichment(initial,CategoryName(A));
initial:=Group( () );
INITIAL:=CategoricalEnrichment(initial,CategoryName(A));
phi:=GroupHomomorphismByFunction(initial,Object(A),
x->Identity(Object(A)));
return CategoryArrow(INITIAL,A,phi,CategoryName(A));
Expand All @@ -99,7 +97,8 @@ InstallMethod( TerminalArrow,

terminal:=Group( () );
TERMINAL:=CategoricalEnrichment(terminal,CategoryName(A));
phi:=GroupHomomorphismByFunction(Object(A), terminal, x->Identity(terminal));
phi:=GroupHomomorphismByFunction(Object(A), terminal,
x->Identity(terminal));
return CategoryArrow(A,TERMINAL,phi,CategoryName(A));

end);
Expand Down
4 changes: 1 addition & 3 deletions lib/CategoryTheory/categories.giold
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
##
Category_Of_Groups:="Category_Of_Groups";
HAP_type:= NewType(NewFamily("Category_Of_Groups"),
IsString and
HasInitialObject
and HasTerminalObject);
IsString);
ObjectifyWithAttributes(Category_Of_Groups,HAP_type);
MakeReadOnlyGlobal("Category_Of_Groups");

Expand Down
6 changes: 0 additions & 6 deletions www/SideLinks/About/aboutAbelianCategories.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,6 @@ <h3>&nbsp;Our GAP implementation</h3>
gap&gt; #The last line is essentially a commutative diagram. The<br>
gap&gt; #line before it is a diagram which does not commute.<br>
<br>
gap&gt; #Suppose that we need to know if PHI belongs to a category<br>
gap&gt; #in which there is an initial object.<br>
<br>
gap&gt; HasInitialObject(CategoryName(PHI));<br>
true<br>
<br>
gap&gt; #Suppose we need to know if some power of the endomorphism PHI<br>
gap&gt; #is equal to the identity<br>
<br>
Expand Down

0 comments on commit c0e1d63

Please sign in to comment.