aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/UFD-.lsp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-03-07 05:49:53 +0000
committerdos-reis <gdr@axiomatics.org>2011-03-07 05:49:53 +0000
commita03b7716749e9fb997d99659967aa49ae6ca1569 (patch)
treef9ea530df62ac41622e2180077fb4d07aebd7d64 /src/algebra/strap/UFD-.lsp
parent13c00cb56547feb8cd6b5b3c6386a881072862f6 (diff)
downloadopen-axiom-a03b7716749e9fb997d99659967aa49ae6ca1569.tar.gz
* interp/sys-utility.boot (getSystemModulePath): Use
systemAlgebraDirectory. * interp/database.boot (pathToDatabase): Use systemDatabaseDirectory. * algebra/integer.spad.pamphlet (Integer) [latex]: Tidy. * algebra/string.spad.pamphlet (Character) [latex]: Likewise. * algebra/Makefile.in: Rework bootstrapping set up. (COMPILE_LISP): Remove. (axiom_algebra_layer_strap): Likewise. (axiom_algebra_layer_strap_objects): Likewise. (axiom_algebra_bootstrap): Likewise. (oa_strap_0_fasls): New. (oa_strap_1_fasls): Likewise. (oa_strap_2_fasls): Likewise. (oa_strap_0_sources): Likewise. (oa_strap_1_sources): Likewise. (oa_strap_2_sources): Likewise. * src/algerab/strap: Remove.
Diffstat (limited to 'src/algebra/strap/UFD-.lsp')
-rw-r--r--src/algebra/strap/UFD-.lsp71
1 files changed, 0 insertions, 71 deletions
diff --git a/src/algebra/strap/UFD-.lsp b/src/algebra/strap/UFD-.lsp
deleted file mode 100644
index c947b666..00000000
--- a/src/algebra/strap/UFD-.lsp
+++ /dev/null
@@ -1,71 +0,0 @@
-
-(/VERSIONCHECK 2)
-
-(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%Thing|)
- |UFD-;squareFreePart;2S;1|))
-
-(DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%Boolean|)
- |UFD-;prime?;SB;2|))
-
-(DEFUN |UFD-;squareFreePart;2S;1| (|x| $)
- (PROG (|s|)
- (RETURN
- (SPADCALL
- (SPADCALL
- (LETT |s| (SPADCALL |x| (|shellEntry| $ 8))
- |UFD-;squareFreePart;2S;1|)
- (|shellEntry| $ 10))
- (LET ((#0=#:G1380 NIL) (#1=#:G1381 T)
- (#2=#:G1394 (SPADCALL |s| (|shellEntry| $ 14))))
- (LOOP
- (COND
- ((ATOM #2#)
- (RETURN (COND (#1# (|spadConstant| $ 16)) (T #0#))))
- (T (LET ((|f| (CAR #2#)))
- (LET ((#3=#:G1379 (CAR |f|)))
- (COND
- (#1# (SETQ #0# #3#))
- (T (SETQ #0#
- (SPADCALL #0# #3#
- (|shellEntry| $ 15)))))
- (SETQ #1# NIL)))))
- (SETQ #2# (CDR #2#))))
- (|shellEntry| $ 15)))))
-
-(DEFUN |UFD-;prime?;SB;2| (|x| $)
- (EQL (LIST-LENGTH
- (SPADCALL (SPADCALL |x| (|shellEntry| $ 18))
- (|shellEntry| $ 22)))
- 1))
-
-(DEFUN |UniqueFactorizationDomain&| (|#1|)
- (LET* ((|dv$1| (|devaluate| |#1|))
- (|dv$| (LIST '|UniqueFactorizationDomain&| |dv$1|))
- ($ (|newShell| 29)) (|pv$| (|buildPredVector| 0 0 NIL)))
- (SETF (|shellEntry| $ 0) |dv$|)
- (SETF (|shellEntry| $ 3) |pv$|)
- (|stuffDomainSlots| $)
- (SETF (|shellEntry| $ 6) |#1|)
- $))
-
-(MAKEPROP '|UniqueFactorizationDomain&| '|infovec|
- (LIST '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|Factored| $)
- (0 . |squareFree|) (|Factored| 6) (5 . |unit|) (|Integer|)
- (|Record| (|:| |factor| 6) (|:| |exponent| 11))
- (|List| 12) (10 . |factors|) (15 . *) (21 . |One|)
- |UFD-;squareFreePart;2S;1| (25 . |factor|)
- (|Union| '"nil" '"sqfr" '"irred" '"prime")
- (|Record| (|:| |flg| 19) (|:| |fctr| 6) (|:| |xpnt| 11))
- (|List| 20) (30 . |factorList|) (|NonNegativeInteger|)
- (35 . |#|) (40 . |One|) (|Boolean|) (44 . =)
- |UFD-;prime?;SB;2|)
- '#(|squareFreePart| 50 |prime?| 55) 'NIL
- (CONS (|makeByteWordVec2| 1 'NIL)
- (CONS '#()
- (CONS '#()
- (|makeByteWordVec2| 28
- '(1 6 7 0 8 1 9 6 0 10 1 9 13 0 14 2 6
- 0 0 0 15 0 6 0 16 1 6 7 0 18 1 9 21 0
- 22 1 21 23 0 24 0 23 0 25 2 23 26 0 0
- 27 1 0 0 0 17 1 0 26 0 28)))))
- '|lookupComplete|))