aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/INTDOM.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/strap/INTDOM.lsp')
-rw-r--r--src/algebra/strap/INTDOM.lsp34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/algebra/strap/INTDOM.lsp b/src/algebra/strap/INTDOM.lsp
new file mode 100644
index 00000000..9f770345
--- /dev/null
+++ b/src/algebra/strap/INTDOM.lsp
@@ -0,0 +1,34 @@
+
+(/VERSIONCHECK 2)
+
+(DEFPARAMETER |IntegralDomain;AL| 'NIL)
+
+(DEFUN |IntegralDomain| ()
+ (LET (#:G1393)
+ (COND
+ (|IntegralDomain;AL|)
+ (T (SETQ |IntegralDomain;AL| (|IntegralDomain;|))))))
+
+(DEFUN |IntegralDomain;| ()
+ (PROG (#0=#:G1391)
+ (RETURN
+ (PROG1 (LETT #0#
+ (|Join| (|CommutativeRing|) (|Algebra| '$)
+ (|EntireRing|)
+ (|mkCategory| '|domain|
+ '(((|exquo| ((|Union| $ "failed") $ $))
+ T)
+ ((|unitNormal|
+ ((|Record| (|:| |unit| $)
+ (|:| |canonical| $)
+ (|:| |associate| $))
+ $))
+ T)
+ ((|unitCanonical| ($ $)) T)
+ ((|associates?| ((|Boolean|) $ $)) T)
+ ((|unit?| ((|Boolean|) $)) T))
+ NIL '((|Boolean|)) NIL))
+ |IntegralDomain|)
+ (SETELT #0# 0 '(|IntegralDomain|))))))
+
+(MAKEPROP '|IntegralDomain| 'NILADIC T)