Skip to content

Commit f9ee7cb

Browse files
authored
Merge pull request #731 from zickgraf/misc
Miscellaneous changes
2 parents c26875a + 84f819b commit f9ee7cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1507
-838
lines changed

ActionsForCAP/.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/doc/chap*.html
2+
/doc/chap*.txt
3+
/doc/*.css
4+
/doc/*.js
5+
/doc/chooser.html
6+
/doc/*.aux
7+
/doc/*.bbl
8+
/doc/*.blg
9+
/doc/*.brf
10+
/doc/*.idx
11+
/doc/*.ilg
12+
/doc/*.ind
13+
/doc/*.lab
14+
/doc/*.log
15+
/doc/*.out
16+
/doc/*.pnr
17+
/doc/*.six
18+
/doc/*.tex
19+
/doc/*.toc
20+
/doc/manual.pdf
21+
/doc/_*.xml
22+
23+
/bin/
24+
/gen/
25+
/Makefile
26+
27+
/tmp/
28+
/gh-pages/
29+
30+
/coverage.json
31+
/doc/*.xml
32+
/doc_tmp/
33+
/stats
34+
/tst/actionsforcap*.tst

ActionsForCAP/LICENSE

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

ActionsForCAP/PackageInfo.g

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#
1+
# SPDX-License-Identifier: GPL-2.0-or-later
22
# ActionsForCAP: Actions and Coactions for CAP
33
#
44
# This file contains package meta data. For additional information on
@@ -11,15 +11,7 @@ SetPackageInfo( rec(
1111
PackageName := "ActionsForCAP",
1212
Subtitle := "Actions and Coactions for CAP",
1313

14-
Version := Maximum( [
15-
"2019.09-16", ## Mohamed's version
16-
## this line prevents merge conflicts
17-
"2015.08-19", ## Sebas' version
18-
## this line prevents merge conflicts
19-
"2017.01-11", ## Sepp's version
20-
## this line prevents merge conflicts
21-
"2020.10-01", ## Fabian's version
22-
] ),
14+
Version := "2021.10-01",
2315

2416
Date := Concatenation( "01/", ~.Version{[ 6, 7 ]}, "/", ~.Version{[ 1 .. 4 ]} ),
2517
License := "GPL-2.0-or-later",
File renamed without changes.

ActionsForCAP/doc/clean

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
#!/bin/bash
2-
rm -f *.{six,aux,lab,log,dvi,ps,pdf,bbl,ilg,ind,idx,out,html,tex,pnr,txt,blg,toc,six,brf,xml,xml.bib,css,js}
3-
rm -f ../maketest.g ../VERSION ../public_html.version
4-
1+
#!/bin/sh
2+
rm -f *.{aux,bbl,blg,brf,css,html,idx,ilg,ind,js,lab,log,out,pdf,pnr,six,tex,toc,txt,xml,xml.bib}
Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
1-
LoadPackage( "ActionsForCAP" );
2-
LoadPackage( "LinearAlgebraForCAP" );
3-
Q := HomalgFieldOfRationals();
4-
vec := MatrixCategory( Q );
5-
u := TensorUnit( vec );
1+
#! @Chapter Examples and tests
2+
3+
#! @Section Tests
4+
5+
#! @Example
6+
7+
LoadPackage( "ActionsForCAP", false );
8+
#! true
9+
LoadPackage( "LinearAlgebraForCAP", false );
10+
#! true
11+
12+
Q := HomalgFieldOfRationals();;
13+
vec := MatrixCategory( Q );;
14+
u := TensorUnit( vec );;
615
cat := LeftActionsCategory( u );
16+
#! Category of left actions of <A vector space object over Q of dimension 1>
717
V := VectorSpaceObject( 2, Q );
18+
#! <A vector space object over Q of dimension 2>
819
alpha := VectorSpaceMorphism( TensorProductOnObjects( u, V ), HomalgMatrix( [ [ 0, 1 ], [ -1, 0 ] ], 2, 2, Q ), V );
20+
#! <A morphism in Category of matrices over Q>
21+
22+
#! @EndExample
Lines changed: 55 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,116 +1,105 @@
1-
LoadPackage( "ActionsForCAP" );
2-
LoadPackage( "LinearAlgebraForCAP" );
1+
#! @Chapter Examples and tests
2+
3+
#! @Section Tests
4+
5+
#! @Example
6+
7+
LoadPackage( "ActionsForCAP", false );
8+
#! true
9+
LoadPackage( "LinearAlgebraForCAP", false );
10+
#! true
311

412
## Category and Type of Objects
513
##
614
DeclareCategory( "IsObjectWithEndo",
7-
IsCategoryWithAttributesObject );
15+
IsCategoryWithAttributesObject );;
816

917
DeclareRepresentation( "IsObjectWithEndoRep",
1018
IsObjectWithEndo and IsAttributeStoringRep,
11-
[ ] );
19+
[ ] );;
1220

1321
BindGlobal( "TheFamilyOfObjectsWithEndo",
14-
NewFamily( "TheFamilyOfObjectsWithEndo" ) );
22+
NewFamily( "TheFamilyOfObjectsWithEndo" ) );;
1523

1624
BindGlobal( "TheTypeOfObjectsWithEndo",
1725
NewType( TheFamilyOfObjectsWithEndo,
18-
IsObjectWithEndoRep ) );
26+
IsObjectWithEndoRep ) );;
1927

2028
## Category and Type of Morphisms
2129
##
2230
DeclareCategory( "IsMorphismWithEndo",
23-
IsCategoryWithAttributesMorphism );
31+
IsCategoryWithAttributesMorphism );;
2432

2533
DeclareRepresentation( "IsMorphismWithEndoRep",
2634
IsMorphismWithEndo and IsAttributeStoringRep,
27-
[ ] );
35+
[ ] );;
2836

2937
BindGlobal( "TheFamilyOfMorphismsWithEndo",
30-
NewFamily( "TheFamilyOfMorphismsWithEndo" ) );
38+
NewFamily( "TheFamilyOfMorphismsWithEndo" ) );;
3139

3240
BindGlobal( "TheTypeOfMorphismsWithEndo",
3341
NewType( TheFamilyOfMorphismsWithEndo,
34-
IsMorphismWithEndoRep ) );
42+
IsMorphismWithEndoRep ) );;
3543

3644

3745
##
38-
Q := HomalgFieldOfRationals();
39-
vec := MatrixCategory( Q );
40-
41-
category_with_endo_record := rec(
42-
underlying_category := vec,
43-
object_type := TheTypeOfObjectsWithEndo,
44-
morphism_type := TheTypeOfMorphismsWithEndo,
45-
46-
ZeroObject :=
46+
Q := HomalgFieldOfRationals();;
47+
vec := MatrixCategory( Q );;
48+
49+
category_with_endo_record := rec( );;
50+
51+
category_with_endo_record.underlying_category := vec;;
52+
category_with_endo_record.object_type := TheTypeOfObjectsWithEndo;;
53+
category_with_endo_record.morphism_type := TheTypeOfMorphismsWithEndo;;
54+
55+
category_with_endo_record.ZeroObject :=
4756
function( zero_object )
4857

49-
return [ IdentityMorphism( zero_object ) ];
50-
51-
end,
52-
53-
DirectSum :=
58+
return [ IdentityMorphism( zero_object ) ]; end;;
59+
60+
category_with_endo_record.DirectSum :=
5461
function( obj_list, underlying_direct_sum )
55-
local attr_list;
56-
57-
attr_list := List( obj_list, obj -> ObjectAttributesAsList( obj )[1] );
5862

59-
return [ DirectSumFunctorial( attr_list ) ];
60-
end,
61-
62-
Lift :=
63+
return [ DirectSumFunctorial( List( obj_list, obj -> ObjectAttributesAsList( obj )[1] ) ) ]; end;;
64+
65+
category_with_endo_record.Lift :=
6366
function( mono, range )
64-
local range_endo, composition;
65-
66-
range_endo := ObjectAttributesAsList( range )[1];
67-
68-
composition := PreCompose( mono, range_endo );
6967

70-
return [ LiftAlongMonomorphism( mono, composition ) ];
71-
72-
end,
73-
74-
Colift :=
68+
return [ LiftAlongMonomorphism( mono, PreCompose( mono, ObjectAttributesAsList( range )[1] ) ) ]; end;;
69+
70+
category_with_endo_record.Colift :=
7571
function( epi, source )
76-
local source_endo, composition;
77-
78-
source_endo := ObjectAttributesAsList( source )[1];
7972

80-
composition := PreCompose( source_endo, epi );
81-
82-
return [ ColiftAlongEpimorphism( epi, composition ) ];
83-
end,
84-
85-
TensorProductOnObjects :=
73+
return [ ColiftAlongEpimorphism( epi, PreCompose( ObjectAttributesAsList( source )[1], epi ) ) ]; end;;
74+
75+
category_with_endo_record.TensorProductOnObjects :=
8676
function( obj1, obj2, underlying_tensor_product )
87-
local endo1, endo2;
88-
89-
endo1 := ObjectAttributesAsList( obj1 )[1];
9077

91-
endo2 := ObjectAttributesAsList( obj2 )[1];
92-
93-
return [ TensorProductOnMorphisms( endo1, endo2 ) ];
94-
95-
end,
96-
97-
TensorUnit :=
78+
return [ TensorProductOnMorphisms( ObjectAttributesAsList( obj1 )[1], ObjectAttributesAsList( obj2 )[1] ) ]; end;;
79+
80+
category_with_endo_record.TensorUnit :=
9881
function( unit )
99-
100-
return [ IdentityMorphism( unit ) ];
101-
102-
end
103-
);
82+
83+
return [ IdentityMorphism( unit ) ]; end;;
10484

105-
triple := EnhancementWithAttributes( category_with_endo_record );
85+
triple := EnhancementWithAttributes( category_with_endo_record );;
10686
endo_cat := triple[1];
87+
#! Category with attributes of Category of matrices over Q
10788
## not finalized yet
10889
ObjConstr := triple[2];
90+
#! function( object, attributes ) ... end
10991

11092
V := VectorSpaceObject( 3, Q );
93+
#! <A vector space object over Q of dimension 3>
11194
endV := IdentityMorphism( V );
95+
#! <An identity morphism in Category of matrices over Q>
11296
VwithEndo := ObjConstr( V, [ endV ] );
97+
#! <An object in Category with attributes of Category of matrices over Q>
11398

11499
MorConstr := triple[3];
100+
#! function( source, morphism, range ) ... end
115101

116102
alpha := MorConstr( VwithEndo, VectorSpaceMorphism( V, HomalgMatrix( [ [ 1, -1, 1 ], [ 1, 1, 1 ], [ 0, 0 , 0 ] ], 3, 3, Q ), V ), VwithEndo );
103+
#! <A morphism in Category with attributes of Category of matrices over Q>
104+
105+
#! @EndExample

0 commit comments

Comments
 (0)