Skip to content

Commit

Permalink
added details to tests for toricLL
Browse files Browse the repository at this point in the history
  • Loading branch information
mkbrown5 committed Feb 7, 2024
1 parent bcbacb3 commit 1a82d2e
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions Toric-BGG/MultigradedBGG.m2
Original file line number Diff line number Diff line change
Expand Up @@ -438,28 +438,30 @@ assert(C_-1 == 0)
assert(C_1 == 0)
///

--todo: verify that these are the correct matrices for the two examples
-- then we'll actually manually input them for the assert

-- cyclic but non-free module:
TEST ///
restart
load "MultigradedBGG.m2"
needsPackage "NormalToricVarieties"
S = ring hirzebruchSurface 3;
E = dualRingToric S;
C2 = toricLL(coker matrix{{e_0, e_1}})
assert(isHomogeneous C2)
assert((C2.dd)^2 == 0)
C = toricLL(coker matrix{{e_0, e_1}})
assert(C == koszulComplex {x_2, x_3})
///

TEST ///
--non-cyclic module
S = ring weightedProjectiveSpace {1,1,2,3}
E = dualRingToric S
N = module ideal(e_2, e_1*e_3)
C = toricLL N
assert(isHomogeneous C)
assert((C3.dd)^2 == 0)
restart
load "MultigradedBGG.m2"
needsPackage "NormalToricVarieties"
E = dualRingToric (ZZ/101[x_0, x_1, Degrees => {1, 2}]);
N = module ideal(e_0, e_1);
C = toricLL(N);
S = ring C;
f = map(S^{{3}}, S^{{1}} ++ S^{{2}}, matrix{{x_1, -x_0}});
C' = complex({f})[-2];
assert(C == C')
///


Expand Down

0 comments on commit 1a82d2e

Please sign in to comment.