File: AbelianGroupsDoc.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 (389 lines) | stat: -rw-r--r-- 10,678 bytes parent folder | download | duplicates (4)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
-*
   Copyright 2020, Luigi Ferraro, Federico Galetto,
   Francesca Gandini, Hang Huang, Matthew Mastroeni, Xianglong Ni.

   You may redistribute this file under the terms of the GNU General Public
   License as published by the Free Software Foundation, either version 2 of
   the License, or any later version.
*-


document {
	Key => {diagonalAction, 
	    (diagonalAction, Matrix, PolynomialRing),
	    (diagonalAction, Matrix, List, PolynomialRing),
	    (diagonalAction, Matrix, Matrix, List, PolynomialRing)
	    },
	Headline => "diagonal group action via weights",
	Usage => "diagonalAction(W, R), diagonalAction(W, d, R), diagonalAction(W1, W2, d, R)",
	Inputs => {
	    	"W" => Matrix => {"of weights of the diagonal group action"},
		"W1" => Matrix => {"of weights for the torus action"},
		"W2" => Matrix => {"of weights for the finite abelian action"},
	    	"d" => List => {"of orders of cyclic abelian factors in the 
		    decomposition of the diagonal group"},
		"R" => PolynomialRing => {"on which the group acts"}
		},
	Outputs => {
		DiagonalAction => {"the diagonal action of the product of a torus
		    with a finite abelian group corresponding to the given weight matrices"}
		},
	"This function is provided by the package ", TO InvariantRing,". ",

       	PARA {
	    "Use this function to set up a diagonal action of a group",
	    TEX /// $(k^*)^r \times \mathbb{Z}/d_1 \times \cdots \times \mathbb{Z}/d_g$ ///,
	    " on a polynomial ring ",
	    TEX /// $R = k[x_1,\ldots,x_n]$ ///,
	    "over a field. Saying the action is diagonal means that ",
	    TEX /// $(t_1,\ldots,t_r) \in (k^*)^r$ ///,
	    " acts by",
	    TEX /// $$(t_1,\ldots,t_r) \cdot x_j = t_1^{w_{1,j}}\cdots t_r^{w_{r,j}} x_j$$ ///,
	    "for some integers ",
	    TEX /// $w_{i,j}$ ///, 
	    " and the generators ",
	    TEX /// $u_1, \dots, u_g$ ///,
	    " of the cyclic abelian factors act by",
	    TEX /// $$u_i \cdot x_j = \zeta_i^{w_{r+i,j}} x_j$$ ///,
	    "for ",
	    TEX /// $\zeta_i$ ///,
	    " a primitive ",
	    TEX /// $d_i$///,
	    "-th root of unity. The integers",
	    TEX /// $w_{i,j}$ ///,
	    "comprise the weight matrix ", TT "W",
	    ". In other words, the ",
	    TEX /// $j$ ///,
	    "-th column of ", TT "W", 
	    " is the weight vector of",
	    TEX /// $x_j$. ///
	    },
    
    	PARA {
	    "The following example defines an action of a 
	    two-dimensional torus on a four-dimensional vector space
	    with a basis of weight vectors whose weights are
	    the columns of the input matrix."
	    },
        	
	EXAMPLE {
	    "R = QQ[x_1..x_4]",
	    "W = matrix{{0,1,-1,1},{1,0,-1,-1}}",
	    "T = diagonalAction(W, R)"
		},
	    
    	PARA {
	    "Here is an example of a product of two cyclic groups of order 3 
	    acting on a three-dimensional vector space:"
	    },
	
	EXAMPLE {
	    "R = QQ[x_1..x_3]",
	    "d = {3,3}",
	    "W = matrix{{1,0,1},{0,1,1}}",
	    "A = diagonalAction(W, d, R)",
		},
    
	    }

document {
	Key => {DiagonalAction},
	Headline => "the class of all diagonal actions",
	"This class is provided by the package ", TO InvariantRing,".",
	
	PARA {
	    	TT "DiagonalAction", " is the class of all
		diagonal actions on polynomial rings by a 
		product of a torus (possibly trivial)
		with a finite abelian group  for the
		purpose of computing invariants.
		It is created using ", TO "diagonalAction", "."
	    },
	}

document {
	Key => { equivariantHilbertSeries,
	    (equivariantHilbertSeries, DiagonalAction)
	    },
	Headline => "equivariant Hilbert series for a diagonal action",
	Usage => "equivariantHilbertSeries D",
	Inputs => {
	    	"D" => DiagonalAction,
		Order => ZZ => {"stopping degree of the equivariant Hilbert series"}
		},
	Outputs => {
		Divide => {"the equivariant Hilbert series"}
		},
	"This function is provided by the package ", TO InvariantRing,". ",

    	PARA {
	    "For a torus acting on the vector space",
	    TEX /// $V$ ///,
	    "this function returns the equivariant Hilbert series of the coordinate ring",
	    TEX /// $K[V]$ ///,
	    "as a rational function of",
	    TEX /// $z_0, \ldots, z_{r-1}, t$ ///,
	    "where",
	    TEX /// $r$ ///,
	    "is the rank of the torus. The series in",
	    TEX /// $t$ ///,
	    "which is the coefficient of",
	    TEX /// $z_0^0\cdots z_{r-1}^0$ ///,
	    "gives the ordinary Hilbert series of",
	    TEX /// $K[V]^T$ ///,
	    ". The option ",
	    TT "Order => N",
	    " can be used to compute the series up to the ",
	    TEX /// $t$ ///,
	    "-degree ",
	    TT "N-1",
	    "."
	},
    
    	PARA {
	    "Here is an example of a rank 2 torus acting on a polynomial ring in 3 variables, whose invariant ring is generated by the single element",
	    TEX /// $x_1 x_2 x_3$ ///,
	    "."
	},
	
	
	EXAMPLE {
	    "R = QQ[x_1..x_3]",
	    "W = matrix{{-1,0,1},{0,-1,1}}",
	    "T = diagonalAction(W, R)",
	    "equivariantHilbertSeries T",
	    "S = equivariantHilbertSeries(T, Order => 7)",
	    "sub(S, {z_0 => 0, z_1 => 0})"
		},
	 
	    }

document {
	Key => { equivariantHilbert },
	Headline => "stores equivariant Hilbert series expansions",

    	PARA {
	    "This key is created in the cache table of a ",
	    TO "DiagonalAction", " upon calling ",
	    TO "equivariantHilbertSeries", " with the ",
	    TO "Order", " option. It stores partial expansions
	    of the equivariant Hilbert series to avoid computing
	    them again."
	},
    	
	EXAMPLE {
	    "R = QQ[x_1..x_3]",
	    "W = matrix{{-1,0,1},{0,-1,1}}",
	    "T = diagonalAction(W, R)",
	    "T.cache.?equivariantHilbert",
	    "elapsedTime equivariantHilbertSeries(T, Order => 5)",
	    "T.cache.?equivariantHilbert",
	    "elapsedTime equivariantHilbertSeries(T, Order => 5);",
		},
	 
	    }

document {
	Key => {(numgens, DiagonalAction)},
	Headline => "number of generators of the finite part of a diagonal group",
	Usage => "numgens D",
	Inputs => {
	    	"D" => DiagonalAction =>
		{"the action of a diagonal group"},
		},
	Outputs => {
		ZZ => {"the number of generators of the group"}
		},
	"This function is provided by the package ", TO InvariantRing,". ",

    	PARA {	 
	    "Writing the diagonal group acting on the polynomial ring",
	    TEX /// $k[x_1,\dots,x_n]$ ///, "as",
	    TEX /// $(k^*)^r \times \mathbb{Z}/d_1 \times \cdots \times \mathbb{Z}/d_g$, ///,
	    "this function returns ", TT "g", "."
	},
    
    	PARA {
	    "Here is an example of a product of two cyclic groups
	    of order 3 acting on a polynomial ring in 3 variables."
	},
	
	EXAMPLE {
	    "R = QQ[x_1..x_3]",
	    "d = {3,3}",
	    "W = matrix{{1,0,1},{0,1,1}}",
	    "A = diagonalAction(W, d, R)",
	    "numgens A"
		},
	    }

document {
	Key => { weights,
	    (weights, DiagonalAction)
	    },
	Headline => "of a diagonal action",
	Usage => "weights D",
	Inputs => {
	    	"D" => DiagonalAction
		},
	Outputs => {
		Matrix => {"the weight matrix of the group action"}
		},
	"This function is provided by the package ", TO InvariantRing,". ",
	    
	PARA {
	    "Use this function to recover the weight matrix of a
	    diagonal action on a polynomial ring. For a diagonal action
	    on a polynomial ring ",
	    TEX /// $k[x_1, \dots, x_n]$ ///,
	    ", the ",
	    TEX /// $j$ ///,
	    "-th column of the weight matrix is the weight of the
	    variable ",
	    TEX /// $x_j$ ///,
	    "."
	    },
	
    	PARA {
	    "The following example defines an action of a 
	    two-dimensional torus on a polynomial ring in four
	    variables."
	    },
        	
	EXAMPLE {
	    "R = QQ[x_1..x_4]",
	    "W = matrix{{0,1,-1,1},{1,0,-1,-1}}",
	    "T = diagonalAction(W, R)",
	    "weights T"
	    },  
	    
	PARA {
	    "Here is an example of a product of two cyclic groups
	    of order 3 acting on a polynomial ring in 3 variables."
	    },
	
	EXAMPLE {
	    "R = QQ[x_1..x_3]",
	    "d = {3,3}",
	    "W = matrix{{1,0,1},{0,1,1}}",
	    "A = diagonalAction(W, d, R)",
	    "weights A"
	    },    
	    
	SeeAlso => {
	    DiagonalAction,
	    diagonalAction
	    }      
	}
    
document {
	Key => { cyclicFactors,
	    (cyclicFactors, DiagonalAction)
	    },
	Headline => "of a diagonal action",
	Usage => "cyclicFactors D",
	Inputs => {
	    	"D" => DiagonalAction
		},
	Outputs => {
		List => {"of orders of cyclic abelian factors in the decomposition of the diagonal group"}
		},
	"This function is provided by the package ", TO InvariantRing,". ",
	    
	PARA {
	    "Use this function to recover the cyclic abelian factors of a
	    diagonal action on a polynomial ring."
	    },
	
    	PARA {
	    "The following example defines an action of a product of two cyclic groups of order 3 acting on a three-dimensional vector space."
	    },
        	
	EXAMPLE {
	    "R = QQ[x_1..x_3]",
	    "d = {3,3}",
	    "W = matrix{{1,0,1},{0,1,1}}",
	    "A = diagonalAction(W, d, R)",
	    "cyclicFactors A"
	    },  

	SeeAlso => {
	    DiagonalAction,
	    diagonalAction
	    }      
	}
    
    
document {
	Key => { (rank, DiagonalAction)
	    },
	Headline => "of a diagonal action",
	Usage => "rank D",
	Inputs => {
	    	"D" => DiagonalAction
		},
	Outputs => {
		ZZ => {"the rank of the torus factor of a diagonal action "}
		},
	"This function is provided by the package ", TO InvariantRing,". ",
	    
	PARA {
	    "Use this function to recover the rank of the torus factor of a diagonal action."
	    },
	
    	PARA {
	    "The following example defines an action of a 
	    two-dimensional torus on a polynomial ring in four
	    variables."
	    },
        	
	EXAMPLE {
	    "R = QQ[x_1..x_4]",
	    "W = matrix{{0,1,-1,1},{1,0,-1,-1}}",
	    "T = diagonalAction(W, R)",
	    "rank T"
	    },      
	    
	SeeAlso => {
	    DiagonalAction,
	    diagonalAction
	    }      
	}
    
 document {
	Key => { (degreesRing, DiagonalAction)
	    },
	Headline => "of a diagonal action",
	Usage => "degreesRing D",
	Inputs => {
	    	"D" => DiagonalAction
		},
	Outputs => {
		Ring => {"where the equivariant Hilbert series of the diagonal group action lives in"}
		},
	"This function is provided by the package ", TO InvariantRing,". ",
	    
	PARA {
	    "Use this function to get the ring where the equivariant Hilbert series of the diagonal group action lives in."
	    },
	
    	PARA {
	    "The following example defines an action of the product of a 
	    two-dimensional torus and two cyclic group of order 3 on a polynomial ring in four
	    variables."
	    },
        	
	EXAMPLE {
	    "R = QQ[x_1..x_4]",
	    "W = matrix{{0,1,-1,1},{1,0,-1,-1}}",
	    "W1 = matrix{{1,0,1,0},{0,1,1,0}}",
	    "T = diagonalAction(W,W1,{3,3},R)",
	    "degreesRing T"
	    },      
	    
	SeeAlso => {
	    DiagonalAction,
	    diagonalAction
	    }      
	}