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