Recognizer for primitive-value structures.
(primitive-valuep acl2::x) → *
Function:
(defun primitive-valuep (acl2::x) (declare (xargs :guard t)) (let ((__function__ 'primitive-valuep)) (declare (ignorable __function__)) (cond ((boolean-valuep acl2::x) (b* ((get acl2::x)) (boolean-valuep get))) ((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-primitive-valuep (implies (primitive-valuep acl2::x) (consp acl2::x)) :rule-classes :compound-recognizer)