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