CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418346
1
2
3 Quick Start
3
4
5
3.1 Localization of ℤ
6
7
The following example is taken from Section 2 of [BR06].
8
The computation takes place over the local ring R=ℤ_⟨ 2⟩ (i.e. ℤ localized
9
at the maximal ideal generated by 2).
10
11
Here we compute the (infinite) long exact homology sequence of the covariant
12
functor Hom(Hom(-,R/2^7R),R/2^4R) (and its left derived functors) applied to
13
the short exact sequence
14
0 -> M_=R/2^2R --alpha_1--> M=R/2^5R --alpha_2--> _M=R/2^3R -> 0.
15
16
We want to lead your attention to the commands LocalizeAt and
17
HomalgLocalMatrix. The first one creates a localized ring from a global one
18
and generators of a maximal ideal and the second one creates a local matrix
19
from a global matrix. The other commands used here are well known from
20
homalg.
21
22
 Example 
23
 
24
gap> LoadPackage( "LocalizeRingForHomalg" );;
25
gap> ZZ := HomalgRingOfIntegers( );
26
Z
27
gap> R := LocalizeAt( ZZ , [ 2 ] );
28
Z_< 2 >
29
gap> Display( R );
30
<A local ring>
31
gap> LoadPackage( "Modules" );
32
true
33
gap> M := LeftPresentation( HomalgMatrix( [ 2^5 ], R ) );
34
<A cyclic left module presented by 1 relation for a cyclic generator>
35
gap> _M := LeftPresentation( HomalgMatrix( [ 2^3 ], R ) );
36
<A cyclic left module presented by 1 relation for a cyclic generator>
37
gap> alpha2 := HomalgMap( HomalgMatrix( [ 1 ], R ), M, _M );
38
<A "homomorphism" of left modules>
39
gap> M_ := Kernel( alpha2 );
40
<A cyclic left module presented by yet unknown relations for a cyclic generato\
41
r>
42
gap> alpha1 := KernelEmb( alpha2 );
43
<A monomorphism of left modules>
44
gap> Display( M_ );
45
Z_< 2 >/< -4/1 >
46
gap> Display( alpha1 );
47
[ [ 24 ] ]
48
/ 1
49

50
the map is currently represented by the above 1 x 1 matrix
51
gap> ByASmallerPresentation( M_ );
52
<A cyclic left module presented by 1 relation for a cyclic generator>
53
gap> Display( M_ );
54
Z_< 2 >/< 4/1 >
55

56
57
58