<p id="mathjaxlink" class="pcenter"><a href="chap5_mj.html">[MathJax on]</a></p>
<p><a id="X7A489A5D79DA9E5C" name="X7A489A5D79DA9E5C"></a></p>
<div class="ChapSects"><a href="chap5.html#X7A489A5D79DA9E5C">5 <span class="Heading">Examples</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span>java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 6
</span>
</div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a
</pan>
</div "mathjaxlink ""<java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 80
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap5.html#X7CC8EA507E7AABA4">5.3 <span class="Heading">ResidueClass</span></a>
<span
</div<java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 179
<div class=""< class"tocline"< class="&;/span> href=.#">. s ="> the </>/ajava.lang.StringIndexOutOfBoundsException: Index 185 out of bounds for length 185
</span>
</div>
</div>
<h3>5 <span <span>
<>a id"" name=java.lang.StringIndexOutOfBoundsException: Range [54, 52) out of bounds for length 62
<h4>5.1 <span class/pan>
<<s
<div classjava.lang.StringIndexOutOfBoundsException: Index 185 out of bounds for length 185
<pan class=G"&</span <pan class="GAPinput"LoadPackage(java.lang.StringIndexOutOfBoundsException: Range [216, 82) out of bounds for length 216
<class=GAPprompt">ap&;<span<pan "" :=java.lang.StringIndexOutOfBoundsException: Range [103, 100) out of bounds for length 120
<<span">apgt<s>< ="y0 : ( "" );<>
<spanclass=GAPpromptgap&<span> <pan="" =HomalgRingElement"" );<s>
<span class="GAPprompt">gap></span> <span class="GAPinput">LoadPackage("LocalizeRingForHomalg");;</span>spanclass="g&;<span>sclass="GAPinput>00 : LocalizeAtZero F3xy );/span
< class"GAPprompt>gap&;/pan < "APinputR :( ;</spanjava.lang.StringIndexOutOfBoundsException: Index 100 out of bounds for length 100
< <span class""R10 = LocalizeAtF3xy,[x1, ]);<span>
<span class="GAPprompt"<pan classGAPpromptgt<span> < ="">M =HomalgMatrix("[<>
<span class="GAPprompt">gap></span> <<pan class"GAPprompt"gt;<spansclass=" ],1 ,F3xy);/java.lang.StringIndexOutOfBoundsException: Index 89 out of bounds for length 89
<spanclass">&<s java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 107
<span class="GAPprompt">></span> <span class="GAPinput"> x*y^3+2*x^2*y+y^3+y^2+x+2*y+x^2, \</span>
<span class="GAPprompt=">gap&t;s><class"java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 105
<pan java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 89
<spanclass=GAPprompt>/><panclass">oadPackage");<>
<span class="GAPprompt">gap></span> <span class="GAPinput">I := RightPresentation( M );;</span>
<span class="GAPprompt">gap&<span class="GAPprompt">gap>"GAPprompt>& : java.lang.StringIndexOutOfBoundsException: Range [90, 88) out of bounds for length 106
<span class=GF[,]&;x &t/& xx^-y^+xy+y^3+^)1 (x^+y^-^*+y^
<spanclass="APprompt">gap></span> <span class="GAPinput">MMora := HomalgLocalMatrix( M, RMora );;</span>
<span class="<pan =G"gapgt<span>< class=""(IMora );</span>
<span class="GAPprompt">gap></span> <span class=&tAtorsionright oncyclic 2&;
<<spanclass="APprompt">gap></span> <span class="GAPinput">Display( IMora );</span>
<pre>/div>
<p>This ring is able to compute a standard basis java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 0
<div class="example"><pre>
<span class
GFjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
x*^3/, --2x*y+y^2-x^3+x^2*y+y^3+x^2*y^2)/1 >
<=GAPinput" java.lang.StringIndexOutOfBoundsException: Range [93, 91) out of bounds for length 101
<A cyclic torsion+^+3x2xy+2-y)/1 >
<span class="GAPprompt">gap></span> <span class="GAPinput">Display( IMora );</span>
GF(3)[x,y]_< x, y >/< x/1, y/1 >
</pre></div>
<p>This ring recognizes, that the module is not zero, but is not able to find better generators.</p>
<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">Display( I00 );</span>
GF(3)[x,y]_< x, y >/< (y^4+x*y^2+y^3+x^2-x*y-y^2+x)/1, (x*y^3-x^2*y+y^3+x^2+y^\ 2+x-y)/1, (x^2*y^2-x^3+x^2*y+y^3-x^2-x*y+y^2-y)/1 >
<span class="GAPprompt">gap></span> <span class="GAPinput">ByASmallerPresentation( I00 );</span>
<A cyclic right module on a cyclic generator satisfying 3 relations>
<span class="GAPprompt">gap></span> <span class="GAPinput">Display( I00 );</span>
GF(3)[x,y]_< x, y >/< (y^4+x*y^2+y^3+x^2-x*y-y^2+x)/1, (x*y^3-x^2*y+y^3+x^2+y^\ 2+x-y)/1, (x^2*y^2-x^3+x^2*y+y^3-x^2-x*y+y^2-y)/1 >
</pre></div>
<p>We are able to change the ring, to compute a nicer basis.</p>
<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">I00ToMora := RMora * I00;</span>
<A cyclic right module on a cyclic generator satisfying 3 relations>
<span class="GAPprompt">gap></span> <span class="GAPinput">Display( I00ToMora );</span>
GF(3)[x,y]_< x, y >/< (x+x^2-x*y-y^2+x*y^2+y^3+y^4)/1, (x-y+x^2+y^2-x^2*y+y^3+\
x*y^3)/1, (-y-x^2-x*y+y^2-x^3+x^2*y+y^3+x^2*y^2)/1 >
<span class="GAPprompt">gap></span> <span class="GAPinput">ByASmallerPresentation( I00ToMora );</span>
<A cyclic torsion right module on a cyclic generator satisfying 2 relations>
<span class="GAPprompt">gap></span> <span class="GAPinput">Display( I00ToMora );</span>
GF(3)[x,y]_< x, y >/< x/1, y/1 >
</pre></div>
<p>We are able to find out, that this module is actually zero.</p>
<p>The following example is taken from Section 2 of <a href="chapBib.html#biBBREACA">[BR06]</a>. <br /> <br /> The computation takes place over the local ring <span class="SimpleMath">R=ℤ_⟨ 2⟩</span> (i.e. ℤ localized at the maximal ideal generated by <span class="SimpleMath">2</span>).</p>
<p>we i exacthomologysequence the span =S"Hom(-,/2^7)R/^4)<> ( its derived functors)applied totheshort sequencebr /> <br /> <span class="SimpleMath">0 -> M_=R/2^2R --alpha_1--> M=R/2^5R --alpha_2--> _M=R/2^3R -> 0</span>.</p>
<div class="example"><pre>
<span class="GAPprompt">gap>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<class=GAPprompt>g;/span <span "">: HomalgRingOfIntegersInExternalGAP( ;/>
Z
<span class="GAPprompt">gap></span> <span class="GAPinput">Display( GlobalR );</span>
&An external ring residing in the CAS GAP>
<span class="GAPprompt">gap></span> <span class="<span =GAPprompt"gt;<span> < class="GAPinput"( RingsForHomalg);/span
< class="APinput"> :LocalizeAt GlobalR , ])</>
Z_< 2 >< 2&;
">gap&t;/span sclass"GAPinput"Display( R );</span>
<A local ring>
<span class="GAPprompt">gap></span> <span class<A ringgt
& left java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 75
<class=">gap><span <class=""_M: ( 2^3 ] ;</>
<A cyclic left modules class"APprompt"gap&t<span> s ="APinput_ :=LeftPresentation(HomalgMatrix 2^3 ,R ;/java.lang.StringIndexOutOfBoundsException: Index 122 out of bounds for length 122
<span class="GAPprompt">gap><pan class=GAPprompt">ap>/span span class=GAPinput"alpha2 =HomalgMap( HomalgMatrix( ],R , , _ )</pan
&A"omomorphism"leftmodules&;
<<spanclass""gap;/>span ""M_ =( alpha2)</span>
<A cyclic left module presented java.lang.StringIndexOutOfBoundsException: Index 110 out of bounds for length 110
r>
<span [12 ,1>java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
<A monomorphism of left modules>
<span class="GAPprompt">gap></span> <span class="GAPinput">seq := HomalgComplex( alpha2;A sequencecontaining 14 morphismsofleftmodulesat degrees [ 0 .. 14 ]>
&spanclass=GAPprompt"gap>< <pan "">yASmallerPresentation ))<span>
[ 0 .. 1 ]>
<spanclass=GAPprompt">ap&;/span><class=GAPinput>dd(seq,alpha1 )<span
s"GAPprompt>gap>/pan><pan "java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 97
true
<span class="GAPprompt">gap></span> <span class="GAPinput">K := LeftPresentation( HomalgMatrixtjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
<A java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 75
<span class="GAPprompt">gap></span> <span class
&cyclic right module on a cyclic generator satisfying 1 relation>
<span class="GAPprompt
l;An exact triangle java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 73
[ 1,div class=""<re
<spanspan "GAPprompt">ap>/pan> <> <pan class="GAPinput"LoadPackage "RingsForHomalg,"&; 2020..17);/span
& of left modulesat[0.14]gtjava.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
<span "">apgt</span> <span class="GAPinput">ByASmallerPresentation( lehs );</span>
<A nonspan ="APprompt"&t<span <pan class=GAPinput> " y^3-^ ^3x2 , 3y^2 , x^3+x^2 ]",</span>
[ 0 .. 14 ]>
<classG"gapgt</pan>class=">java.lang.StringIndexOutOfBoundsException: Range [78, 77) out of bounds for length 93
true
<>div>
<7E7AABA4="7java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 62
<h4>5.( x x 2matrix
<p>We want the map is currentlycurrently represented by the above 0 x 2 matrix
<div class""><pre>
<atdegree
<span class[,]^1x )
---------------
spanclass=GAPprompt">ap&t;/ sclass="">wmat : <sjava.lang.StringIndexOutOfBoundsException: Index 90 out of bounds for length 90
="APprompt>&t;/span span =APinput" ^-y^,x-x^ y+^2, ^3+^ ],/java.lang.StringIndexOutOfBoundsException: Range [120, 119) out of bounds for length 120
<=GAPprompt>;< s java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 88
<A 21 22)
<class=>>/>< class="java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 118
-x^3-x^2+2*y^2
</pre></div>
<<pTry a localization of a residue class ring:</p>
<div class="java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
<="GAPprompt>gap&t<span <span class=GAPinput>(M );/pan>
<pan="APprompt"gap&;/span> <="GAPinput">W :(wmat)span>
<A left module presented by 2 relations for 2 generators>
<span class="GAPprompt">gap><pan class="APprompt>apg;</java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 83
&containing 2 java.lang.StringIndexOutOfBoundsException: Range [53, 50) out of bounds for length 77
[ 0 .. 2 ]>
<span class="GAPprompt">gap></span> <span class="GAPinput">Display( Res );</span>
-------------------------
at homology degree: 2 0
-------------------------
(an empty 0 x 2 matrix)
the map is currently represented by the above 0 x 2 matrix
------------v------------
at homology degree: 1
Q[x,y]^(1 x 2)
-------------------------
y^2, x^2,
x*y^2-y^3,0
the map is currently represented by the above 2 x 2 matrix
------------v------------
at homology degree: 0
Q[x,y]^(1 x 2)
-------------------------
</pre></div>
<p>Try a localization of a residue class ring:</p>
<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">R1 := Qxy / ec;</span>
Q[x,y]/( -x^3-x^2+2*y^2 )
<span class="GAPprompt">gap></span> <span class="GAPinput">Display( R1 );</span>
<A residue class ring>
<span class="GAPprompt">gap></span> <span class="GAPinput">wmat1 := R1 * wmat;</span>
<A 2 x 2 matrix over a residue class ring>
<span class="GAPprompt">gap></span> <span class="GAPinput">LoadPackage( "LocalizeRingForHomalg" );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">R10 := LocalizeAt( R1 ,</span>
<span class="GAPprompt">></span> <span class
sclass=">&t<s><java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 107
<pan class">&java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 75
Q[,y/ ^+^-*y^ ))< |x ],|[y| &java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
<gt;</pan> ="">( R10 )<s>
<A local ring>
<pan =GAPprompt>gap<span><class=GAPinput"wmat10 =HomalgLocalMatrix(wmat,R10)</span
<A 2 class"GAPprompt>&t;span> <panclass=GAPinput" );</pan>
<panclass"">&</pans ="GAPinput":=LeftPresentation(wmat10);<span>
<A left<span =GAPprompt">gap></span> <span class="GAPinput">Display( R10 );</span>
<java.lang.StringIndexOutOfBoundsException: Range [51, 5) out of bounds for length 110
<A 2x2 matrix overa local >gt;
[ 0 .. 2 ]>
<span class="GAPprompt">gap><pan class=GAPprompt"gap;</ span class="GAPinput> := LeftPresentation wmat10 );</span>
--------------------<A left module presented by 2 relations for 2 generators>
at homology degree:2 0
-------------------------
(an 0 22 )
the map is currently represented by the span class="GAPprompt">gap></span> <span">isplay( Res10 );</pan>
------------v-------------------
at homology degree: 1
Q[x,y]/( x^ :2
-------------------------
x*y^2
y^2, y^4-2*y^3+2*y^2
modulo
/| 1 ]
themap bythejava.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 58
--java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 21
Q[y]/ ^+x-*^2 )&|[],| ] &t^12java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
--------------java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 12
<p>Try a[x^+x^*2]
<div class="example"><pre>
<span class="GAPprompt">java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
Q[x,y]_< x, y >
<ss="APprompt">ap>/span><spanjava.lang.StringIndexOutOfBoundsException: Range [52, 50) out of bounds for length 83
&;A local ring&t;
<span class="GAPprompt">gap></span> <span class="GAPinput">wmat0 := R0 * wmat;</java.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 25
tA 2 x 2 matrix over a local ring>
<span class="GAPprompt">gap></span> <span class="GAPinput">R01 := R0 / ( ec / R0 );</span>
Q[x,y]_< x, y >/( (-x^3-x^2+2*y^2)/1 )
<span class="GAPprompt">gap></span> <span class="GAPinput">Display( R01 );</span>
<A residue class ring>
<span class="GAPprompt">gap></span> <span class="GAPinput">wmat01 := R01 * wmat0;</span>
<A 2 x 2 matrix over a residue class ring>
<span class="GAPprompt">gap></span> <span class="GAPinput">W01 := LeftPresentation( wmat01 );</span>
<A left module presented by 2 relations for 2 generators>
<span class="GAPprompt">gap></span> <span class="GAPinput">Res01 := Resolution( 2 , W01 );</span>
<A right acyclic complex containing 2 morphisms of left modules at degrees
[ 0 .. 2 ]>
<span class="GAPprompt">gap></span> <span class="GAPinput">Display( Res01 );</span>
-------------------------
at homology degree: 2 0
-------------------------
(an empty 0 x 2 matrix)
the map is currently represented by the above 0 x 2 matrix
------------v------------
at homology degree: 1
Q[x,y]_< x, y >/( (x^3+x^2-2*y^2)/1 )^(1 x 2)
-------------------------
y^3+y^2,2*y^2, 0, x*y^2-y^3
/ 1
modulo [ (x^3+x^2-2*y^2)/1 ]
the map is currently represented by the above 2 x 2 matrix
------------v------------
at homology degree: 0
Q[x,y]_< x, y >/( (x^3+x^2-2*y^2)/1 )^(1 x 2)
-------------------------
</pre></div>
<h4>5.4 <span class="Heading">Testing the Intersection Formula</span></h4>
<p>We want to check Serre's intersection formula <span class="SimpleMath">i(I_1, I_2; 0)=∑_i(-1)^i length(Tor^R_0_i(R_0/I_1,R_0/I_2))</span> on an easy affine example.</p>
<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">LoadPackage( "RingsForHomalg" );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">R := HomalgFieldOfRationalsInSingular() * "w,x,y,z";;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">LoadPackage( "LocalizeRingForHomalg" );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">R0 := LocalizePolynomialRingAtZeroWithMora( R );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">M1 := HomalgMatrix( "[\</span>
<span class="GAPprompt">></span> <span class="GAPinput"> (w-x^2)*y, \</span>
<span class="GAPprompt">></span> <span class="GAPinput"> (w-x^2)*z, \</span>
<span class="GAPprompt">></span> <span class="GAPinput"> (x-w^2)*y, \</span>
<span class="GAPprompt">></span> <span class="GAPinput"> (x-w^2)*z \</span>
<span class="GAPprompt">></span> <span class="GAPinput"> ]", 4, 1, R );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">M2 := HomalgMatrix( "[\</span>
<span class="GAPprompt">></span> <span class="GAPinput"> (w-x^2)-y, \</span>
<span class="GAPprompt">></span> <span class="GAPinput"> (x-w^2)-z \</span>
<span class="GAPprompt">></span> <span class="GAPinput"> ]", 2, 1, <panclassjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
<">gap&t;s>< java.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 95
<="APpromptgapg;/> span =GAPinput>modI1: (M1);/span>
<span class="GAPprompt">gap></span> <span class="GAPinput">RmodI2 := LeftPresentation( M2 );;</span>
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
& objectconsisting 44left modulesat degrees [0. 3 ]java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
<span class="GAPprompt">gap></span> <span class="GAPinput">List( ObjectsOfComplex( T ), AffineDegree );</span>
[ 12, 4, 0, 0 ]
</pre></div>
<p>We read, that the intersection multiplicity is 12-4=8 globally.</p>
<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">M10 := R0 * M1;</span>
<A 4 x 1 matrix over a local (Mora) ring>
<span class="GAPprompt">gap></span> <span class="GAPinput">M20 := R0 * M2;</span>
<A 2 x 1 matrix over a local (Mora) ring>
<span class="GAPprompt">gap></span> <span class="GAPinput">R0modI10 := LeftPresentation( M10 );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">R0modI20 := LeftPresentation( M20 );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">T0 := Tor( R0modI10, R0modI20 );</span>
<A graded homology object consisting of 4 left modules at degrees [ 0 .. 3 ]>
<span class="GAPprompt">gap></span> <span class="GAPinput">List( ObjectsOfComplex( T0 ), AffineDegree );</span>
[ 3, 1, 0, 0 ]
</pre></div>
<p>The intersection multiplicity at zero is 3-1=2.</p>
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.554Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.