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

(DEFPARAMETER |UniqueFactorizationDomain;AL| 'NIL) 

(DEFUN |UniqueFactorizationDomain;| ()
  (LET ((#0=#:G1396
            (|Join| (|GcdDomain|)
                    (|mkCategory| '|domain|
                        '(((|prime?| ((|Boolean|) $)) T)
                          ((|squareFree| ((|Factored| $) $)) T)
                          ((|squareFreePart| ($ $)) T)
                          ((|factor| ((|Factored| $) $)) T))
                        NIL '((|Factored| $) (|Boolean|)) NIL))))
    (|setShellEntry| #0# 0 '(|UniqueFactorizationDomain|))
    #0#)) 

(DEFUN |UniqueFactorizationDomain| ()
  (COND
    (|UniqueFactorizationDomain;AL|)
    (T (SETQ |UniqueFactorizationDomain;AL|
             (|UniqueFactorizationDomain;|))))) 

(MAKEPROP '|UniqueFactorizationDomain| 'NILADIC T)