Recognizer for boolean-value structures.
(boolean-valuep x) → *
Function:
(defun boolean-valuep (x) (declare (xargs :guard t)) (let ((__function__ 'boolean-valuep)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :boolean) (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((bool (std::da-nth 0 (cdr x)))) (booleanp bool)))))
Theorem:
(defthm consp-when-boolean-valuep (implies (boolean-valuep x) (consp x)) :rule-classes :compound-recognizer)