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