Extracted simplicial groups test.

This commit is contained in:
Gerd Heber 2015-07-14 06:39:49 -05:00
parent 04eb103bad
commit 2672709129
4 changed files with 141 additions and 125 deletions

View File

@ -27,6 +27,7 @@
(:file "k-pi-n-test") (:file "k-pi-n-test")
(:file "kan-test") (:file "kan-test")
(:file "searching-homology-test") (:file "searching-homology-test")
(:file "simplicial-groups-test")
(:file "simplicial-mrphs-test") (:file "simplicial-mrphs-test")
(:file "simplicial-sets-test") (:file "simplicial-sets-test")
(:file "tensor-products-test") (:file "tensor-products-test")

View File

@ -236,6 +236,7 @@
;; kan.lisp ;; kan.lisp
CHECK-HAT CHECK-HAT
CHECK-KAN
SMST-KAN SMST-KAN
;; loop-spaces.lisp ;; loop-spaces.lisp

View File

@ -6,11 +6,13 @@
(PROVIDE "simplicial-groups") (PROVIDE "simplicial-groups")
(DEFUN SMGR (idnm) (DEFUN SMGR (idnm)
(declare (fixnum idnm)) (declare (fixnum idnm))
(the (or null simplicial-group) (the (or null simplicial-group)
(find idnm *smgr-list* :key #'idnm))) (find idnm *smgr-list* :key #'idnm)))
#+clisp(eval-when (:compile-toplevel :load-toplevel :execute) #+clisp(eval-when (:compile-toplevel :load-toplevel :execute)
(setf (ext:package-lock :clos) nil)) (setf (ext:package-lock :clos) nil))
(DEFMETHOD PRINT-OBJECT ((smgr simplicial-group) stream) (DEFMETHOD PRINT-OBJECT ((smgr simplicial-group) stream)
@ -70,6 +72,7 @@
(push rslt *smgr-list*) (push rslt *smgr-list*)
rslt)) rslt))
(DEFUN A-GRML4 (sintr-grml dmns absm1 absm2) (DEFUN A-GRML4 (sintr-grml dmns absm1 absm2)
(declare (declare
(fixnum dmns) (fixnum dmns)
@ -83,6 +86,7 @@
(- dmns (logcount dgop)) (- dmns (logcount dgop))
crpr)))))) crpr))))))
(DEFUN A-GRIN4 (sintr-grin dmns absm) (DEFUN A-GRIN4 (sintr-grin dmns absm)
(declare (declare
(type sintr sintr-grin) (type sintr sintr-grin)
@ -92,7 +96,9 @@
(with-absm (dgop gmsm) absm (with-absm (dgop gmsm) absm
(absm dgop (absm dgop
(gmsm (gmsm
(funcall sintr-grin (- dmns (logcount dgop)) gmsm)))))) (funcall sintr-grin (- dmns (logcount dgop))
gmsm))))))
(DEFMETHOD SLOT-UNBOUND (class (smgr simplicial-group) (DEFMETHOD SLOT-UNBOUND (class (smgr simplicial-group)
(name (eql 'kfll))) (name (eql 'kfll)))
@ -102,6 +108,7 @@
(push smgr *kan-list*) (push smgr *kan-list*)
(setf (slot-value smgr 'kfll) (smgr-kfll smgr))))) (setf (slot-value smgr 'kfll) (smgr-kfll smgr)))))
(DEFUN SMGR-KFLL-INTR (face sintr-grml sintr-grin) (DEFUN SMGR-KFLL-INTR (face sintr-grml sintr-grin)
(flet ((rslt (indx dmns hat (flet ((rslt (indx dmns hat
&aux (dmns-1 (1- dmns))) &aux (dmns-1 (1- dmns)))
@ -156,6 +163,7 @@
rslt)))) rslt))))
(the kfll #'rslt))) (the kfll #'rslt)))
(DEFUN SMGR-KFLL (smgr) (DEFUN SMGR-KFLL (smgr)
(declare (type simplicial-group smgr)) (declare (type simplicial-group smgr))
(with-slots (face grml grin) smgr (with-slots (face grml grin) smgr
@ -164,14 +172,6 @@
(type simplicial-mrph grml grin)) (type simplicial-mrph grml grin))
(smgr-kfll-intr face (sintr grml) (sintr grin)))) (smgr-kfll-intr face (sintr grml) (sintr grin))))
#|
(cat-init)
(setf k (k-z-1))
(setf rslt '(1 10 100))
(setf hat (mapcar #'(lambda (i) (face k i 3 rslt)) (<a-b> 0 3)))
(dotimes (i 4)
(check-kan k i 3 (remove (nth i hat) hat :test #'equal)))
|#
(DEFMETHOD SLOT-UNBOUND (class (smgr simplicial-group) (DEFMETHOD SLOT-UNBOUND (class (smgr simplicial-group)
(name (eql 'aprd))) (name (eql 'aprd)))
@ -181,6 +181,7 @@
(push smgr *hopf-list*) (push smgr *hopf-list*)
(setf (slot-value smgr 'aprd) (smgr-aprd smgr))))) (setf (slot-value smgr 'aprd) (smgr-aprd smgr)))))
(DEFUN SMGR-APRD (smgr) (DEFUN SMGR-APRD (smgr)
(declare (type simplicial-group smgr)) (declare (type simplicial-group smgr))
(the morphism (the morphism
@ -190,5 +191,3 @@
(type morphism eml) (type morphism eml)
(type simplicial-mrph grml)) (type simplicial-mrph grml))
(cmps grml eml)))) (cmps grml eml))))

View File

@ -0,0 +1,15 @@
(in-package :kenzo-test)
(in-suite :kenzo)
#|
(test check-kan
(cat:cat-init)
(let* ((k (cat:k-z-1))
(rslt '(1 10 100))
(hat (mapcar #'(lambda (i) (cat:face k i 3 rslt))
(cat:<a-b> 0 3))))
(dotimes (i 4)
(cat:check-kan k i 3 (remove (nth i hat) hat :test #'equal)))))
|#