Have an interactive and a no-wait version of CHECK-RDCT.

This commit is contained in:
Gerd Heber 2015-08-17 20:51:01 -05:00
parent 448b6a7a83
commit 48e26406cd
2 changed files with 25 additions and 0 deletions

View File

@ -272,6 +272,7 @@
BUILD-HMEQ BUILD-HMEQ
BUILD-RDCT BUILD-RDCT
CHECK-RDCT CHECK-RDCT
CHECK-RDCT-NO-WAIT
CMPS CMPS
PRE-CHECK-RDCT PRE-CHECK-RDCT
RDCT RDCT

View File

@ -300,6 +300,30 @@ the <Enter> key.
(done)) (done))
(DEFUN CHECK-RDCT-NO-WAIT ()
"--------------------------------------------------------------[function-doc]
CHECK-RDCT-NO-WAIT
Args: ()
Maps combinations of the top and bottom chain complexes of a reduction using
the morphisms created by PRE-CHECK-RDCT. Having no parameters, the
combinations must be provided via the Lisp global variables *TC* and *BC*,
for the top and bottom chain complex, respectively. If the morphisms are
coherent, the result of each mapping is a null combination.
------------------------------------------------------------------------------"
(dolist (cmbn '(*tc* *bc*))
(declare (type symbol cmbn))
(format t "~%~A => ~A" cmbn (eval cmbn)))
(dolist (phi '(*tdd* *bdd* *df-fd* *dg-gd* *id-fg* *id-gf-dh-hd*
*hh* *fh* *hg*))
(declare (type symbol phi))
(format t "~%Checking ~A = 0" phi)
(format t "~%Result: ")
(princ (cmbn-? (eval phi)
(if (member phi '(*bdd* *dg-gd* *id-fg* *dg-gd* *hg*))
*bc* *tc*))))
(done))
(DEFMETHOD CMPS ((brdct reduction) (trdct reduction) &optional dummy) (DEFMETHOD CMPS ((brdct reduction) (trdct reduction) &optional dummy)
(declare (ignore dummy)) (declare (ignore dummy))
(when (eq (first (orgn brdct)) 'trivial-rdct) (when (eq (first (orgn brdct)) 'trivial-rdct)