Recognizer for numeric-value structures.
(numeric-valuep acl2::x) → *
Function:
(defun numeric-valuep (acl2::x) (declare (xargs :guard t)) (let ((__function__ 'numeric-valuep)) (declare (ignorable __function__)) (cond ((char-valuep acl2::x) (b* ((get acl2::x)) (char-valuep get))) ((byte-valuep acl2::x) (b* ((get acl2::x)) (byte-valuep get))) ((short-valuep acl2::x) (b* ((get acl2::x)) (short-valuep get))) ((int-valuep acl2::x) (b* ((get acl2::x)) (int-valuep get))) ((long-valuep acl2::x) (b* ((get acl2::x)) (long-valuep get))) ((float-valuep acl2::x) (b* ((get acl2::x)) (float-valuep get))) (t (b* ((get acl2::x)) (double-valuep get))))))
Theorem:
(defthm consp-when-numeric-valuep (implies (numeric-valuep acl2::x) (consp acl2::x)) :rule-classes :compound-recognizer)