source: git/Tst/Long/sheafcoh_l.tst @ 19609c

spielwiese
Last change on this file since 19609c was dc94f9, checked in by Hans Schönemann <hannes@…>, 19 years ago
*hannes/lossen: sheafcoh_*.* git-svn-id: file:///usr/local/Singular/svn/trunk@8269 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 7.6 KB
Line 
1LIB "tst.lib";
2tst_init();
3
4LIB "sheafcoh.lib";
5
6// Kohomologie der Strukturgarbe von P^7:
7//----------------------------------------
8ring r=0,x(1..8),dp;
9module M=0;
10def A=sheafCoh(0,-10,5);
11def B=sheafCohBGG(0,-10,3);
12displayCohom(A,-10,5,7);
13displayCohom(B,-10,3,7);
14kill r;
15
16// Kohomologie der Idealgarbe der Veronese Flaeche in $\P^3$:
17//------------------------------------------------------------
18 ring S = 32003, x(0..4), dp;
19 module MI=maxideal(1);
20 attrib(MI,"isHomog",intvec(-1)); 
21 resolution kos = nres(MI,0);
22 print(betti(kos),"betti");
23 matrix alpha0 = random(32002,10,3);
24 module pres = module(alpha0)+kos[3];
25 attrib(pres,"isHomog",intvec(1,1,1,1,1,1,1,1,1,1));
26 resolution fcokernel = mres(pres,0);
27 print(betti(fcokernel),"betti");
28 module dir = transpose(pres);
29 attrib(dir,"isHomog",intvec(-1,-1,-1,-2,-2,-2,
30                             -2,-2,-2,-2,-2,-2,-2));
31 resolution fdir = mres(dir,2);
32 print(betti(fdir),"betti");
33 ideal I = groebner(flatten(fdir[2]));
34 resolution FI = mres(I,0);
35 print(betti(FI),"betti");
36 module F=FI[2];
37 A=sheafCoh(F,-6,6);
38 B=sheafCohBGG(F,-6,6);
39 
40 dimH(3,F,-4);
41 dimH(1,F,1);
42
43 kill S;
44
45// Kohomologie der Idealgarbe einer Flaeche in $\P^4$:
46//------------------------------------------------------------
47 ring S = 32003, x(0..4), dp;
48 resolution kos = nres(maxideal(1),0);
49 betti(kos);
50 matrix kos5 = kos[5];
51 matrix tphi = transpose(dsum(kos5,kos5));
52 matrix kos3 = kos[3];
53 matrix psi = dsum(kos3,kos3);
54 matrix beta1 = random(32002,20,2);
55 matrix tbeta1tilde = transpose(psi*beta1);
56 matrix tbeta0 = lift(tphi,tbeta1tilde);
57 matrix kos4 = kos[4];
58 matrix tkos4pluskos4 = transpose(dsum(kos4,kos4));
59 matrix tgammamin1 = random(32002,20,1);
60 matrix tgamma0 = tkos4pluskos4*tgammamin1;
61 matrix talpha0 = concat(tbeta0,tgamma0);
62 matrix zero[20][1];
63 matrix tpsi = transpose(psi);
64 matrix tpresg = concat(tpsi,zero);
65 matrix pres = module(transpose(talpha0))
66                    + module(transpose(tpresg));
67 module dir = transpose(pres);
68 dir = prune(dir);
69 homog(dir); 
70 intvec deg_dir = attrib(dir,"isHomog");
71 attrib(dir,"isHomog",deg_dir-2);        // set degrees
72 resolution fdir = mres(prune(dir),2);
73 print(betti(fdir),"betti");
74 ideal I = groebner(flatten(fdir[2]));
75 resolution FI = mres(I,0);
76
77 module F=FI[2];
78 def A1=sheafCoh(F,-4,6);
79 A1=sheafCoh(F,-3,6,"sres");
80 def A2=sheafCohBGG(F,-4,6);
81
82kill S;
83
84// Kohomologie des Morrocks-Mumford-Buendels (Macaulay-Beispiel von Wolfram):
85// ----------------------------------------------------------------------------
86
87ring R=0,x(0..4),dp;
88
89matrix FHM[19][35] =
90 -x(2), 0,    -x(1), -x(4), 0,    0,    0,     0,     0,      0,      0,
910,      0,     0,     0,      0,      0,       0,       0,      0,      0,
920,     0,     -x(0),   0,      0,       0,       0,      0,      -x(4),  0,
930,      -x(3),    -x(2),    0,       
94
950,    0,    x(0),  0,    0,    0,    0,     0,     -x(3),   0,      0,      0,
960,     0,     -x(1),   0,      0,       0,       0,      x(4),    0,      0,
970,     0,      0,      0,       0,       0,      0,      0,     -x(3),  -x(2),
980,       0,       0,       
99
1000,    x(3),  0,    0,    0,    0,    0,     0,     0,      0,      0,      0,
1010,     0,     0,      0,      0,       0,       0,      0,      x(2),    0,
1020,     x(1),    0,      0,       0,       0,      -x(0),   0,     0,     -x(4),
1030,       0,       -x(3),   
104 
1050,    0,    0,    -x(2), -x(3), 0,    -x(3),  0,     0,      0,      0,
106-x(1),   0,     0,     x(0),    0,      0,       0,       0,      0,
107-x(4),   0,     0,     0,      0,      0,       0,       0,      0,      -x(2),
1080,     0,      0,       0,       0,       
109
110x(4),  0,    0,    0,    0,    0,    0,     0,     0,      0,      0,
111x(0),    0,     0,     0,      0,      0,       0,       -x(3),   x(2),    0,
1120,     0,     0,      0,      0,       0,       0,      -x(1),   0,     0,
1130,      0,       x(4),     0,       
114
115x(1),  0,    0,    0,    0,    0,    0,     0,     0,      x(2),    0,      0,
1160,     0,     0,      0,      0,       0,       0,      0,      -x(0),   0,
1170,     0,      x(4),    0,       0,       -x(3),   0,      0,     0,     0,
1180,       0,       0,       
119
1200,    0,    0,    x(0),  0,    0,    0,     0,     0,      -x(4),   x(2),    0,
121-x(4),  0,     0,      -x(3),   0,       0,       0,      -x(1),   0,      0,
1220,     0,      0,      0,       0,       0,      0,      0,     0,     0,
1230,       0,       0,       
124
1250,    x(4),  -x(3), 0,    -x(2), 0,    0,     0,     0,      -x(0),   0,
1260,      0,     0,     0,      0,      0,       0,       0,      0,      0,
1270,     -x(3),  0,      0,      0,       -x(1),    0,      0,      0,     0,
1280,      0,       0,       -x(4),     
129
1300,    -x(2), 0,    0,    0,    0,    0,     0,     x(4),    0,      -x(1),
131x(3),    0,     0,     0,      0,      0,       0,       0,      0,      0,
1320,     0,     0,      -x(0),   0,       0,       0,      0,      0,     0,
1330,      0,       0,       0,       
134
1350,    0,    0,    0,    x(0),  0,    0,     0,     0,      0,      0,      0,
1360,     0,     0,      -x(2),   0,       0,       -x(1),   0,      0,
137-x(1),  0,     0,      0,      0,       0,       -x(4),   0,      0,     0,
138x(3),    0,       0,       0,       
139
1400,    0,    -x(4), 0,    0,    -x(1), 0,     0,     0,      0,      0,      0,
1410,     -x(1),  0,      x(0),    0,       0,       0,      0,      0,      0,
142-x(4),  0,      -x(3),   0,       0,       0,      -x(2),   0,     0,     0,
1430,       0,       0,       
144
1450,    x(1),  0,    x(3),  0,    x(2),  0,     0,     0,      0,      0,      0,
1460,     x(2),   0,      0,      0,       0,       x(0),    0,      0,      0,
1470,     0,      0,      -x(4),    0,       0,      0,      0,     0,     0,
1480,       0,       0,       
149
150-x(3), 0,    0,    0,    x(1),  x(4),  x(1),   0,     x(0),    0,      0,
1510,      0,     0,     0,      0,      0,       -x(2),    0,      0,      0,
1520,     0,     0,      0,      0,       0,       0,      0,      0,     0,
1530,      0,       0,       0,       
154
1550,    0,    0,    0,    0,    0,    0,     x(3),   x(2),    -x(1),   0,      0,
156-x(1),  0,     0,      0,      -x(0),    0,       -x(4),   0,      0,
157-x(4),  0,     x(3),    0,      0,       0,       0,      0,      0,     x(2),
1580,      0,       0,       0,       
159
1600,    0,    0,    0,    0,    x(0),  0,     -x(2),  0,      0,      -x(3),   0,
1610,     0,     -x(4),   0,      0,       0,       0,      0,      0,      0,
1620,     -x(2),   0,      0,       0,       x(1),    0,      0,     0,     0,
1630,       0,       0,       
164
1650,    0,    0,    0,    0,    0,    0,     0,     0,      x(2)*x(4), 0,      0,
1660,     0,     0,      x(2)*x(3), 0,       0,       x(1)*x(3), 0,      0,
1670,     0,     0,      x(4)^2,  0,       0,       0,      x(1)^2,  0,     0,
1680,      0,       -x(1)*x(4), 0,       
169
1700,    0,    0,    0,    0,    0,    0,     0,     x(3)*x(4), 0,      0,
171x(3)^2,  0,     0,     x(1)*x(4), 0,      0,       0,       0,      0,
172x(2)^2,  0,     0,     x(1)*x(2), 0,      0,       0,       0,      0,      0,
1730,     0,      0,       0,       -x(2)*x(3), 
174
1750,    0,    0,    0,    0,    0,    x(4)^2, 0,     0,      0,      x(0)*x(4),
1760,      x(3)^2, 0,     x(2)*x(3), 0,      -x(1)*x(4), x(1)*x(3),  0,      0,
1770,      x(2)^2, 0,     0,      x(1)*x(2), -x(0)*x(3), x(0)*x(2),  0,
178x(3)*x(4), x(1)^2, 0,     x(0)*x(1), -x(2)*x(4), x(0)^2,   0,       
179
1800,    0,    0,    0,    0,    0,    0,     x(4)^2, 0,      0,      0,
181x(2)*x(4), 0,     x(3)^2, 0,      x(1)*x(4), x(2)*x(3),  -x(0)*x(4), 0,
182x(0)*x(3), x(1)*x(3), 0,     x(2)^2, 0,      0,      x(1)*x(2),  -x(3)*x(4),
183x(0)*x(2), 0,      0,     x(1)^2, 0,      x(0)*x(1),  0,       x(0)^2;   
184
185
186def M=module(FHM);
187attrib(M,"isHomog",intvec(4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3));
188A1=sheafCohBGG(M,-10,7);
189A2=sheafCoh(M,-4,3);
190
191tst_status(1);$
192
Note: See TracBrowser for help on using the repository browser.