Recognizer for iconst-base structures.
(iconst-basep x) → *
Function:
(defun iconst-basep (x) (declare (xargs :guard t)) (let ((__function__ 'iconst-basep)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :dec)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :oct) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :hex) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-iconst-basep (implies (iconst-basep x) (consp x)) :rule-classes :compound-recognizer)