Recognizer for hex-quad structures.
(hex-quad-p x) → *
Function:
(defun hex-quad-p (x) (declare (xargs :guard t)) (and (consp x) (consp (car x)) (consp (cdr x)) (b* ((1st (car (car x))) (2nd (cdr (car x))) (3rd (car (cdr x))) (4th (cdr (cdr x)))) (and (hex-digit-char-p 1st) (hex-digit-char-p 2nd) (hex-digit-char-p 3rd) (hex-digit-char-p 4th)))))
Theorem:
(defthm consp-when-hex-quad-p (implies (hex-quad-p x) (consp x)) :rule-classes :compound-recognizer)