1 | ;;; -*- Mode: Lisp -*-
|
---|
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 |
|
---|
22 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
---|
23 | ;;
|
---|
24 | ;; Create the main Groebner Basis package.
|
---|
25 | ;;
|
---|
26 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
---|
27 |
|
---|
28 | (defpackage "NGROBNER"
|
---|
29 | (:use :cl :ring :monom :order :ring-and-order :term :infix :infix-printer :polynomial :grobner-debug
|
---|
30 | :division :buchberger :gebauer-moeller :gb-postprocessing :ideal
|
---|
31 | :utils :grobner-wrap)
|
---|
32 | (:export
|
---|
33 | ;;
|
---|
34 | ;; Global symbols/switches usable at Maxima interpreter level
|
---|
35 | ;;
|
---|
36 | "$POLY_ELIMINATION_ORDER" "$POLY_MONOMIAL_ORDER"
|
---|
37 | "$POLY_MONOMIAL_ORDER" "$POLY_PRIMARY_ELIMINATION_ORDER"
|
---|
38 | "$POLY_PRIMARY_ELIMINATION_ORDER"
|
---|
39 | "$POLY_SECONDARY_ELIMINATION_ORDER"
|
---|
40 | "$POLY_RETURN_TERM_LIST"
|
---|
41 | "$POLY_COEFFICIENT_RING"
|
---|
42 | "$POLY_GROBNER_DEBUG" ;debugging switch
|
---|
43 | ;;
|
---|
44 | ;; Global variables
|
---|
45 | ;;
|
---|
46 | "*EXPRESSION-RING*"
|
---|
47 | "*ELIMINATION-ORDER*"
|
---|
48 | "*MONOMIAL-ORDER*"
|
---|
49 | "*PRIMARY-ELIMINATION-ORDER*"
|
---|
50 | "*SECONDARY-ELIMINATION-ORDER*"
|
---|
51 | "*RATDISREP-FUN*"
|
---|
52 | ;;
|
---|
53 | ;; Polynomial ring operations
|
---|
54 | ;; Note that some require Groebner basis.
|
---|
55 | ;;
|
---|
56 | "POLY-ADD" "POLY-SUB" "POLY-UMINUS"
|
---|
57 | "POLY-MUL" "POLY-EXPT"
|
---|
58 | "POLY-ZEROP" "POLY-LM" "POLY-LT"
|
---|
59 | "POLY-PSEUDO-DIVIDE"
|
---|
60 | "POLY-NORMALIZE" "POLY-NORMALIZE-LIST"
|
---|
61 | ;;
|
---|
62 | ;; High-level Groebner Basis related functions
|
---|
63 | ;;
|
---|
64 | "FIND-ORDER" "FIND-RING"
|
---|
65 | "NORMAL-FORM"
|
---|
66 | "POLY-EXACT-DIVIDE"
|
---|
67 | "COLON-IDEAL" "ELIMINATION-IDEAL"
|
---|
68 | "GROBNER"
|
---|
69 | "REDUCED-GROBNER"
|
---|
70 | "MINIMIZATION" "REDUCTION"
|
---|
71 | "POLY-LCM"
|
---|
72 | "GROBNER-EQUAL" "GROBNER-MEMBER" "GROBNER-SUBSETP"
|
---|
73 | "RING-INTERSECTION"
|
---|
74 | "IDEAL-INTERSECTION" "IDEAL-POLYSATURATION"
|
---|
75 | "IDEAL-POLYSATURATION-1" "IDEAL-SATURATION" "IDEAL-SATURATION-1"
|
---|
76 | "BUCHBERGER" "PARALLEL-BUCHBERGER" "GEBAUER-MOELLER" "BUCHBERGER-CRITERION"
|
---|
77 | ;;
|
---|
78 | ;; Low-level functions
|
---|
79 | ;;
|
---|
80 | "COERCE-COEFF" "COERCE-TO-INFIX" "MAKE-POLY-FROM-TERMLIST" "MAKE-POLY-ZERO"
|
---|
81 | "MAKE-RING" "MAKE-TERM" "MAKE-POLY-VARIABLE" "MAKE-RING-AND-ORDER"
|
---|
82 | "RO-RING" "RO-ORDER" "MONOM-EXPONENTS" "MONOM"
|
---|
83 | "POLY-CONTENT" "POLY-DEPENDS-P" "POLY-PRIMITIVE-PART"
|
---|
84 | "POLYSATURATION-EXTENSION" "POLY-TERMLIST" "RING-UNIT"
|
---|
85 | "SATURATION-EXTENSION" "SPOLY" "$POLY_ELIMINATION_ORDER" "TERM-COEFF"
|
---|
86 | "TERM-MONOM" "MAKELIST-1" "MAKELIST" "MAKE-MONOM" "LEX>" "GRLEX>"
|
---|
87 | "GREVLEX>" "REVLEX>" "INVLEX>" "ELIMINATION-ORDER"
|
---|
88 | "ELIMINATION-ORDER-1" "*PRIMARY-ELIMINATION-ORDER*"
|
---|
89 | "*SECONDARY-ELIMINATION-ORDER*" "*ELIMINATION-ORDER*"
|
---|
90 | "INFIX-PRINT" "+RING-OF-INTEGERS+" "MONOM->LIST"
|
---|
91 | ))
|
---|