aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/UFD.lsp
blob: 4dee186a8c4812a26cc9dacb467110da47a5aa80 (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=#:G1372
            (|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)