Skip to content

Commit

Permalink
relocated code
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-barakat committed Jun 4, 2023
1 parent cffe240 commit 1ec0f5b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
8 changes: 4 additions & 4 deletions Toposes/doc/Doc.autodoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ variations are implemented in the CAP-based package `CartesianCategories`.

@Section Heyting algebra of subobjects

@Section Lawvere-Tierney topologies

@InsertChunk LawvereTierney

@Section Pushout complements

@Subsection Example in FinSets
Expand All @@ -36,6 +32,10 @@ variations are implemented in the CAP-based package `CartesianCategories`.

@Section Double-pushout rewriting

@Section Lawvere-Tierney topologies

@InsertChunk LawvereTierney

@Section Add-methods

@Chapter Category of relations
Expand Down
58 changes: 29 additions & 29 deletions Toposes/gap/Topos.gd
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,35 @@ DeclareOperation( "EmbeddingOfRelativePseudoComplementSubobject",
DeclareOperation( "EmbeddingOfRelativePseudoComplementSubobjectWithGivenImplication",
[ IsCapCategoryMorphism, IsCapCategoryMorphism, IsCapCategoryObject ] );

###################################
##
#! @Section Pushout complements
##
###################################

#! @Description
#! The arguments are two composable morphisms $l: K \rightarrow L$, $m: L \rightarrow G$.
#! The output is <C>true</C> if there exists a morphism $d: K \rightarrow D$ and a morphism $g: D \rightarrow G$
#! such that the four morphisms $l,d,m,g$ form a pushout diagram, i.e., such that
#! $m$=<C>InjectionOfCofactorOfPushoutWithGivenPushout</C>([$l,d$], 1) and
#! $g$=<C>InjectionOfCofactorOfPushoutWithGivenPushout</C>([$l,d$], 2).
#! Otherwise the output is <C>false</C>.
#! @Returns a boolean
#! @Arguments l, m
DeclareOperation( "HasPushoutComplement",
[ IsCapCategoryMorphism, IsCapCategoryMorphism ] );

#! @Description
#! The arguments are two composable morphisms $l: K \rightarrow L$, $m: L \rightarrow G$.
#! The output is a morphism $d: K \rightarrow D$ such that there exists a morphism $g: D \rightarrow G$
#! turing the four morphisms $l,d,m,g$ into a pushout diagram, i.e., such that
#! $m$=<C>InjectionOfCofactorOfPushoutWithGivenPushout</C>([$l,d$], 1) and
#! $g$=<C>InjectionOfCofactorOfPushoutWithGivenPushout</C>([$l,d$], 2).
#! @Returns a morphism
#! @Arguments l, m
DeclareOperation( "PushoutComplement",
[ IsCapCategoryMorphism, IsCapCategoryMorphism ] );

###################################
##
#! @Section Lawvere-Tierney topologies
Expand Down Expand Up @@ -576,32 +605,3 @@ DeclareAttribute( "LawvereTierneySubobjects",
#! @Arguments T
DeclareAttribute( "LawvereTierneyEmbeddingsOfSubobjectClassifiers",
IsCapCategory );

###################################
##
#! @Section Pushout complements
##
###################################

#! @Description
#! The arguments are two composable morphisms $l: K \rightarrow L$, $m: L \rightarrow G$.
#! The output is <C>true</C> if there exists a morphism $d: K \rightarrow D$ and a morphism $g: D \rightarrow G$
#! such that the four morphisms $l,d,m,g$ form a pushout diagram, i.e., such that
#! $m$=<C>InjectionOfCofactorOfPushoutWithGivenPushout</C>([$l,d$], 1) and
#! $g$=<C>InjectionOfCofactorOfPushoutWithGivenPushout</C>([$l,d$], 2).
#! Otherwise the output is <C>false</C>.
#! @Returns a boolean
#! @Arguments l, m
DeclareOperation( "HasPushoutComplement",
[ IsCapCategoryMorphism, IsCapCategoryMorphism ] );

#! @Description
#! The arguments are two composable morphisms $l: K \rightarrow L$, $m: L \rightarrow G$.
#! The output is a morphism $d: K \rightarrow D$ such that there exists a morphism $g: D \rightarrow G$
#! turing the four morphisms $l,d,m,g$ into a pushout diagram, i.e., such that
#! $m$=<C>InjectionOfCofactorOfPushoutWithGivenPushout</C>([$l,d$], 1) and
#! $g$=<C>InjectionOfCofactorOfPushoutWithGivenPushout</C>([$l,d$], 2).
#! @Returns a morphism
#! @Arguments l, m
DeclareOperation( "PushoutComplement",
[ IsCapCategoryMorphism, IsCapCategoryMorphism ] );

0 comments on commit 1ec0f5b

Please sign in to comment.