Recognizer for bin-expo-prefix structures.
(bin-expo-prefixp x) → *
Function:
(defun bin-expo-prefixp (x) (declare (xargs :guard t)) (let ((__function__ 'bin-expo-prefixp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :locase-p)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :upcase-p) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-bin-expo-prefixp (implies (bin-expo-prefixp x) (consp x)) :rule-classes :compound-recognizer)