source: git/Tst/Short/sheafcoh_s.tst @ d4b25e

spielwiese
Last change on this file since d4b25e 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: 2.5 KB
Line 
1LIB "tst.lib";
2tst_init();
3
4 LIB "sheafcoh.lib";
5
6// Kohomologie der Strukturgarbe von P^5:
7//----------------------------------------
8ring r=0,x(1..6),dp;
9module M=0;
10def A=sheafCoh(M,-10,5);
11A=sheafCoh(M,-10,5,"sres");
12def B=sheafCohBGG(M,-10,5);
13displayCohom(A,-10,5,5);
14displayCohom(B,-10,5,5);
15// Kohomologie der getwisteten Strukturgarbe von P^5:
16//----------------------------------------------------
17attrib(M,"isHomog",intvec(-2));
18A=sheafCoh(M,-10,3);
19A=sheafCoh(M,-10,3,"sres");
20B=sheafCohBGG(M,-10,3);
21// Kohomologie direkter Summen getwisteter Strukturgarben von P^5:
22//----------------------------------------------------------------
23matrix MM[3][1];
24M=MM;
25attrib(M,"isHomog",intvec(-1,0,2));
26A=sheafCoh(M,-9,5);
27A=sheafCoh(M,-9,4,"sres");
28B=sheafCohBGG(M,-8,3);
29// Kohomologie von O(-2)+O(-1)+(O/x(1))(1) = O_5(-2)+o_5(-1)+O_4(1):
30//-------------------------------------------------------------------
31MM=0,x(1),0;
32M=MM;
33attrib(M,"isHomog",intvec(-2,1,-1));
34A=sheafCoh(M,-8,4);
35A=sheafCoh(M,-8,4,"sres");
36B=sheafCohBGG(M,-8,3);
37kill r;
38
39// Kohomologie der Idealgarbe der Veronese Flaeche in $\P^3$:
40//------------------------------------------------------------
41 ring S = 32003, x(0..4), dp;
42 module MI=maxideal(1);
43 attrib(MI,"isHomog",intvec(-1)); 
44 resolution kos = nres(MI,0);
45 print(betti(kos),"betti");
46 matrix alpha0 = random(32002,10,3);
47 module pres = module(alpha0)+kos[3];
48 attrib(pres,"isHomog",intvec(1,1,1,1,1,1,1,1,1,1));
49 resolution fcokernel = mres(pres,0);
50 print(betti(fcokernel),"betti");
51 module dir = transpose(pres);
52 attrib(dir,"isHomog",intvec(-1,-1,-1,-2,-2,-2,
53                             -2,-2,-2,-2,-2,-2,-2));
54 resolution fdir = mres(dir,2);
55 print(betti(fdir),"betti");
56 ideal I = groebner(flatten(fdir[2]));
57 resolution FI = mres(I,0);
58 print(betti(FI),"betti");
59 module F=FI[2];
60 A=sheafCoh(F,-4,4);
61 A=sheafCoh(F,-4,4,"sres");
62 B=sheafCohBGG(F,-4,2);
63 
64 dimH(3,F,-4);
65 dimH(1,F,1);
66
67 A=sheafCoh(F,-1,1);
68 kill S;
69
70// --------------------------------------------------
71// Test of truncate:
72   ring R=0,(x,y,z),dp;
73   module M=x2,y3,z4;
74   homog(M);
75   // compute presentation matrix for truncated module (R/<x2,y3,z4>)_(>=2)
76   module M2=truncate(M,2);
77   print(M2);
78   dimGradedPart(M2,1);
79   dimGradedPart(M,1);
80   dimGradedPart(M2,2);
81   // this should coincide with:
82   dimGradedPart(M,2);
83   dimGradedPart(M,3);
84   // shift grading by -1:
85   intvec v=-1;
86   attrib(M,"isHomog",v);
87   M2=truncate(M,2);
88   print(M2);
89   dimGradedPart(M2,2);
90
91tst_status(1);$
92
Note: See TracBrowser for help on using the repository browser.