/
ReesAlgebra.m2
2621 lines (2418 loc) · 81 KB
/
ReesAlgebra.m2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-------------------------------------------------------------------------
-- PURPOSE : Compute the rees algebra of a module as it is defined in the
-- paper "What is the Rees algebra of a module?" by Craig Huneke,
-- David Eisenbud and Bernde Ulrich.
-- Also to compute many of the structures that require a Rees
-- algebra, including
-- analyticSpread
-- specialFiber
-- idealIntegralClosure
-- distinguished -- distinguished subvarieties of a variety
-- (components of the support of the normal cone)
-- PROGRAMMERs : Rees algebra code written by David Eisenbud,
-- Amelia Taylor, Sorin Popescu, and students (see the JSAG description)
-- UPDATE HISTORY : created 27 October 2006
-- updated 29 June 2008
-- updated 19-21 July 2017 (Berkeley M2 Workgroup)
-- updated November 2017
--
---------------------------------------------------------------------------
newPackage(
"ReesAlgebra",
Version => "2.2",
Date => "November 2017",
Authors => {{
Name => "David Eisenbud",
Email => "de@msri.org"},
{Name => "Amelia Taylor",
HomePage => "http://faculty1.coloradocollege.edu/~ataylor/",
Email => "amelia.taylor@coloradocollege.edu"},
{Name => "Sorin Popescu",
Email => "sorin@math.sunysb.edu"},
{Name => "Michael E. Stillman", Email => "mike@math.cornell.edu"}},
DebuggingMode => false,
Reload =>true,
Headline => "Rees algebras"
)
-*
restart
uninstallPackage "ReesAlgebra"
restart
installPackage "ReesAlgebra"
viewHelp ReesAlgebra
check "ReesAlgebra"
*-
export{
"analyticSpread",
"distinguished",
"intersectInP",
"isLinearType",
"minimalReduction",
"isReduction",
"multiplicity",
"normalCone",
"reductionNumber",
"reesIdeal",
"reesAlgebra",
"specialFiberIdeal",
"specialFiber",
"symmetricKernel",
"versalEmbedding",
"whichGm",
"Tries",
"jacobianDual",
"Jacobian",
"symmetricAlgebraIdeal",
"expectedReesIdeal",
"PlaneCurveSingularities",
--synonyms
"associatedGradedRing" => "normalCone",
"reesAlgebraIdeal" => "reesIdeal"
}
symmetricAlgebraIdeal = method(Options =>
{ VariableBaseName => "w",
})
symmetricAlgebraIdeal Module := Ideal => o -> M -> (
ideal presentation symmetricAlgebra(M, o))
symmetricAlgebraIdeal Ideal := Ideal => o -> M -> (
ideal presentation symmetricAlgebra(module M, o))
symmetricKernel = method(Options=>{Variable => "w"})
symmetricKernel(Matrix) := Ideal => o -> (f) -> (
if rank source f == 0 then return trim ideal(0_(ring f));
w := o.Variable;
if instance(w,String) then w = getSymbol w;
S := symmetricAlgebra(source f, VariableBaseName => w);
T := symmetricAlgebra target f;
trim ker symmetricAlgebra(T,S,f))
versalEmbedding = method()
versalEmbedding(Ideal) :=
versalEmbedding(Module) := Matrix => (M) -> (
if (class M) === Ideal then M = module M;
UE := transpose syz transpose presentation M;
map(target UE, M, UE)
)
fixupw = w -> if instance(w,String) then getSymbol w else w
reesIdeal = method(
Options => {
Jacobian =>false,
DegreeLimit => {},
BasisElementLimit => infinity,
PairLimit => infinity,
MinimalGenerators => true,
Strategy => null,
Variable => "w"
}
)
--the following uses a versal embedding
reesIdeal(Module) := Ideal => o -> M -> (
P := presentation minimalPresentation M;
UE := transpose syz transpose P;
symmetricKernel(UE,Variable => fixupw o.Variable)
)
--in the case of ideals we don't need a versal embedding; any embedding in the ring will do.
reesIdeal(Ideal) := Ideal => o-> (J) -> (
symmetricKernel(mingens J, Variable => fixupw o.Variable)
)
-- the following method, usually faster,
-- needs a user-provided non-zerodivisor a such that M[a^{-1}] is of linear type.
reesIdeal(Module,RingElement) := Ideal => o-> (I,I0) ->(
I' := trim I;
K' := if o.Jacobian == true then expectedReesIdeal I' else(
K' = symmetricAlgebraIdeal I';
R := ring K';
IR := substitute(I0, R);
trim saturate(K',IR))
)
reesIdeal(Ideal, RingElement) := Ideal => o -> (I,a) -> (
reesIdeal(module trim I, a)
)
reesAlgebra = method (TypicalValue=>Ring,
Options => {Jacobian => false,
DegreeLimit => {},
BasisElementLimit => infinity,
PairLimit => infinity,
MinimalGenerators => true,
Strategy => null,
Variable => "w"
}
)
-- accepts a Module, Ideal, or pair (depending on the method) and
-- returns the quotient ring isomorphic to the Rees Algebra rather
-- than just the defining ideal as in reesIdeal.
reesAlgebra Ideal :=
reesAlgebra Module := o-> M -> quotient reesIdeal(M, o)
reesAlgebra(Ideal, RingElement) :=
reesAlgebra(Module, RingElement) := o->(M,a)-> quotient reesIdeal(M,a,o)
isLinearType=method(TypicalValue =>Boolean,
Options => {
DegreeLimit => {},
BasisElementLimit => infinity,
PairLimit => infinity,
MinimalGenerators => true,
Strategy => null--,
--Variable => "w"
}
)
isLinearType(Ideal):=
isLinearType(Module):= o-> N->(
if class N === Ideal then N = module N;
M := prune N;
I := reesIdeal (M,o);
S := ring I;
P := promote(presentation M, S);
J := ideal((vars S) * P);
((gens I) % J) == 0)
isLinearType(Ideal, RingElement):=
isLinearType(Module, RingElement):= o-> (N,a)->(
if class N === Ideal then N = module N;
M := prune N;
I := reesIdeal(M,a,o);
S := ring I;
P := promote(presentation M, S);
J := ideal((vars S) * P);
((gens I) % J) == 0)
normalCone = method(TypicalValue => Ring,
Options => {
DegreeLimit => {},
BasisElementLimit => infinity,
PairLimit => infinity,
MinimalGenerators => true,
Strategy => null,
Variable => "w"
}
)
normalCone(Ideal) := o -> I -> (
RI := reesAlgebra(I,o);
RI/promote(I,RI)
)
normalCone(Ideal, RingElement) := o -> (I,a) -> (
RI := reesAlgebra(I,a,o);
RI/promote(I,RI)
)
multiplicity = method(
Options => {
DegreeLimit => {},
BasisElementLimit => infinity,
PairLimit => infinity,
MinimalGenerators => true,
Strategy => null,
Variable => "w"
}
)
multiplicity(Ideal) := ZZ => o -> I -> (
RI := normalCone (I,o);
J := ideal RI;
J1 := first flattenRing J;
S1 := newRing(ring J1, Degrees=>{numgens ring J1 : 1});
degree substitute(J1,S1)
)
multiplicity(Ideal,RingElement) := ZZ => o -> (I,a) -> (
RI := normalCone (I,a,o);
J := ideal RI;
J1 := first flattenRing J;
S1 := newRing(ring J1, Degrees=>{numgens ring J1 : 1});
degree substitute(J1,S1)
)
isEquigenerated = A -> (
if isHomogeneous A and
all(A_*, a->degree a == degree(A_*_0)) then true else false)
specialFiberIdeal=method(TypicalValue=>Ideal,
Options => {
DegreeLimit => {},
BasisElementLimit => infinity,
PairLimit => infinity,
MinimalGenerators => true,
Strategy => null,
Variable => "w",
Jacobian =>false
}
)
specialFiberIdeal(Ideal):= o-> I ->(
if isEquigenerated I then(
kk := ultimate(coefficientRing, ring I);
Z := symbol Z;
ker map(ring I, kk[Z_0..Z_(numgens I -1)], gens I)) else
specialFiberIdeal (module I, o))
specialFiberIdeal(Module):= o->i->(
Reesi:= reesIdeal(i, o);
S := ring Reesi;
kk := ultimate(coefficientRing, S);
T := kk[gens S];
minimalpres := map(T,S);
trim minimalpres Reesi
)
specialFiberIdeal(Ideal, RingElement):= o->(i,i0) ->(
if isEquigenerated i then return(
kk := ultimate(coefficientRing, ring i);
w := symbol w;
ker map(ring i, kk[w_0..w_(numgens i -1)], gens i));
specialFiberIdeal(module i, i0))
specialFiberIdeal(Module,RingElement):= o->(i,a)->(
Reesi:= reesIdeal(i, o);
S := ring Reesi;
kk := ultimate(coefficientRing, S);
T := kk[gens S];
minimalpres := map(T,S);
trim minimalpres Reesi
)
--The following returns a ring with just the new vars.
--The order of the generators is supposed to be the same as the order
--of the given generators of I.
specialFiber=method(TypicalValue=>Ring,
Options => {
DegreeLimit => {},
BasisElementLimit => infinity,
PairLimit => infinity,
MinimalGenerators => true,
Strategy => null,
Variable => "w",
Jacobian => false
}
)
specialFiber(Ideal):=
specialFiber(Module):= o->i->(
spIdeal := specialFiberIdeal(i,o);
(ring spIdeal)/spIdeal
)
specialFiber(Ideal, RingElement):=
specialFiber(Module, RingElement):= o->(i,a)->(
spIdeal := specialFiberIdeal(i,a,o);
(ring spIdeal)/spIdeal
)
isReduction=method(TypicalValue=>Boolean,
Options => {
DegreeLimit => {},
BasisElementLimit => infinity,
PairLimit => infinity,
MinimalGenerators => true,
Strategy => null,
Variable => "w"
}
)
--test whether the SECOND arg is a reduction of the FIRST arg
isReduction(Module,Module):=
isReduction(Ideal,Ideal):= o->(I,J)->(
if isSubset(J, I) then (
I' := trim I;
Sfib:= specialFiber(I', o);
Ifib:=ideal presentation Sfib;
kk := coefficientRing Sfib;
M := sub(gens J // gens I', kk);
M = promote(M, Sfib);
L :=(vars Sfib)*M;
0===dim ideal L)
else false)
isReduction(Module,Module,RingElement):=
isReduction(Ideal,Ideal,RingElement):= o->(I,J,a)->(
if isSubset(J, I) then (
Sfib :=specialFiber(I, a, o);
Ifib:= ideal presentation Sfib;
kk := coefficientRing Sfib;
M := sub(gens J // gens I, kk);
M = promote(M, Sfib);
L :=(vars Sfib)*M;
0===dim ideal L)
else false)
analyticSpread = method(
Options => {
DegreeLimit => {},
BasisElementLimit => infinity,
PairLimit => infinity,
MinimalGenerators => true,
Strategy => null--,
--Variable => "w"
}
)
analyticSpread(Ideal) :=
analyticSpread(Module) := ZZ => o->(M) -> dim specialFiberIdeal(M,o)
analyticSpread(Ideal,RingElement) :=
analyticSpread(Module,RingElement) := ZZ => o->(M,a) -> dim specialFiberIdeal(M,a,o)
distinguished = method(Options => {
DegreeLimit => {},
BasisElementLimit => infinity,
PairLimit => infinity,
MinimalGenerators => true,
Strategy => null,
Variable => "w"
}
)
distinguished(RingMap, Ideal) := o -> (f,I) ->(
--f: S -> R, I\subset S, J\subset R, f(I)\subset J:
S := source f;
R := target f;
NI := normalCone (I,o);
NJ := normalCone(f I,o);
K := ker map(NJ,NI,(vars NJ));
L := decompose K;
M := apply(L,P->(Pcomponent := K:(saturate(K,P))));
--the P-primary component. The multiplicity is
--computed as (degree M_i)/(degree L_i)
prune NI;
mp := NI.minimalPresentationMap;
apply(#L, i -> {(degree mp(M_i))/(degree mp(L_i)),kernel(map(NI/L_i, S/I))})
)
distinguished(Ideal,Ideal) := o -> (I,J) -> (
--I,J ideals in the same ring S
S := ring I;
f := map(S/J,S);
distinguished(f,I)
)
distinguished(Ideal) := o -> I -> (
S := ring I;
f := map(S,S);
distinguished(f,I)
)
intersectInP = method(Options=>{
DegreeLimit => {},
BasisElementLimit => infinity,
PairLimit => infinity,
MinimalGenerators => true,
Strategy => null,
Variable => "w"
})
intersectInP(Ideal,Ideal) := o->(I,J) ->(
--I,J in a polynomial ring; intersection done with the diagonal, then pulled back
P := ring I;
kk := coefficientRing P;
n := numgens P;
if P =!=ring J then error"requires two ideals in the same ring";
if not isPolynomialRing P and isField kk then
error" ring should be a polynomial ring over a field";
X:=symbol X;
Y:=symbol Y;
PP := kk[X_0..X_(n-1),Y_0..Y_(n-1)];
diag := ideal apply(n, i-> X_i-Y_i);
toP := map(P,PP/diag,vars P | vars P);
inX := map(PP,P,apply(n,i->X_i));
inY := map(PP,P,apply(n,i->Y_i));
II := inX I + inY J;
L := distinguished(diag,II);
apply(L, l-> {l_0, trim toP l_1})
)
rand = method()
rand(Ideal, ZZ, ZZ) := (I,s,d) ->
--s elements of degree d chosen at random from I
ideal ((gens I)*random(source gens I, (ring I)^{s:-d}))
rand(Ideal, ZZ) := (I,s) ->(
--without the third argument d, the function takes
--random linear combinations of the generators, without
--regard for the degrees, thus sometimes inhomogeneous.
kk := ultimate(coefficientRing, ring I);
choose1 := I -> sum(I_*, i-> random(kk)*i);
ideal apply(s, i-> choose1 I))
rand(Module, ZZ) := (M,s) ->(
--random linear combinations of the generators, without
--regard for the degrees, thus sometimes inhomogeneous.
kk := ultimate(coefficientRing, ring M);
choose1 := M -> sum(M_*, i-> random(kk)*i);
map(M,(ring M)^s, matrix apply(s, i-> choose1 M))
)
minimalReduction = method(
Options => {
DegreeLimit => {},
BasisElementLimit => infinity,
PairLimit => infinity,
MinimalGenerators => true,
Strategy => null,
--Variable => "w",
Tries => 20
}
)
minimalReduction Ideal := Ideal => o -> i -> (
S:=ring i;
ell := analyticSpread(i,
DegreeLimit => o.DegreeLimit,
BasisElementLimit => o.BasisElementLimit,
PairLimit => o.PairLimit,
MinimalGenerators => true,
Strategy => o.Strategy
); -- the list is necessary because isReduction doesn't know about "Tries"
J:=null;
for b from 1 to o.Tries do(
J = rand(i, ell);
if isReduction(i,J,
DegreeLimit => o.DegreeLimit,
BasisElementLimit => o.BasisElementLimit,
PairLimit => o.PairLimit,
MinimalGenerators => true,
Strategy => o.Strategy
)
then return J);
<<o.Tries <<" iterations were not enough to randomly find a minimal reduction"; endl;
error("not random enough")
)
reductionNumber = method()
reductionNumber (Ideal,Ideal) := (i,j) -> (
rN:=0;
I := (gens i)%j; -- will be a power of i
if isHomogeneous j then (
while I!=0 do (
j = trim(i*j);
I = (gens trim (i*ideal I))%j;
rN =rN+1))
else(
M:= ideal vars ring i; -- we're pretending to be in a local ring
while I!=0 do (
j = trim(i*j+M*ideal I);
I = (gens trim (i*ideal I))%j;
rN =rN+1));
rN)
whichGm = method()
whichGm Ideal := i -> (
--This *probabilistic* procedure returns the largest number m for which the ideal i satsifies
--the condition
--
--G_m: i_P is generated by <= codim P elements for all P with codim P < m.
--
f:=presentation module i;
S:=ring f;
if f==0 then "infinity" else(
q:=rank target f;
maxSource := (max degrees source f)_0;
minTarget := (min degrees target f)_0;
randomMinor := (f,t)->(
if t<=0 then ideal(1_S) else
if t >min(rank source f, rank target f) then ideal(0_S) else
ideal det (random(S^{t:-minTarget},target f)*f*random(source f, S^{t:-maxSource})));
d:=dim ring i;
m:=codim i;
j:=i+randomMinor(f,q-m);
while m<d+1 and codim j > m do (
m=m+1;
j=j+randomMinor(f, q-m));
if m<=d then m else "infinity"))
------------------------------------------------------------------
jacobianDual = method(Options=>{Variable => "w"})
jacobianDual Matrix := o-> phi ->(
S := ring phi;
X := vars S;
ST := symmetricAlgebra(target phi, VariableBaseName => fixupw o.Variable);
(vars ST * promote(phi, ST))//promote(X,ST)
)
jacobianDual(Matrix,Matrix, Matrix) := o -> (phi,X,T) -> (
--Suppose that T is a 1 x m matrix of variables in the ring ST = R[T_0..T_(m-1)],
--and phi is a matrix over ST that is defined over the subring R.
--Suppose also that X is a 1 x n matrix defined over ST whose
--entries generate ideal containing the entries of the matrix phi.
--the routine returns a matrix psi over ST such that
--T phi = X psi.
--Thus psi is a Jacobian dual of phi with respect to X.
if numcols T != numrows phi then error"if phi has m rows then T must have m cols.";
psi := (T * phi)//X;
--check that this worked:
if not T*phi == X*psi then error"requires
ideal flatten entries matrix phi subset ideal flatten entries X";
psi
)
expectedReesIdeal = method()
expectedReesIdeal Ideal := I -> expectedReesIdeal module I
expectedReesIdeal Module := Ideal => I -> (
S := ring I;
I1 := symmetricAlgebraIdeal I;
S1 := ring I1;
if numgens I < numgens S then return I1;
X := promote(vars ring I, S1);
jImat := jacobianDual (presentation I, X, vars S1);
I2 := minors(numrows jImat,jImat);
trim(I1+I2)
)
beginDocumentation()
///
restart
uninstallPackage "ReesAlgebra"
restart
installPackage "ReesAlgebra"
viewHelp ReesAlgebra
check "ReesAlgebra"
///
doc ///
Key
ReesAlgebra
Headline
Compute Rees algebras and their invariants
Description
Text
The Rees Algebra of an ideal is the
commutative algebra analogue of the blow up in algebraic
geometry. (In fact, the ``Rees Algebra''
is sometimes called the ``blowup algebra''.)
A great deal of modern
commutative algebra is devoted to studying them.
Classically the Rees algebra appeared as the bihomogeneous coordinate
ring of the blowup of a projective variety along a subvariety or
subscheme, used for resolution of singularities.
Though this is computationally slow on interesting examples,
we illustrate with some elementary cases of resolution of plane curve
singularities in @TO PlaneCurveSingularities@.
The Rees algebra was
studied in the commutative algebra context (in the case where M is an ideal of a ring R),
by David Rees in
a famous paper,
{\em On a problem of Zariski}, Illinois J. Math. (1958) 145-149).
In fact,
Rees mainly studied the ring
$R[It,t^{-1}]$, now also called the `extended Rees
Algebra' of I.
The original goal of this package, first written around 2002,
was to compute the Rees
algebra of a module as it is defined in the paper {\em What is the
Rees algebra of a module?}, by Craig Huneke, David Eisenbud and Bernd
Ulrich, Proc. Am. Math. Soc. 131, 701-708, 2002.
It has since expanded to include routines
for computing many of the invariants of an ideal or module
defined in terms of Rees algebras.
The Rees algebra, or more precisely the associated graded ring, which
we compute as a biproduct, plays a central role in modern intersection
theory: it is the basis of the Fulton-MacPherson definition of the
intersection product in the Chow ring. We illustrate this in
@TO distinguished@ and @TO intersectInP@.
The Rees algebra of a module M is defined
by a certain ideal in the symmetric
algebra $Sym(M)$ of $M$, or, as in this package,
by an ideal in the symmetric algebra of any
free module $F$ that maps onto $M$.
When $\phi: M \to G$ is the {\em versal embedding}
of $M$, then, by the definition of Huneke-Eisenbud-Ulrich,
the {\em Rees ideal of M} is the kernel of $Sym(\phi)$. Thus the
Rees Algebra of M is the image of $Sym(\phi)$.
In most cases the kernel of the
$Sym(\phi)$ is the same for any embedding $\phi$ of
$M$ into a free module:
{\bf Theorem (Eisenbud-Huneke-Ulrich, Thms 0.2 and 1.4):} Let R be a Noetherian ring
and let $M$ be a finitely generated R-module. Let $\phi: M \to G$
be a versal map of $M$ to a free module. Assume that $\phi$ is an inclusion, and let
$\psi: M \to G'$ be any inclusion. If $R$ is torsion-free over $\ZZ$
or $R$ is unmixed and generically Gorenstein, or $M$ is free locally
at each associated prime of $R$, or $G=R$, then the kernel of $Sym(\phi)$ and the
kernel of $Sym(\psi)$ are equal.
It follows that in the good cases above the Rees
ideal is equal to the saturation
of the defining ideal of symmetric
algebra of $M$ with respect to any
element f of the ground ring such
that $M[f^{-1}]$ is free, or is simply {\em of linear type},
meaning that $Sym(\phi)$ is a monomorphism. This is the case,
for example, when M is an ideal and $M[f^{-1}]$ is generated
by a regular sequence.
This fact often leads to
a faster computation than computing the
kernel of $Sym(\phi)$ directly.
Here is an example of the pathological case of
inclusions $\phi: M \to G$ and $\psi: M \to G'$ where $ker(\phi) \neq ker(\psi)$.
In the following, any finite characteristic would work as well.
Example
p = 5;
R = ZZ/p[x,y,z]/(ideal(x^p,y^p)+(ideal(x,y,z))^(p+1));
M = module ideal(z);
Text
It is easy to check that M \cong R^1/(x,y,z)^p.
We write iota: M\to R^1 for the embedding as an ideal
and psi for the embedding M \to R^2 sending z to (x,y).
Example
iota = map(R^1,M,matrix{{z}});
psi = map(R^2,M,matrix{{x},{y}});
Text
Finally, a versal embedding is M \to R^3,
sending z to (x,y,z):
Example
phi = versalEmbedding(M);
Text
We now compute the kernels of the three maps
on symmetric algebras:
Example
Iiota = symmetricKernel iota;
Ipsi = symmetricKernel psi;
Iphi = symmetricKernel phi;
Text
and check that the ones corresponding to phi and iota
are equal, whereas the ones corresponding to psi and phi
are not:
Example
Iiota == Iphi
Ipsi == Iphi
Text
In fact, they differ in degree p:
Example
numcols basis(p,Iphi)
numcols basis(p,Ipsi)
SeeAlso
PlaneCurveSingularities
distinguished
intersectInP
///
doc ///
Key
symmetricAlgebraIdeal
(symmetricAlgebraIdeal,Ideal)
(symmetricAlgebraIdeal,Module)
[symmetricAlgebraIdeal,VariableBaseName]
Headline
Ideal of the symmetric algebra of an ideal or module
Usage
I = symmetricAlgebraIdeal J
Inputs
I:Ideal
I: Module
Outputs
J:Ideal
Description
Text
Uses the built-in function @TO symmetricAlgebra@. The function returns J an ideal in a
new ring, with generators corresponding to those of th eideal or module I. The name
of the new generators may be set, for example to T, with the form
symmetricAlgebraIdeal(J, VariableBaseName =>"T")
SeeAlso
reesIdeal
///
{*
viewHelp symmetricAlgebra
*}
doc ///
Key
symmetricKernel
(symmetricKernel,Matrix)
Headline
Compute the Rees ring of the image of a matrix
Usage
I = symmetricKernel f
Inputs
f:Matrix
Outputs
:Ideal
the defining ideal of the image of $Sym(f)$
Description
Text
Given a map between free modules $f: F \to G$ this function computes the
kernel of the induced map of symmetric algebras, $Sym(f): Sym(F) \to
Sym(G)$ as an ideal in $Sym(F)$. When $f$ defines a versal embedding
of $Im f$ then by the definition
of Huneke-Eisenbud-Ulrich) this is equal to the defining ideal of the Rees
algebra of the module Im f, the Rees ideal of M.
When $M$ is an ideal (and in general in characteristic 0) then, by a
theorem of Eisenbud-Huneke-Ulrich,
any embedding of M into a free module may be used,
and it follows that the Rees ideal is equal to the saturation
of the defining ideal of symmetric algebra of M with respect to any
element f of the ground ring such that M[f^{-1}] is free. And this
often gives a faster computation.
Most users will prefer to use one of the front
end commands @TO reesAlgebra@, @TO reesIdeal@ to compute the ideal.
Example
R = QQ[a..e]
J = monomialCurveIdeal(R, {1,2,3})
symmetricKernel (gens J)
Text
Let I be the ideal returned and let S be the ring it lives in
(also printed). The ring S/I is isomorphic to
the Rees algebra R[Jt]. We can get the same information
above using {\tt reesIdeal(J)}, see @TO reesIdeal@. Note that the degree length
of S is one more than the degree length of R; the old variables
now have first degree 0, while the new variables have first degree 1.
Example
S = ring oo;
(monoid S).Options.Degrees
Text
The function {\tt symmetricKernel} can also be computed over a quotient ring.
Example
R = QQ[x,y,z]/ideal(x*y^2-z^9)
J = ideal(x,y,z)
symmetricKernel(gens J)
Text
The many ways of working with this function allows the system
to compute both the classic Rees algebra of an ideal over a ring
(polynomial or quotient) and to compute the the Rees algebra of a
module or ideal using a versal embedding as described in the paper
of Eisenbud, Huneke and Ulrich. It also allows different ways of
setting up the quotient ring.
SeeAlso
reesIdeal
reesAlgebra
versalEmbedding
///
doc ///
Key
Jacobian
[reesAlgebra, Jacobian]
Headline
Choose whether to use the Jacobian dual in the computation
Usage
reesIdeal(..., Jacobian => true)
SeeAlso
reesIdeal
reesAlgebra
specialFiberIdeal
specialFiber
expectedReesIdeal
///
///
Description
Text
When searching for a minimal reduction of an ideal over a field with
a small number of elements, random choices of generators are often
not good enough. This option controls how many times the routine
will try new random choices before giving up and reporting an error.
Example
setRandomSeed(314159268)
kk=ZZ/2
S = kk[a,b,c,d];
I = monomialCurveIdeal(S, {1,3,4});
minimalReduction(I, Tries=>30);
///
doc ///
Key
[minimalReduction, Tries]
Tries
Headline
Set the number of random tries to compute a minimal reduction
Usage
minimalReduction(..., Tries => 20)
Description
Text
When searching for a minimal reduction of an ideal over a field with
a small number of elements, random choices of generators are often
not good enough. This option controls how many times the routine
will try new random choices before giving up and reporting an error.
Example
setRandomSeed(314159268)
kk=ZZ/2
S = kk[a,b,c,d];
I = monomialCurveIdeal(S, {1,3,4});
minimalReduction(I, Tries=>30);
///
doc ///
Key
versalEmbedding
(versalEmbedding,Ideal)
(versalEmbedding,Module)
Headline
Compute a versal embedding
Usage
u = versalEmbedding M
Inputs
M:Module
or @ofClass Ideal@
Outputs
u:Matrix
a matrix that induces a versal embedding of the R-module M
into a free R-module.
Description
Text
For any module M over a Noetherian ring R there is a map $u: M \to H$
that is versal for maps from M to free modules; that is,
such that any map from M to a free module factors through u. Such a map
may be constructed by choosing a set of s generators for Hom(M,R), and using
them as the components of a map $u: M \to H := R^s$.
(NOTE: In the paper of Eisenbud, Huneke and Ulrich
cited below, the versal map is described with the
term ``universal'', which is misleading, since the induced map
from H is generally not unique.)
Suppose that $M$ has a free presentation $F \to G$, and let $u1$ be the
map $u1: G\to H$ induced by composing $u$ with the surjection $p: G \to
M$. By definition, the Rees algebra of $M$ is the image of the induced
map $Sym(u1): Sym(G)\to Sym(H)$, and thus can be computed with
symmetricKernel(u1). The map u is computed from the dual of the first
syzygy map of the dual of the presentation of $M$.
We first give a simple example looking at the syzygy matrix of the cube of
the maximial ideal of a polynomial ring.
Example
S = ZZ/101[x,y,z];
FF=res ((ideal vars S)^3);
M=coker (FF.dd_2)
versalEmbedding M
Text
A more complicated example.
Example
x = symbol x;
R=QQ[x_1..x_8];
m1=genericMatrix(R,x_1,2,2); m2=genericMatrix(R,x_5,2,2);
m=m1*m2
d1=minors(2,m1); d2=minors(2,m2);
M=matrix{{0,d1_0,m_(0,0),m_(0,1)}, {0,0,m_(1,0),m_(1,1)}, {0,0,0,d2_0}, {0,0,0,0}}
M=M-(transpose M);
N= coker(res coker transpose M).dd_2
versalEmbedding(N)
Text
Here is an example from the paper "What is the Rees Algebra of a
Module" by David Eisenbud, Craig Huneke and Bernd Ulrich,
Proc. Am. Math. Soc. 131, 701-708, 2002. The example shows that one
cannot, in general, define the Rees algebra of a module by using *any*
embedding of that module, even when the module is isomorphic to an ideal;
this is the reason for using the map provided by the routine
versalEmbedding. Note that the same paper shows that such problems do
not arise when the ring is torsion-free as a ZZ-module, or when one takes
the natural embedding of the ideal into the ring.
Example
p = 3;
S = ZZ/p[x,y,z];
R = S/((ideal(x^p,y^p))+(ideal(x,y,z))^(p+1))
I = module ideal(z)
Text
As a module (or ideal), $Hom(I,R^1)$ is minimally generated by 3 elements,
and thus a versal embedding of $I$ into a free module is into $R^3$.
Example
betti Hom(I,R^1)
ui = versalEmbedding I
Text
it is injective:
Example
kernel ui
Text
It is easy to make two other embeddings of $I$ into free modules. One is
the natural inclusion of $I$ into $R$ as an ideal:
Example
inci = map(R^1,I,matrix{{z}})
kernel inci
Text
Another is the map defined by multiplication by x and y.
Example
gi = map(R^2, I, matrix{{x},{y}})
kernel gi
Text
We can compose $ui, inci$ and $gi$ with a surjection $R\to i$ to get maps
$u:R^1 \to R^3, inc: R^1 \to R^1$ and $g:R^1 \to R^2$ having image $i$.
Example
u= map(R^3,R^{-1},ui)
inc=map(R^1, R^{-1}, matrix{{z}})
g=map(R^2, R^{-1}, matrix{{x},{y}})
Text
We now form the symmetric kernels of these maps and compare them. Note
that since symmetricKernel defines a new ring, we must bring them to the
same ring to make the comparison. First the map u, which would be used
by reesIdeal:
Example
A=symmetricKernel u
Text
Next the inclusion:
Example
B1=symmetricKernel inc
B=(map(ring A, ring B1)) B1
Text
Finallly, the map g1:
Example
C1 = symmetricKernel g
C=(map(ring A, ring C1)) C1
Text
The following test yields ``true'', as implied by the theorem of
Eisenbud, Huneke and Ulrich.
Example
A==B
Text
But the following yields ``false'', showing that one must take care
in general, which inclusion one uses.
Example
A==C
SeeAlso
reesIdeal