File: hilbertFunction-doc.m2

package info (click to toggle)
macaulay2 1.21%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 133,096 kB
  • sloc: cpp: 110,377; ansic: 16,306; javascript: 4,193; makefile: 3,821; sh: 3,580; lisp: 764; yacc: 590; xml: 177; python: 140; perl: 114; lex: 65; awk: 3
file content (72 lines) | stat: -rw-r--r-- 2,825 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
--- author(s): L. Gold, Dan Grayson

undocumented {}

document { 
     Key => {hilbertFunction,
	  (hilbertFunction,List,Ring),(hilbertFunction,ZZ,Ring),
	  (hilbertFunction,List,Module),(hilbertFunction,ZZ,Module),
	  (hilbertFunction,List,Ideal),(hilbertFunction,ZZ,Ideal),
	  (hilbertFunction,List,ProjectiveVariety),(hilbertFunction,ZZ,ProjectiveVariety),
	  (hilbertFunction,List,CoherentSheaf),(hilbertFunction,ZZ,CoherentSheaf)
	  },
     Headline => "the Hilbert function",
     Usage => "hilbertFunction(d,X)",
     Inputs => {
	  "d" => {"an integer (or a list of integers) specifying a degree (or multidegree)"},
	  "M" => {"a ring, module, ideal, coherent sheaf, or projective variety"}
	  },
     Outputs => {
	  ZZ => {"the dimension of the degree ", TT "d", " part of ", TT "M", ".  For an
	       ideal, the corresponding quotient ring is used.
	       For a projective varieties and coherent sheaves, the functionality is not yet implemented."}
	  },
     PARA {
     	  "In the following example, compare the rank of the source of the basis map to the number provided by ", TO "hilbertFunction", "."
	  },
     EXAMPLE lines ///
     R = QQ[x,y,z, Degrees=>{3:{1,1}}];
     hilbertFunction({3,3}, R)
     basis({3,3},R)
     ///,     
     "The standard meaning of subscripts on functions permits a simpler syntax to be used.",
     EXAMPLE lines ///
     hilbertFunction_{3,3} R
     ///,
     "Here is a singly graded example.",
     EXAMPLE lines ///
     R = QQ[x,y,z];,
     hilbertFunction({3}, R)
     hilbertFunction(3, R)
     ///,
     "Here is an example with a module.",
     EXAMPLE lines ///
     R = QQ[a..d, Degrees=>{4:{1,1}}];
     M = coker matrix {{a,c,d},{c,b,d}}
     hilbertFunction({2,2}, M)
     B = basis({2,2},M)
     numgens source B
     ///,
     "Here is an example with an ideal.",
     EXAMPLE lines ///
     R = QQ[a..f, Degrees=>{6:{1,1}}];
     I = ideal (a*b, c*d, e*f);
     hilbertFunction({2,2}, I)
     S = R/I;
     basis({2,2},S)
     ///,
     Caveat => {
	  "It can be much faster to compute a basis for the desired degree, because hilbertFunction works by
	  expanding the Hilbert series to a sufficiently high order, thus, in effect, computing many values of the
	  Hilbert function simultaneously.  If several values of the Hilbert function are desired, it is best
	  to compute the ones of higher degree first, so the expansion will be done to sufficiently high order
	  at the first attempt, and thus be done just once."
	  },
-* no longer true:
     Caveat => {
     	  "This requires a homogeneous module to compute properly, but
	  will output something if run on a module which is not homogeneous."
	  },
*-
     SeeAlso => {degreesRing, reduceHilbert, poincare, poincareN, hilbertSeries, hilbertPolynomial, numgens, (symbol _, Function, Thing)}
     }