File: variety-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 (89 lines) | stat: -rw-r--r-- 2,496 bytes parent folder | download
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
--- status: TODO
--- author(s): 
--- notes: 


document {
     Key => (variety, CoherentSheaf),
     TT "variety F", " -- produce the variety over which a coherent sheaf is defined.",
     PARA{},
     EXAMPLE {
	  "X = Proj(QQ[x,y,z])",
	  "OO_X(3)",
	  "variety oo"
	  }
     }

document {
     Key => variety,
     Headline => "get the variety"
     }

document { 
     Key => (variety,SheafOfRings),
     Usage => "variety O",
     Inputs => { "O" },
     Outputs => { { "the variety over which O is a quasicoherent sheaf of rings" } },
     EXAMPLE lines ///
     	  X = Proj(QQ[x..z])
	  O = OO_X
	  variety O
     ///,
     SourceCode => {(variety,SheafOfRings)}
     }

document { 
     Key => (variety,Ideal),
     Headline => "the closed projective subvariety defined by an ideal",
     Usage => "variety I",
     Inputs => { "I" => "a homogeneous ideal" },
     Outputs => {"the closed subvariety defined by an ideal"},
     Caveat => {"An alternative task for this function would be to define the affine subvariety, so if something like this eventually becomes useful,
	  we may have to redesign it.  Suggestions welcome."},
     "In the example, we compute the dimension of a line in the projective plane.",
     EXAMPLE lines ///
     	  R = QQ[x..z]
	  variety ideal x
	  dim oo
     ///
     }

doc ///
  Key
    (variety,Ring)
    (variety,RingElement)
  Headline
    the variety previously associated to a given ring
  Usage
    variety A
  Inputs
    A:Ring
      the intersection ring of a variety $X$, say, or the homogeneous (Cox) ring of a normal toric variety,
      or another ring that has been associated to a variety, or an element in such a ring
  Outputs
    :
      $X$, the variety associated with {\tt A}, or with the ring of {\tt A}, if {\tt A} is a @TO "RingElement"@
  Description
   Example
     needsPackage "NormalToricVarieties"
     X = toricProjectiveSpace 1
     S = ring X
     X === variety S
   Example
     needsPackage "Schubert2"
     Y = abstractProjectiveSpace 1
     IY = intersectionRing Y
     Y === variety IY
   Text
     If a @TO RingElement@ is provided, then the variety of its ring is returned.
   Example
     variety S_0
     variety IY_0
   Text
     For package developers: All this function does is to look up the symbol {\tt variety} in {\tt A}.  This is currently
     used in two packages, but can be used in other settings, if desired.
  SeeAlso
    "NormalToricVarieties::NormalToricVarieties"
    "Schubert2::Schubert2"
///