Skip to content

Commit

Permalink
added idealIChi
Browse files Browse the repository at this point in the history
  • Loading branch information
aryamanmaithani committed Jun 3, 2024
1 parent 7db42cf commit 818e029
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
18 changes: 15 additions & 3 deletions GLIdeals.m2
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ randomLam(ZZ, ZZ) := (n,k) -> (

idealILambda = method()
idealILambda(Matrix,List) := (X,lam) -> (
n:=rank target X;
m:=rank source X;
n:=rank source X;
m:=rank target X;
kk:=baseRing ring X;
if char kk !=0 then(
error "Base ring is not characteristic 0";
Expand All @@ -143,7 +143,19 @@ idealILambda(Matrix,List) := (X,lam) -> (
return ideal minJ;
);


idealIChi = method()
idealIChi(Matrix,List) := (X,chi) -> (
-- chi is a list of partitions
-- return sum of ideals idealILambda(X, chi_i) for all i
R := ring X;
if #chi == 0 then return ideal(0_R);
c := minimizeChi(chi);
I := idealILambda(X, c#0);
for i in 1..#c-1 do(
I = I + idealILambda(X, c#i);
);
return I;
);

partitionsLeq = method();
partitionsLeq(Partition, Partition) := (A, B) -> (
Expand Down
5 changes: 4 additions & 1 deletion aryaman.m2
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@ minimizeChi(List) := (chi) -> (
return apply(minimals, P -> toList(P));
)

c = apply(5, i -> randomLam(10, 10));
c = apply(5, i -> randomLam(3, 2));
R = QQ[X_(1, 1)..X_(3, 4)];
XM = transpose genericMatrix(R, 4, 3);
idealIChi(XM, c)

0 comments on commit 818e029

Please sign in to comment.