Recognizer for junop structures.
(junopp x) → *
Function:
(defun junopp (x) (declare (xargs :guard t)) (let ((__function__ 'junopp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :preinc)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :predec) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :uplus) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :uminus) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :bitcompl) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :logcompl) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-junopp (implies (junopp x) (consp x)) :rule-classes :compound-recognizer)