Recognizer for hex-digit structures.
(hex-digitp x) → *
Function:
(defun hex-digitp (x) (declare (xargs :guard t)) (let ((__function__ 'hex-digitp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :hex-digit) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(get))) :exec (fty::alist-with-carsp (cdr x) '(get))) (b* ((get (cdr (std::da-nth 0 (cdr x))))) (str::hex-digit-char-p get)))))
Theorem:
(defthm consp-when-hex-digitp (implies (hex-digitp x) (consp x)) :rule-classes :compound-recognizer)