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