aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/INTDOM.lsp
blob: fc558f8271d39abcfbc10ad345174ec1c15323f0 (plain)
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
(/VERSIONCHECK 2) 

(DEFPARAMETER |IntegralDomain;AL| 'NIL) 

(DEFUN |IntegralDomain;| ()
  (PROG (#0=#:G1403)
    (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|)))))) 

(DEFUN |IntegralDomain| ()
  (LET ()
    (COND
      (|IntegralDomain;AL|)
      (T (SETQ |IntegralDomain;AL| (|IntegralDomain;|)))))) 

(SETQ |$CategoryFrame|
      (|put| '|IntegralDomain| '|isCategory| T
             (|addModemap| '|IntegralDomain| '(|IntegralDomain|)
                 '((|Category|)) T '|IntegralDomain| |$CategoryFrame|))) 

(MAKEPROP '|IntegralDomain| 'NILADIC T)