Recognizer for hex-core-fconst structures.
(hex-core-fconstp x) → *
Function:
(defun hex-core-fconstp (x) (declare (xargs :guard t)) (and (consp x) (cond ((or (atom x) (eq (car x) :frac)) (and (consp (cdr x)) (b* ((significand (car (cdr x))) (expo (cdr (cdr x)))) (and (hex-frac-constp significand) (bin-expop expo))))) (t (and (eq (car x) :int) (and (consp (cdr x))) (b* ((significand (car (cdr x))) (expo (cdr (cdr x)))) (and (hex-digit-char-listp significand) (bin-expop expo))))))))
Theorem:
(defthm consp-when-hex-core-fconstp (implies (hex-core-fconstp x) (consp x)) :rule-classes :compound-recognizer)