AN INTRODUCTION to MACAULAY2 This Document Gives a Basic Introduction to Macaulay2, an Open Source Software for Al- Gebraic Comp

Total Page:16

File Type:pdf, Size:1020Kb

AN INTRODUCTION to MACAULAY2 This Document Gives a Basic Introduction to Macaulay2, an Open Source Software for Al- Gebraic Comp AN INTRODUCTION TO MACAULAY2 ABRAHAM MARTIN´ DEL CAMPO This document gives a basic introduction to Macaulay2, an open source software for al- gebraic computation. You can download it and find installation instructions in their website: http://www2.macaulay2.com/Macaulay2/. 1. First steps Once Macaulay2 is initiated, you can input any command and execute it by pressing enter. i1 : 5ˆ2 o1 = 25 In Macaulay2, every object has a class (a data type) so that the software knows how to deal with it. Macaulay2 normally displays the type of the output value on a second labeled output line, except for the simplest types (e.g. integers and Boolean values). For instance, any letter is understood as a symbol unless it has been assigned some value. i2 : a o2 = a o2 : Symbol Assignment is done by =, and the value of an object is displayed by typing its name. As- signment can also be done in parallel. Two dashes -- are used by Macaulay2 to indicate a comment and any text following them is disregarded when executing the line. i3 : a = 2*100 -- this is a comment o3 = 200 i4 : a o4 = 200 i5 : (a,a’) = (3ˆ3, 3/4) 3 o5 = (27, -) 4 o5 : Sequence i6 : a o6 = 27 i7 : a’ 3 o7 = - 4 o7 : QQ Date: February 2, 2018. 1 2 MARTIN´ DEL CAMPO Comparison is done by the symbols == and !=, returning true or false. Note that com- parison can only be done between comparable elements, otherwise we get an error message. i8 : a == a’ o8 = false i9 : a != a’ o9 = true i10 : a == w stdio:11:3:(3): error: no method for binary operator == applied to objects: -- 27 (of class ZZ) -- == w (of class Symbol) If you would like to suppress the printing environment in a statement but keeping the result, then the statement should be terminated by ; i11 : 5!; The last output can always be accessed by typing two o’s as in oo. This is particularly useful when working on Macaulay2 directly from the terminal in an interactive computation, and you forgot to store the result in a variable. i12 : oo o12 = 120 The values of the lines before the last one can also be accessed by typing ooo and oooo. Alternatively, the symbol labelling an output line can be used to retrieve the value; for in- stance, if we want to access the output of line 11 (i.e. 5 factorial), we would type o11 as in the following example. i13 : 3/5 - 7/11 2 o13 = - -- 55 o13 : QQ i14 : o11 + 3 o14 = 123 i15 : factorial = oooo o15 = 120 Strings are delimited by quotation marks ", but you can also convert any value into a string with the function toString. i16 : text = "how are you doing?" o16 = how are you doing? i17 : nonumber = toString(o11+3) o17 = 123 AN INTRODUCTION TO MACAULAY2 3 In the last example, we stored the number 123 (coming from adding 3 to the output in line 11) in the variable nonumber, but considering it as a string and not as a number. Thus, it can be concatenated horizontally with other strings using |, or vertically using ||. i18 : s = "Hi everyone" o18 = Hi everyone i19 : s | " - " | text | nonumber o19 = Hi everyone - how are you doing? 123 i20 : s || " - " || text o20 = Hi everyone - how are you doing? The best way to learn Macaulay2 is to read the online documentation either through their web site or through the local copy included in the installation folder. You can access this local copy by typing help. i21 : help matrix o21 = matrix -- make a matrix *********************** Synopsis ======== * Optional inputs: * Degree => ..., -- create a matrix from a doubly-nested list of ring elements or matrices Description =========== ... You could display the same information in your web browser instead of the terminal win- dow using the command viewHelp instead. i22 : viewHelp matrix The command apropos helps you find a function you may be searching but you forgot parts of its name. The output will be a list with all functions that included the searched part included in their name. i23 : apropos "dimension" o23 = {AllCodimensions, CodimensionLimit} o23 : List i24 : apropos "dim" o24 = {AllCodimensions, codim, CodimensionLimit, dim, pdim, RadicalCodim1} o24 : List A list of expressions can be formed with braces. The number of elements is obtained by placing the symbol # before the list. 4 MARTIN´ DEL CAMPO i25 : L = {1, 2, s} o25 = {1, 2, Hi everyone} o25 : List i26 : #L o26 = 3 The elements in a list are internally numbered by integer numbers starting from 0. You can access an element by placing the symbol # after the list followed by the element number. i27 : L#0 o27 = 1 Macaulay2 creates a matrix from a nested list of lists, which the softwares interprets as a list of rows, each of which is in turn a list of ring elements. Once you declare a matrix, you can use basic matrix operations. i28 : M = matrix {{1,2,3},{4,5,6},{7,8,0}} o28 = | 1 2 3 | | 4 5 6 | | 7 8 0 | 3 3 o28 : Matrix ZZ <--- ZZ i29 : M + 3*M o29 = | 4 8 12 | | 16 20 24 | | 28 32 0 | 3 3 o29 : Matrix ZZ <--- ZZ i30 : Mˆ2 o30 = | 30 36 15 | | 66 81 42 | | 39 54 69 | 3 3 o30 : Matrix ZZ <--- ZZ i31 : trace M o31 = 6 i32 : transpose M o32 = | 1 4 7 | | 2 5 8 | | 3 6 0 | 3 3 o32 : Matrix ZZ <--- ZZ AN INTRODUCTION TO MACAULAY2 5 i33 : det M o33 = 27 You can see the entries of the matrix specifying the coordinates. However, you cannot modify the values of an entry unless you work with a mutable matrix. i34 : M_(0,1) -- this is the entry in first row and second column o34 = 2 i35 : M_(0,1) = 0 stdio:38:9:(3): error: no method for assignment to binary operator _ applied to objects: -- | 1 2 3 | (of class Matrix) -- | 4 5 6 | -- | 7 8 0 | -- _ (0, 1) (of class Sequence) i36 : M = mutableMatrix M o36 = | 1 2 3 | | 4 5 6 | | 7 8 . | o36 : MutableMatrix i37 : M_(0,1) = 0 o37 = 0 i38 : M o38 = | 1 . 3 | | 4 5 6 | | 7 8 . | o38 : MutableMatrix If you want to protect the information of the matrix again, you can pass from mutable to regular matrix i39 : M = matrix M o39 = | 1 0 3 | | 4 5 6 | | 7 8 0 | 3 3 o39 : Matrix ZZ <--- ZZ You may notice that Macaulay2 interprets matrices not only as a list of lists, but also as a map between modules. We need to take this in consideration when operating with matrices. For instance, the matrix M above has integer entries; thus, it is regarded as a map between 6 MARTIN´ DEL CAMPO Z-modules and so, the elements of its inverse should live in the fraction field otherwise, it regards M as not invertible. i40 : inverse M stdio:43:1:(3): error: matrix not invertible i41 : promote(M, QQ) o41 = | 1 0 3 | | 4 5 6 | | 7 8 0 | 3 3 o41 : Matrix QQ <--- QQ i42 : inverse oo o42 = | 16/19 -8/19 5/19 | | -14/19 7/19 -2/19 | | 1/19 8/57 -5/57 | 3 3 o42 : Matrix QQ <--- QQ 2. Basic Programming in M2 We now explain a few basic things about the programming tools in Macaulay2. Let us start by creating a matrix entry by entry using a for loop. We will begin by declaring a mutable integer matrix of size 3 × 3. i1 : M = mutableMatrix(ZZ, 3,3) o1 = 0 o1 : MutableMatrix i2 : for i from 0 to 2 list for j from 0 to 2 list M_(i, j) = 3*i+j o2 = {{0, 1, 2}, {3, 4, 5}, {6, 7, 8}} o2 : List The matrix defined is regarded as a mutable list, but we can declare it a matrix as well. i3 : M o3 = | . 1 2 | | 3 4 5 | | 6 7 8 | o3 : MutableMatrix i4 : matrix M o4 = | 0 1 2 | | 3 4 5 | AN INTRODUCTION TO MACAULAY2 7 | 6 7 8 | 3 3 o4 : Matrix ZZ <--- ZZ In the previous code, the output of each for loop is a list, but we could had written do instead to return just the output and discard it afterwards. i5 : SQ = for i from 1 to 4 list iˆ2 o5 = {1, 4, 9, 16} o5 : List i6 : #SQ o6 = 4 i7 : SQ2 = for i from 1 to 4 do iˆ2 i8 : #SQ2 stdio:10:1:(3): error: expected a list, sequence, hash table, or string A shorter way to type for loops in Macaulay2 is with the functions apply and scan, that starts from a list and a function to specify what to do with each element of the list. i9 : Sq = apply({1,2,3,4}, i -> iˆ2) o9 = {1, 4, 9, 16} o9 : List i10 : #Sq o10 = 4 i11 : Sq2 = scan({1,2,3,4}, i -> iˆ2) i12 : #Sq2 stdio:14:1:(3): error: expected a list, sequence, hash table, or string i13 : SQ == Sq o13 = true i14 : SQ2 == Sq2 o14 = true The operator -> above indicates that we are creating a function, in this case, on the elements of the list. Our next example will be a function to compute the factorial n! of an integer n. i15 : factrl = n -> ( prod := 1; -- initializing the output variable for i from 1 to n do prod = i*prod; return prod; ) o15 = factrl o15 : FunctionClosure 8 MARTIN´ DEL CAMPO i16 : factrl(5) o16 = 120 i17 : factrl(-3) o17 = 1 The second line in our function declares a local variable prod by initializing it using a colon before the equal sign :=.
Recommended publications
  • Using Macaulay2 Effectively in Practice
    Using Macaulay2 effectively in practice Mike Stillman ([email protected]) Department of Mathematics Cornell 22 July 2019 / IMA Sage/M2 Macaulay2: at a glance Project started in 1993, Dan Grayson and Mike Stillman. Open source. Key computations: Gr¨obnerbases, free resolutions, Hilbert functions and applications of these. Rings, Modules and Chain Complexes are first class objects. Language which is comfortable for mathematicians, yet powerful, expressive, and fun to program in. Now a community project Journal of Software for Algebra and Geometry (started in 2009. Now we handle: Macaulay2, Singular, Gap, Cocoa) (original editors: Greg Smith, Amelia Taylor). Strong community: including about 2 workshops per year. User contributed packages (about 200 so far). Each has doc and tests, is tested every night, and is distributed with M2. Lots of activity Over 2000 math papers refer to Macaulay2. History: 1976-1978 (My undergrad years at Urbana) E. Graham Evans: asked me to write a program to compute syzygies, from Hilbert's algorithm from 1890. Really didn't work on computers of the day (probably might still be an issue!). Instead: Did computation degree by degree, no finishing condition. Used Buchsbaum-Eisenbud \What makes a complex exact" (by hand!) to see if the resulting complex was exact. Winfried Bruns was there too. Very exciting time. History: 1978-1983 (My grad years, with Dave Bayer, at Harvard) History: 1978-1983 (My grad years, with Dave Bayer, at Harvard) I tried to do \real mathematics" but Dave Bayer (basically) rediscovered Groebner bases, and saw that they gave an algorithm for computing all syzygies. I got excited, dropped what I was doing, and we programmed (in Pascal), in less than one week, the first version of what would be Macaulay.
    [Show full text]
  • Research in Algebraic Geometry with Macaulay2
    Research in Algebraic Geometry with Macaulay2 1 Macaulay2 a software system for research in algebraic geometry resultants the community, packages, the journal, and workshops 2 Tutorial the ideal of a monomial curve elimination: projecting the twisted cubic quotients and saturation 3 the package PHCpack.m2 solving polynomial systems numerically MCS 507 Lecture 39 Mathematical, Statistical and Scientific Software Jan Verschelde, 25 November 2019 Scientific Software (MCS 507) Macaulay2 L-39 25November2019 1/32 Research in Algebraic Geometry with Macaulay2 1 Macaulay2 a software system for research in algebraic geometry resultants the community, packages, the journal, and workshops 2 Tutorial the ideal of a monomial curve elimination: projecting the twisted cubic quotients and saturation 3 the package PHCpack.m2 solving polynomial systems numerically Scientific Software (MCS 507) Macaulay2 L-39 25November2019 2/32 Macaulay2 D. R. Grayson and M. E. Stillman: Macaulay2, a software system for research in algebraic geometry, available at https://faculty.math.illinois.edu/Macaulay2. Funded by the National Science Foundation since 1992. Its source is at https://github.com/Macaulay2/M2; licence: GNU GPL version 2 or 3; try it online at http://habanero.math.cornell.edu:3690. Several workshops are held each year. Packages extend the functionality. The Journal of Software for Algebra and Geometry (at https://msp.org/jsag) started its first volume in 2009. The SageMath interface to Macaulay2 requires its binary M2 to be installed on your computer. Scientific
    [Show full text]
  • An Alternative Algorithm for Computing the Betti Table of a Monomial Ideal 3
    AN ALTERNATIVE ALGORITHM FOR COMPUTING THE BETTI TABLE OF A MONOMIAL IDEAL MARIA-LAURA TORRENTE AND MATTEO VARBARO Abstract. In this paper we develop a new technique to compute the Betti table of a monomial ideal. We present a prototype implementation of the resulting algorithm and we perform numerical experiments suggesting a very promising efficiency. On the way of describing the method, we also prove new constraints on the shape of the possible Betti tables of a monomial ideal. 1. Introduction Since many years syzygies, and more generally free resolutions, are central in purely theo- retical aspects of algebraic geometry; more recently, after the connection between algebra and statistics have been initiated by Diaconis and Sturmfels in [DS98], free resolutions have also become an important tool in statistics (for instance, see [D11, SW09]). As a consequence, it is fundamental to have efficient algorithms to compute them. The usual approach uses Gr¨obner bases and exploits a result of Schreyer (for more details see [Sc80, Sc91] or [Ei95, Chapter 15, Section 5]). The packages for free resolutions of the most used computer algebra systems, like [Macaulay2, Singular, CoCoA], are based on these techniques. In this paper, we introduce a new algorithmic method to compute the minimal graded free resolution of any finitely generated graded module over a polynomial ring such that some (possibly non- minimal) graded free resolution is known a priori. We describe this method and we present the resulting algorithm in the case of monomial ideals in a polynomial ring, in which situ- ation we always have a starting nonminimal graded free resolution.
    [Show full text]
  • Computations in Algebraic Geometry with Macaulay 2
    Computations in algebraic geometry with Macaulay 2 Editors: D. Eisenbud, D. Grayson, M. Stillman, and B. Sturmfels Preface Systems of polynomial equations arise throughout mathematics, science, and engineering. Algebraic geometry provides powerful theoretical techniques for studying the qualitative and quantitative features of their solution sets. Re- cently developed algorithms have made theoretical aspects of the subject accessible to a broad range of mathematicians and scientists. The algorith- mic approach to the subject has two principal aims: developing new tools for research within mathematics, and providing new tools for modeling and solv- ing problems that arise in the sciences and engineering. A healthy synergy emerges, as new theorems yield new algorithms and emerging applications lead to new theoretical questions. This book presents algorithmic tools for algebraic geometry and experi- mental applications of them. It also introduces a software system in which the tools have been implemented and with which the experiments can be carried out. Macaulay 2 is a computer algebra system devoted to supporting research in algebraic geometry, commutative algebra, and their applications. The reader of this book will encounter Macaulay 2 in the context of concrete applications and practical computations in algebraic geometry. The expositions of the algorithmic tools presented here are designed to serve as a useful guide for those wishing to bring such tools to bear on their own problems. A wide range of mathematical scientists should find these expositions valuable. This includes both the users of other programs similar to Macaulay 2 (for example, Singular and CoCoA) and those who are not interested in explicit machine computations at all.
    [Show full text]
  • What Can Computer Algebraic Geometry Do Today?
    What can computer Algebraic Geometry do today? Gregory G. Smith Wolfram Decker Mike Stillman 14 July 2015 Essential Questions ̭ What can be computed? ̭ What software is currently available? ̭ What would you like to compute? ̭ How should software advance your research? Basic Mathematical Types ̭ Polynomial Rings, Ideals, Modules, ̭ Varieties (affine, projective, toric, abstract), ̭ Sheaves, Divisors, Intersection Rings, ̭ Maps, Chain Complexes, Homology, ̭ Polyhedra, Graphs, Matroids, ̯ Established Geometric Tools ̭ Elimination, Blowups, Normalization, ̭ Rational maps, Working with divisors, ̭ Components, Parametrizing curves, ̭ Sheaf Cohomology, ঠ-modules, ̯ Emerging Geometric Tools ̭ Classification of singularities, ̭ Numerical algebraic geometry, ̭ ैक़௴Ь, Derived equivalences, ̭ Deformation theory,Positivity, ̯ Some Geometric Successes ̭ GEOGRAPHY OF SURFACES: exhibiting surfaces with given invariants ̭ BOIJ-SÖDERBERG: examples lead to new conjectures and theorems ̭ MODULI SPACES: computer aided proofs of unirationality Some Existing Software ̭ GAP,Macaulay2, SINGULAR, ̭ CoCoA, Magma, Sage, PARI, RISA/ASIR, ̭ Gfan, Polymake, Normaliz, 4ti2, ̭ Bertini, PHCpack, Schubert, Bergman, an idiosyncratic and incomplete list Effective Software ̭ USEABLE: documented examples ̭ MAINTAINABLE: includes tests, part of a larger distribution ̭ PUBLISHABLE: Journal of Software for Algebra and Geometry; www.j-sag.org ̭ CITATIONS: reference software Recent Developments in Singular Wolfram Decker Janko B¨ohm, Hans Sch¨onemann, Mathias Schulze Mohamed Barakat TU Kaiserslautern July 14, 2015 Wolfram Decker (TU-KL) Recent Developments in Singular July 14, 2015 1 / 24 commutative and non-commutative algebra, singularity theory, and with packages for convex and tropical geometry. It is free and open-source under the GNU General Public Licence.
    [Show full text]
  • GNU Texmacs User Manual Joris Van Der Hoeven
    GNU TeXmacs User Manual Joris van der Hoeven To cite this version: Joris van der Hoeven. GNU TeXmacs User Manual. 2013. hal-00785535 HAL Id: hal-00785535 https://hal.archives-ouvertes.fr/hal-00785535 Preprint submitted on 6 Feb 2013 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. GNU TEXMACS user manual Joris van der Hoeven & others Table of contents 1. Getting started ...................................... 11 1.1. Conventionsforthismanual . .......... 11 Menuentries ..................................... 11 Keyboardmodifiers ................................. 11 Keyboardshortcuts ................................ 11 Specialkeys ..................................... 11 1.2. Configuring TEXMACS ..................................... 12 1.3. Creating, saving and loading documents . ............ 12 1.4. Printingdocuments .............................. ........ 13 2. Writing simple documents ............................. 15 2.1. Generalities for typing text . ........... 15 2.2. Typingstructuredtext ........................... ......... 15 2.3. Content-basedtags
    [Show full text]
  • The Reesalgebra Package in Macaulay2
    Journal of Software for Algebra and Geometry The ReesAlgebra package in Macaulay2 DAVID EISENBUD vol 8 2018 JSAG 8 (2018), 49–60 The Journal of Software for dx.doi.org/10.2140/jsag.2018.8.49 Algebra and Geometry The ReesAlgebra package in Macaulay2 DAVID EISENBUD ABSTRACT: This note introduces Rees algebras and some of their uses, with illustrations from version 2.2 of the Macaulay2 package ReesAlgebra.m2. INTRODUCTION. A central construction in modern commutative algebra starts from an ideal I in a commutative ring R, and produces the Rees algebra R.I / VD R ⊕ I ⊕ I 2 ⊕ I 3 ⊕ · · · D∼ RTI tU ⊂ RTtU; where RTtU denotes the polynomial algebra in one variable t over R. For basics on Rees algebras, see[Vasconcelos 1994] and[Swanson and Huneke 2006], and for some other research, see[Eisenbud and Ulrich 2018; Kustin and Ulrich 1992; Ulrich 1994], and[Valabrega and Valla 1978]. From the point of view of algebraic geometry, the Rees algebra R.I / is a homo- geneous coordinate ring for the graph of a rational map whose total space is the blowup of Spec R along the scheme defined by I. (In fact, the “Rees algebra” is sometimes called the “blowup algebra”.) Rees algebras were first studied in the algebraic context by David Rees, in the now-famous paper[Rees 1958]. Actually, Rees mainly studied the ring RTI t; t−1U, now also called the extended Rees algebra of I. Mike Stillman and I wrote a Rees algebra script for Macaulay classic. It was aug- mented, and made into the[Macaulay2] package ReesAlgebra.m2 around 2002, to study a generalization of Rees algebras to modules described in[Eisenbud et al.
    [Show full text]
  • SMT Solving in a Nutshell
    SAT and SMT Solving in a Nutshell Erika Abrah´ am´ RWTH Aachen University, Germany LuFG Theory of Hybrid Systems February 27, 2020 Erika Abrah´ am´ - SAT and SMT solving 1 / 16 What is this talk about? Satisfiability problem The satisfiability problem is the problem of deciding whether a logical formula is satisfiable. We focus on the automated solution of the satisfiability problem for first-order logic over arithmetic theories, especially using SAT and SMT solving. Erika Abrah´ am´ - SAT and SMT solving 2 / 16 CAS SAT SMT (propositional logic) (SAT modulo theories) Enumeration Computer algebra DP (resolution) systems [Davis, Putnam’60] DPLL (propagation) [Davis,Putnam,Logemann,Loveland’62] Decision procedures NP-completeness [Cook’71] for combined theories CAD Conflict-directed [Shostak’79] [Nelson, Oppen’79] backjumping Partial CAD Virtual CDCL [GRASP’97] [zChaff’04] DPLL(T) substitution Watched literals Equalities and uninterpreted Clause learning/forgetting functions Variable ordering heuristics Bit-vectors Restarts Array theory Arithmetic Decision procedures for first-order logic over arithmetic theories in mathematical logic 1940 Computer architecture development 1960 1970 1980 2000 2010 Erika Abrah´ am´ - SAT and SMT solving 3 / 16 SAT SMT (propositional logic) (SAT modulo theories) Enumeration DP (resolution) [Davis, Putnam’60] DPLL (propagation) [Davis,Putnam,Logemann,Loveland’62] Decision procedures NP-completeness [Cook’71] for combined theories Conflict-directed [Shostak’79] [Nelson, Oppen’79] backjumping CDCL [GRASP’97] [zChaff’04]
    [Show full text]
  • Numerical Algebraic Geometry
    JSAG 3 (2011), 5 – 10 The Journal of Software for Algebra and Geometry Numerical Algebraic Geometry ANTON LEYKIN ABSTRACT. Numerical algebraic geometry uses numerical data to describe algebraic varieties. It is based on numerical polynomial homotopy continuation, which is an alternative to the classical symbolic approaches of computational algebraic geometry. We present a package, whose primary purpose is to interlink the existing symbolic methods of Macaulay2 and the powerful engine of numerical approximate computations. The core procedures of the package exhibit performance competitive with the other homotopy continuation software. INTRODUCTION. Numerical algebraic geometry [SVW,SW] is a relatively young subarea of compu- tational algebraic geometry that originated as a blend of the well-understood apparatus of classical algebraic geometry over the field of complex numbers and numerical polynomial homotopy continua- tion methods. Recently steps have been made to extend the reach of numerical algorithms making it possible not only for complex algebraic varieties, but also for schemes, to be represented numerically. What we present here is a description of “stage one” of a comprehensive project that will make the machinery of numerical algebraic geometry available to the wide community of users of Macaulay2 [M2], a dominantly symbolic computer algebra system. Our open-source package [L1, M2] was first released in Macaulay2 distribution version 1.3.1. Stage one has been limited to implementation of algorithms that solve the most basic problem: Given polynomials f1;:::; fn 2 C[x1;:::;xn] that generate a 0-dimensional ideal I = ( f1;:::; fn), find numerical approximations of all points of the underlying n variety V(I) = fx 2 C j f(x) = 0g.
    [Show full text]
  • Arxiv:2010.08903V1 [Math.AC]
    STANDARD PAIRS OF MONOMIAL IDEALS OVER NON-NORMAL AFFINE SEMIGROUPS IN SageMath BYEONGSU YU ABSTRACT. We present stdPairs.spyx,a SageMath library to compute standard pairs of a monomial ideal over a pointed (non-normal) affine semigroup ring. Moreover, stdPairs.spyx provides the associated prime ideals, the correspondingmultiplicities, and an irredundant irreducible primary decomposition of a monomial ideal. The library expands on the standardPairs func- tion on Macaulay2 over polynomial rings, and is based on algorithms from [6]. We also provide methods that allow the outputs from this library to be compatible with the Normaliz package of Macaulay2 and SageMath. 1. INTRODUCTION Affine semigroup rings are objects of many studies in combinatorial commutative algebra. The goal of this article is to present the SageMath library stdPairs.spyx, which systematizes computations for monomial ideals in affine semigroup rings. The algorithms implemented here are based on the notion of standard pairs, introduced for monomial ideals in polynomial rings by [8], and generalized to the semigroup ring case in [6]. Standard pairs are a combinatorial structure that contains information on primary and irreducible decompositions of monomial ideals, as well as multiplicities. One of the main contributions of [6] is that standard pairs and the associated algebraic concepts can be effectively computed over affine semigroup rings. The SageMath library stdPairs.spyx implements the algorithms of [6] to calculate standard pairs for monomial ideals in any pointed (non-normal) affine semigroup ring. This library can be regarded as a generalization of standardPairs function in Macaulay2 implemented by [4]. This library can be obtained via https://github.com/byeongsuyu/StdPairs.
    [Show full text]
  • Modeling and Analysis of Hybrid Systems
    Building Bridges between Symbolic Computation and Satisfiability Checking Erika Abrah´ am´ RWTH Aachen University, Germany in cooperation with Florian Corzilius, Gereon Kremer, Stefan Schupp and others ISSAC’15, 7 July 2015 Photo: Prior Park, Bath / flickr Liam Gladdy What is this talk about? Satisfiability problem The satisfiability problem is the problem of deciding whether a logical formula is satisfiable. We focus on the automated solution of the satisfiability problem for first-order logic over arithmetic theories, especially on similarities and differences in symbolic computation and SAT and SMT solving. Erika Abrah´ am´ - SMT solving and Symbolic Computation 2 / 39 CAS SAT SMT (propositional logic) (SAT modulo theories) Enumeration Computer algebra DP (resolution) systems [Davis, Putnam’60] DPLL (propagation) [Davis,Putnam,Logemann,Loveland’62] Decision procedures NP-completeness [Cook’71] for combined theories CAD Conflict-directed [Shostak’79] [Nelson, Oppen’79] backjumping Partial CAD Virtual CDCL [GRASP’97] [zChaff’04] DPLL(T) substitution Watched literals Equalities and uninterpreted Clause learning/forgetting functions Variable ordering heuristics Bit-vectors Restarts Array theory Arithmetic Decision procedures for first-order logic over arithmetic theories in mathematical logic 1940 Computer architecture development 1960 1970 1980 2000 2010 Erika Abrah´ am´ - SMT solving and Symbolic Computation 3 / 39 SAT SMT (propositional logic) (SAT modulo theories) Enumeration DP (resolution) [Davis, Putnam’60] DPLL (propagation) [Davis,Putnam,Logemann,Loveland’62]
    [Show full text]
  • Arxiv:2010.15331V2 [Math.AC] 19 Nov 2020 Rlqeto Nivratter.Ti Ril Ecie Significant a Describes R Article Action This Group Theory
    THE INVARIANTRING PACKAGE FOR MACAULAY2 LUIGI FERRARO, FEDERICO GALETTO, FRANCESCA GANDINI, HANG HUANG, MATTHEW MASTROENI, AND XIANGLONG NI Abstract. We describe a significant update to the existing InvariantRing package for Macaulay2. In addition to expanding and improving the methods of the existing package for actions of finite groups, the updated package adds func- tionality for computing invariants of diagonal actions of tori and finite abelian groups as well as invariants of arbitrary linearly reductive group actions. The implementation of the package has been completely overhauled with the aim of serving as a unified resource for invariant theory computations in Macaulay2. 1. Introduction Let G be a group acting linearly on an n-dimensional vector space V over a field K via v 7→ g · v for g ∈ G and v ∈ V . The action of G on V induces an action −1 of G on the polynomial ring K[V ]= K[x1,...,xn] by (g · f)(x)= f(g · x). By a classical result of Hilbert (see [DK15, 2.2.10]), the subring of invariant polynomials K[V ]G = {f ∈ K[V ] | g · f = f, ∀g ∈ G} is always a finitely generated K-algebra provided that G is linearly reductive and V is a rational representation of G.1 A linearly reductive group is a group that can be identified with a Zariski-closed subgroup of some general linear group GLn = GLn(K) and has good representation-theoretic properties while still being general enough to encompass all finite groups, all tori (K×)r, and all semisimple Lie groups (at least if char(K) = 0).
    [Show full text]