Recognizer for hex-string-rest-element structures.
(hex-string-rest-elementp x) → *
Function:
(defun hex-string-rest-elementp (x) (declare (xargs :guard t)) (let ((__function__ 'hex-string-rest-elementp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :hex-string-rest-element) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(uscorep pair))) :exec (fty::alist-with-carsp (cdr x) '(uscorep pair))) (b* ((uscorep (cdr (std::da-nth 0 (cdr x)))) (pair (cdr (std::da-nth 1 (cdr x))))) (and (booleanp uscorep) (hex-pairp pair))))))
Theorem:
(defthm consp-when-hex-string-rest-elementp (implies (hex-string-rest-elementp x) (consp x)) :rule-classes :compound-recognizer)