[1201] | 1 | ;;; -*- Mode: Lisp -*-
|
---|
[198] | 2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
---|
| 3 | ;;;
|
---|
| 4 | ;;; Copyright (C) 1999, 2002, 2009, 2015 Marek Rychlik <rychlik@u.arizona.edu>
|
---|
| 5 | ;;;
|
---|
| 6 | ;;; This program is free software; you can redistribute it and/or modify
|
---|
| 7 | ;;; it under the terms of the GNU General Public License as published by
|
---|
| 8 | ;;; the Free Software Foundation; either version 2 of the License, or
|
---|
| 9 | ;;; (at your option) any later version.
|
---|
| 10 | ;;;
|
---|
| 11 | ;;; This program is distributed in the hope that it will be useful,
|
---|
| 12 | ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 14 | ;;; GNU General Public License for more details.
|
---|
| 15 | ;;;
|
---|
| 16 | ;;; You should have received a copy of the GNU General Public License
|
---|
| 17 | ;;; along with this program; if not, write to the Free Software
|
---|
| 18 | ;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
---|
| 19 | ;;;
|
---|
| 20 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
---|
| 21 |
|
---|
[573] | 22 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
---|
| 23 | ;;
|
---|
[574] | 24 | ;; Create the main Groebner Basis package.
|
---|
[573] | 25 | ;;
|
---|
| 26 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
---|
| 27 |
|
---|
[198] | 28 | (defpackage "NGROBNER"
|
---|
[1662] | 29 | (:use :cl :ring :monom :order :ring-and-order :term :infix :infix-printer :polynomial :grobner-debug
|
---|
[525] | 30 | :division :buchberger :gebauer-moeller :gb-postprocessing :ideal
|
---|
[1073] | 31 | :utils :grobner-wrap)
|
---|
[212] | 32 | (:export
|
---|
[534] | 33 | ;;
|
---|
[576] | 34 | ;; Global symbols/switches usable at Maxima interpreter level
|
---|
[534] | 35 | ;;
|
---|
[1884] | 36 | "$POLY_MONOMIAL_ORDER"
|
---|
| 37 | "$POLY_ELIMINATION_ORDER"
|
---|
| 38 | "$POLY_PRIMARY_ELIMINATION_ORDER"
|
---|
[537] | 39 | "$POLY_PRIMARY_ELIMINATION_ORDER"
|
---|
[534] | 40 | "$POLY_SECONDARY_ELIMINATION_ORDER"
|
---|
[537] | 41 | "$POLY_RETURN_TERM_LIST"
|
---|
[534] | 42 | "$POLY_COEFFICIENT_RING"
|
---|
[538] | 43 | "$POLY_GROBNER_DEBUG" ;debugging switch
|
---|
[534] | 44 | ;;
|
---|
| 45 | ;; Global variables
|
---|
| 46 | ;;
|
---|
| 47 | "*EXPRESSION-RING*"
|
---|
[538] | 48 | "*ELIMINATION-ORDER*"
|
---|
| 49 | "*MONOMIAL-ORDER*"
|
---|
| 50 | "*PRIMARY-ELIMINATION-ORDER*"
|
---|
| 51 | "*SECONDARY-ELIMINATION-ORDER*"
|
---|
[534] | 52 | "*RATDISREP-FUN*"
|
---|
| 53 | ;;
|
---|
[535] | 54 | ;; Polynomial ring operations
|
---|
[556] | 55 | ;; Note that some require Groebner basis.
|
---|
[534] | 56 | ;;
|
---|
[539] | 57 | "POLY-ADD" "POLY-SUB" "POLY-UMINUS"
|
---|
| 58 | "POLY-MUL" "POLY-EXPT"
|
---|
| 59 | "POLY-ZEROP" "POLY-LM" "POLY-LT"
|
---|
| 60 | "POLY-PSEUDO-DIVIDE"
|
---|
| 61 | "POLY-NORMALIZE" "POLY-NORMALIZE-LIST"
|
---|
[534] | 62 | ;;
|
---|
| 63 | ;; High-level Groebner Basis related functions
|
---|
| 64 | ;;
|
---|
[539] | 65 | "FIND-ORDER" "FIND-RING"
|
---|
[534] | 66 | "NORMAL-FORM"
|
---|
| 67 | "POLY-EXACT-DIVIDE"
|
---|
| 68 | "COLON-IDEAL" "ELIMINATION-IDEAL"
|
---|
[535] | 69 | "GROBNER"
|
---|
| 70 | "REDUCED-GROBNER"
|
---|
[539] | 71 | "MINIMIZATION" "REDUCTION"
|
---|
| 72 | "POLY-LCM"
|
---|
[226] | 73 | "GROBNER-EQUAL" "GROBNER-MEMBER" "GROBNER-SUBSETP"
|
---|
[1516] | 74 | "RING-INTERSECTION"
|
---|
[226] | 75 | "IDEAL-INTERSECTION" "IDEAL-POLYSATURATION"
|
---|
| 76 | "IDEAL-POLYSATURATION-1" "IDEAL-SATURATION" "IDEAL-SATURATION-1"
|
---|
[1319] | 77 | "BUCHBERGER" "PARALLEL-BUCHBERGER" "GEBAUER-MOELLER" "BUCHBERGER-CRITERION"
|
---|
[534] | 78 | ;;
|
---|
| 79 | ;; Low-level functions
|
---|
| 80 | ;;
|
---|
[606] | 81 | "COERCE-COEFF" "COERCE-TO-INFIX" "MAKE-POLY-FROM-TERMLIST" "MAKE-POLY-ZERO"
|
---|
[1661] | 82 | "MAKE-RING" "MAKE-TERM" "MAKE-POLY-VARIABLE" "MAKE-RING-AND-ORDER"
|
---|
[1885] | 83 | "RO-RING" "RO-ORDER" "MONOM-EXPONENTS"
|
---|
[555] | 84 | "POLY-CONTENT" "POLY-DEPENDS-P" "POLY-PRIMITIVE-PART"
|
---|
| 85 | "POLYSATURATION-EXTENSION" "POLY-TERMLIST" "RING-UNIT"
|
---|
| 86 | "SATURATION-EXTENSION" "SPOLY" "$POLY_ELIMINATION_ORDER" "TERM-COEFF"
|
---|
| 87 | "TERM-MONOM" "MAKELIST-1" "MAKELIST" "MAKE-MONOM" "LEX>" "GRLEX>"
|
---|
| 88 | "GREVLEX>" "REVLEX>" "INVLEX>" "ELIMINATION-ORDER"
|
---|
| 89 | "ELIMINATION-ORDER-1" "*PRIMARY-ELIMINATION-ORDER*"
|
---|
| 90 | "*SECONDARY-ELIMINATION-ORDER*" "*ELIMINATION-ORDER*"
|
---|
[1715] | 91 | "INFIX-PRINT" "+RING-OF-INTEGERS+" "MONOM->LIST"
|
---|
[1025] | 92 | ))
|
---|