Skip to content

Commit 334421f

Browse files
committed
Updates to Depth.m2, including those in 1.26.06
1 parent c571ccd commit 334421f

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

M2/Macaulay2/packages/Depth.m2

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,6 @@ I = ideal vars T;
112112
assert( depth(I,T) === 0 )
113113
assert( depth(I,T^1) === 0 )
114114
assert( depth T === 0 )
115-
///
116-
117-
TEST///
118-
S = ZZ/101[x_1..x_(9)];
119-
J = ideal(x_1,x_2,x_3,x_4,x_5,x_6,x_7,x_8);
120-
T = S/J^3; -- The ring T has dimension 1, not 0 as in the previous test.
121-
I = ideal vars T;
122-
assert( depth(I,T) === 1 )
123-
assert( depth(I,T^1) === 1 )
124-
assert( depth T === 1 )
125115
///
126116

127117
TEST/// --- test 2
@@ -194,7 +184,7 @@ depth(Module) := ZZ => M -> (
194184
m := sub(presentation M, S0);
195185
COK := prune coker(sub(m,S0) | (presentation S ** target m));
196186

197-
numgens S0 - length freeResolution COK
187+
numgens S0 - length freeResolution COK
198188
-- depth(ideal gens ring M,M) -- old method
199189
)
200190

@@ -884,9 +874,8 @@ TEST/// --- test 15
884874
///
885875
TEST/// --- test 16
886876
S = ZZ/101[a,b,c,d]
887-
---K = koszulComplex vars S
888-
---apply(numgens S, i-> depth coker K.dd_(i+1))
889-
877+
K = koszul vars S
878+
apply(numgens S, i-> depth coker K.dd_(i+1))
890879
I = ideal"ab,bc,cd,da"
891880
assert(codim I == 2)
892881
setRandomSeed 0
@@ -917,6 +906,15 @@ assert (codim I == 2)
917906
assert(systemOfParameters(I, Seed => ideal "ex-fy") === ideal "ex-fy,ax-by")
918907
///
919908

909+
TEST/// --- test 20
910+
S = ZZ/101[x_1..x_(9)];
911+
J = ideal(x_1,x_2,x_3,x_4,x_5,x_6,x_7,x_8);
912+
T = S/J^3; -- The ring T has dimension 1, not 0 as in test 1.
913+
I = ideal vars T;
914+
assert( depth(I,T) === 1 )
915+
assert( depth(I,T^1) === 1 )
916+
assert( depth T === 1 )
917+
920918
end--
921919

922920
restart

0 commit comments

Comments
 (0)