1 USING: koszul tools.test kernel sequences assocs namespaces ;
5 { V{ { } } V{ { 1 } } V{ { 2 3 } { 7 8 } } V{ { 4 5 6 } } }
7 { { 1 } { 2 3 } { 4 5 6 } { 7 8 } { } } graded
10 SYMBOLS: x1 x2 x3 x4 x5 x6 z1 z2 ;
12 [ H{ { { x1 } 3 } } ] [ x1 3 wedge ] unit-test
14 [ H{ { { x1 } 3 } { { x2 } 4 } } ]
15 [ x1 3 wedge x2 4 wedge alt+ ] unit-test
20 [ H{ { { x1 x2 z2 } 1 } { { x3 x4 z1 } -1 } } ]
21 [ z1 z2 wedge d ] unit-test
24 boundaries get clear-assoc
32 [ { 1 0 0 1 } ] [ { x y z } graded-betti ] unit-test
35 boundaries get clear-assoc
39 [ { 1 1 0 } ] [ { x y } graded-betti ] unit-test
42 boundaries get clear-assoc
44 x1 x2 wedge x3 x4 wedge alt+ z d=
47 [ { x1 x2 x3 x4 z } graded-betti ] unit-test
49 [ { { 1 4 5 0 0 } { 0 0 5 4 1 } } ]
50 [ { x1 x2 x3 x4 } { z } bigraded-betti ] unit-test
52 ! Free 2-step on 4 generators
53 boundaries get clear-assoc
55 SYMBOLS: e12 e13 e14 e23 e24 e34 ;
64 [ { 1 4 20 56 84 90 84 56 20 4 1 } ]
65 [ { x1 x2 x3 x4 e12 e13 e14 e23 e24 e34 } graded-betti ]
68 ! Make sure this works
69 [ ] [ e12 d alt. ] unit-test
72 { x1 x2 x3 x4 x5 x6 } { w z }
73 bigraded-laplacian-kernel bigraded-basis.