Skip to content

Commit 72cdf81

Browse files
committed
local backup copy of HilbertSchemes.m2
1 parent 31e79f7 commit 72cdf81

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

Positroid.m2

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export{
2727
"basicPositroidVariety", -- NOT DOCUMENTED
2828
"leadTermBasicPositroid", -- NOT DOCUMENTED
2929
"leadTermBasicPositroidWrapAround", -- NOT DOCUMENTED
30-
"hodgeDegenerationBasicPositroid" -- NOT DOCUMENTED
30+
"hodgeDegenerationBasicPositroid", -- NOT DOCUMENTED
31+
"getMultidegree" -- NOT DOCUMENTED
3132
}
3233

3334
------------------------------------------------------------------------------
@@ -246,13 +247,14 @@ hodgeDegenerationBasicPositroid(ZZ,ZZ,List,ZZ) := o -> (k,n,L,r) -> (
246247
if any(L, i-> i==1) and any(L, i-> i==n) then (
247248
tabs := leadTermBasicPositroidWrapAround(k,n,L,r);
248249
)
249-
else (tabs := leadTermBasicPositroid(k,n,L,r));
250+
else (tabs = leadTermBasicPositroid(k,n,L,r));
250251
ideal apply(tabs, tab -> product(apply(entries tab, i -> varHash#i)))
251252
);
252253

253254
getMultidegree = method();
254255

255256
getMultidegree(MonomialIdeal) := I -> (
257+
t := symbol t;
256258
R := ring I;
257259
varList := R_*;
258260
n := last last baseName varList#(#varList-1);
@@ -339,6 +341,7 @@ end---------------------------------------------------------------------------
339341
------------------------------------------------------------------------------
340342
------------------------------------------------------------------------------
341343

344+
I =
342345

343346
---------------------
344347
--Ayah's sandbox
@@ -347,6 +350,7 @@ end---------------------------------------------------------------------------
347350
I1 = hodgeDegenerationBasicPositroid(3,6,{5,6,1,2,3},2);
348351
I2 = sub(hodgeDegenerationBasicPositroid(3,6,{1,2},1),ring I1);
349352
I = I1+I2;
353+
getMultidegree monomialIdeal I
350354
codim I
351355

352356
J2 = sub(hodgeDegenerationBasicPositroid(3,6,{6,1,2},1),ring I1);

symInvariant.m2

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,15 +285,18 @@ netList listFacetGens(L,2,2)
285285
----------------------------
286286
-*
287287
1 1 0
288-
1 0 1
288+
1 0 1
289+
0 1 1
289290
*-
290291

291-
Q = ZZ/101[x_(1,1)..x_(2,3)];
292-
I = ideal(x_(1,1)*x_(1,2)*x_(2,1)*x_(2,3));
293-
L = (idealSym(I,2,3,5))/monomialIdeal;
292+
Q = ZZ/101[x_(1,1)..x_(3,3)];
293+
I = ideal(x_(1,1)*x_(1,2)*x_(2,1)*x_(2,3)*x_(3,2)*x_(3,3));
294+
L = (idealSym(I,3,3,6))/monomialIdeal;
294295

295-
netList listDualGens(L,2,3)
296-
netList listFacetGens(L,2,3)
296+
netList listDualGens(L,3,3)
297+
298+
apply(listDualGens(L,3,3), i-> #i)
299+
netList listFacetGens(L,3,3)
297300

298301
------------------------------------
299302
--Examples: 2-orbits, coprime
@@ -315,6 +318,8 @@ L1 = (idealSym(I1,2,2,5))/monomialIdeal
315318
L2 = (idealSym(I2,2,2,5))/monomialIdeal
316319
L = (idealSym(I,2,2,5))/monomialIdeal
317320

321+
apply(listDualGens(L,2,2), i-> #i)
322+
318323
--List the Alexander dual generators for L1, L2, and L
319324
netList {listDualGens(L1,2,2), listDualGens(L2,2,2), listDualGens(L,2,2)}
320325
-
@@ -451,6 +456,7 @@ L1 = (idealSym(I1,3,3,5))/monomialIdeal;
451456
L2 = (idealSym(I2,3,3,5))/monomialIdeal;
452457
L = (idealSym(I,3,3,5))/monomialIdeal;
453458

459+
apply(listDualGens(L,3,3), i-> #i)
454460

455461
netList {listDualGens(L1,3,3), listDualGens(L2,3,3), listDualGens(L,3,3)}
456462

0 commit comments

Comments
 (0)