CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418346
1
2
1 Introduction
3
4
5
1.1 Introduction to the toric package
6
7
This manual describes the toric package for working with toric varieties in
8
GAP. Toric varieties can be dealt with more easily than general varieties
9
since often times questions about a toric variety can be reformulated in
10
terms of combinatorial geometry. Some coding theory commands related to
11
toric varieties are contained in the error-correcting codes GUAVA package
12
(for example, the command ToricCode). We refer to the GUAVA manual [CM09]
13
and the expository paper [JV02] for more details.
14
15
The toric package also contains several commands unrelated to toric
16
varieties (mostly for list manipulations). These will not be described in
17
this documention but they are briefly documented in the lib/util.gd file.
18
19
toric is implemented in the GAP language, and runs on any system supporting
20
GAP4.3 and above. The toric package is loaded with the command
21
22
gap> LoadPackage( "toric" );
23
24
Please send bug reports, suggestions and other comments about toric to
25
mailto:[email protected].
26
27
28
1.2 Introduction to constructing toric varieties
29
30
Rather than sketch the theory of toric varieties, we refer to [JV02] and
31
[Ful93] for details. However, we briefly describe some terminology and
32
notation.
33
34
35
1.2-1 Generalities
36
37
Let F denote a field and R=F [x_1,...,x_n] be a ring in n variables. A
38
binomial equation in R is one of the form
39
40
41
x_1^{k_1}...x_n^{k_n}=x_1^{\ell_1}...x_n^{\ell_n}, 
42
43
44
where k_i ≥ 0, ℓ_j ≥ 0 are integers. A binomial variety is a subvariety of
45
affine n-space A_F^n defined by a finite set of binomial equations (such a
46
variety need not be normal). A typical ``toric variety'' is binomial, though
47
they will be introduced via an a priori independent construction. The basic
48
idea of the construction is to replace each such binomial equation as above
49
by a relation in a semigroup contained in a lattice and replace R by the
50
``group algebra'' of this semigroup. By the way, a toric variety is always
51
normal (see for example, [Ful93], page 29).
52
53
54
1.2-2 Basic combinatorial geometry constructions
55
56
Let Q denote the field of rational numbers and Z denote the set of integers.
57
Let n>1 denote an integer.
58
59
Let V=Q^n having basis f_1=(1,0,...,0), ..., f_n=(0,...,0,1). Let L_0=Z^n⊂ V
60
be the standard lattice in V. We identify V and L_0⊗_Z Q. We use ⟨ , ⟩ to
61
denote the (standard) inner product on V. Let
62
63
64
L_0^*={\rm Hom}(L_0,Z)=\{ v\in V\ |\ \langle v,w \rangle \in Z, \
65
\forall w\in L_0\} 
66
67
68
denote the dual lattice, so (fixing the standard basis e_1^*,...,e_n^* dual
69
to the f_1,...,f_n) L_0^* may be identified with Z^n.
70
71
A cone in V is a set σ of the form
72
73
74
\sigma=\{a_1v_1+...+a_mv_m\ |\ a_i\geq 0\}\subset V, 
75
76
77
where v_1,...,v_m ∈ V is a given collection of vectors, called (semigroup)
78
generators of σ. A rational cone is one where v_1,...,v_m ∈ L_0. A strongly
79
convex cone is one which contains no lines through the origin.
80
81
 By abuse of terminology, from now on a cone of L_0 is a strongly convex
82
rational cone. 
83
84
A face of a cone σ is either σ itself or a subset of the form H∩ σ, where H
85
is a codimension one subspace of V which intersects the cone non-trivially
86
and such that the cone is contained in exactly one of the two half-spaces
87
determined by H. A ray (or edge) of a cone is a one-dimensional face.
88
Typically, cones are represented in toric by the list of vectors defining
89
their rays. The dimension of a cone is the dimension of the vector space it
90
spans. The toric package can test if a given vector is in a given cone (see
91
InsideCone).
92
93
If σ is a cone then the dual cone is defined by
94
95
96
\sigma^* =\{w \in L_0^*\otimes Q \ |\ \langle v,w \rangle \geq 0,\
97
\forall v\in \sigma\}. 
98
99
100
The toric package can test if a vector is in the dual of a given cone (see
101
InDualCone).
102
103
Associate to the dual cone σ^* is the semigroup
104
105
106
S_\sigma =\sigma^*\cap L_0^* =\{w\in L_0^* \ |\ \langle v,w\rangle
107
\geq 0,\ \forall v\in \sigma\}. 
108
109
110
Though L_0^* has $n$ generators as a lattice, typically S_σ will have more
111
than n generators as a semigroup. The toric package can compute a minimal
112
list of semigroup generators of S_σ (see DualSemigroupGenerators).
113
114
A fan is a collection of cones which ``fit together'' well. A fan in L_0 is
115
a set ∆={σ } of rational strongly convex cones in V= L_0 ⊗ Q such that
116
117
 if σ ∈ ∆ and τ ⊂ σ is a face of σ then τ ∈ ∆,
118
119
 if σ_1, σ_2 ∈ ∆ then the intersection σ_1 ∩ σ_2 is a face of both σ_1
120
and σ_2 (and hence belongs to ∆).
121
122
In particular, the face of a cone in a fan is a cone is the fan.
123
124
If V is the (set-theoretic) union of the cones in ∆ then we call the fan
125
complete. We shall assume that all fans are finite. A fan is determined by
126
its list of maximal cones.
127
128
Notation: A fan ∆ is represented in toric as a set of maximal cones. For
129
example, if ∆ is the fan with maximal cones σ_1=Q_+⋅ f_1+Q_+⋅ (-f_1+f_2),
130
σ_2=Q_+⋅ (-f_1+f_2)+Q_+⋅ (-f_1-f_2), σ_3=Q_+⋅ (-f_1-f_2)+Q_+⋅ f_1, then ∆ is
131
represented by [[[1,0],[-1,1]],[[-1,1],[-1,-1]],[[-1,-1],[1,0]]].
132
133
The toric package can compute all cones in a fan of a given dimension (see
134
ConesOfFan). Moreover, toric can compute the set of all normal vectors to
135
the faces (i.e., hyperplanes) of a cone (see Faces).
136
137
The star of a cone σ in a fan ∆ is the set ∆_σ of cones in ∆ containing σ as
138
a face. The toric package can compute stars (see ToricStar).
139
140
141
1.2-3 Basic affine toric variety constructions
142
143
Let
144
145
146
R_\sigma = F [S_\sigma] 
147
148
149
denote the ``group algebra'' of this semigroup. It is a finitely generated
150
commutative F-algebra. It is in fact integrally closed ([Ful93], page 29).
151
We may interprete R_σ as a subring of R=F [x_1,...,x_n] as follows: First,
152
identify each e_i^* with the variable x_i. If S_σ is generated as a
153
semigroup by vectors of the form ℓ_1 e_1^*+...+ℓ_n e_n^*, where ℓ_i is an
154
integer, then its image in R is generated by monomials of the form
155
x_1^ℓ_1dots x_n^ℓ_n. The toric package can compute these generating
156
monomials (see EmbeddingAffineToricVariety). See Lemma 2.14 in [JV02] for
157
more details. This embedding can also be used to resolve singularities - see
158
section 5 of [JV02] for more details.
159
160
Let
161
162
163
U_\sigma={\rm Spec}\ R_\sigma. 
164
165
166
This defines an affine toric variety (associated to σ). It is known that the
167
coordinate ring R_σ of the affine toric variety U_σ has the form R_σ =
168
F[x_1,...,x_n]/J, where J is an ideal. The toric package can compute
169
generators of this ideal by using the DualSemigroupGenerators and the
170
EmbeddingAffineToricVariety commands.
171
172
Roughly speaking, the toric variety X(∆) associated to the fan ∆ is given by
173
a collection of affine pieces $U_{\sigma_1},U_{\sigma_2},\dots,U_{\sigma_d}$
174
which ``glue'' together (where ∆ = {σ_i}). The affine pieces are given by
175
the zero sets of polynomial equations in some affine spaces and the gluings
176
are given by maps ϕ_i,j : U_σ_i → U_σ_j which are defined by ratios of
177
polynomials on open subsets of the $U_{\sigma_i}$. The toric package does
178
not compute these gluings or work directly with these (non-affine) varieties
179
X(∆).
180
181
A cone σ ⊂ V is said to be nonsingular if it is generated by part of a basis
182
for the lattice L_0. A fan ∆ of cones is said to be nonsingular if all its
183
cones are nonsingular. It is known that U_σ is nonsingular if and only if σ
184
is nonsingular (Proposition 2.1 in [Ful93]).
185
186
Example: In three dimensions, consider the cones σ_ϵ_1,ϵ_2,ϵ_3,i,j generated
187
by (ϵ_1⋅ 1,ϵ_2⋅ 1,ϵ_3⋅ 1) and the standard basis vectors f_i,f_j, where
188
ϵ_i=± 1 and 1≤ inot= j≤ 3. There are 8 cones per octant, for a total of 64
189
cones. Let ∆ denote the fan in V=Q^3 determined by these maximal cones. The
190
toric variety X(∆) is nonsingular.
191
192
193
1.2-4 Riemann-Roch spaces and related constructions
194
195
Although the toric package does not work directly with the toric varieties
196
X(∆), it can compute objects associated with it. For example, it can compute
197
the Euler characteristic (see EulerCharacteristic), Betti numbers (see
198
BettiNumberToric), and the number of GF(q)-rational points (see
199
CardinalityOfToricVariety) of X(∆),  provided ∆ is nonsingular.
200
201
For an algebraic variety X the group of Weil divisors on X is the abelian
202
group Div(X) generated (additively) by the irreducible subvarieties of X of
203
codimension 1. For a toric variety X(∆) with dense open torus T, a Weil
204
divisor D is T-invariant if D=T⋅ D. The group of T-invariant Weil divisors
205
is denoted TDiv(X). This is finitely generated by an explicitly given finite
206
set of divisors {D_1,...,D_r} which correspond naturally to certain cones in
207
∆ (see [Ful93] for details). In particular, we may represent such a divisor
208
D in TDiv(X) by an k-tuple (d_1,...,d_k) of integers.
209
210
Let ∆ denote a fan in V=Q^n with rays (or edges) τ_i, 1≤ i≤ k, and let v_i
211
denote the first lattice point on τ_i. Associated to the T-invariant Weil
212
divisor D=d_1D_1+...+d_kD_k, is the polytope
213
214
215
P_D = \{ x=(x_1,...,x_n)\ |\ \langle x,v_i \rangle \geq -d_i, \
216
\forall 1 \leq i \leq k\}. 
217
218
219
The toric package can compute P_D (see DivisorPolytope), as well as the set
220
of all lattice points contained in this polytope (see
221
DivisorPolytopeLatticePoints). Also associated to the T-invariant Weil
222
divisor D=d_1D_1+...+d_kD_k, is the Riemann-Roch space, L(D). This is a
223
space of functions on X(∆) whose zeros and poles are ``controlled'' by D
224
(for a more precise definition, see [Ful93]). The toric package can compute
225
a basis for L(D) (see RiemannRochBasis),  provided ∆ is complete and
226
nonsingular.
227
228
229