Recognizer for iconst structures.
(iconstp x) → *
Function:
(defun iconstp (x) (declare (xargs :guard t)) (let ((__function__ 'iconstp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(dec/oct/hex suffix?))) :exec (fty::alist-with-carsp x '(dec/oct/hex suffix?))) (b* ((dec/oct/hex (cdr (std::da-nth 0 x))) (suffix? (cdr (std::da-nth 1 x)))) (and (dec/oct/hex-constp dec/oct/hex) (isuffix-optionp suffix?))))))
Theorem:
(defthm consp-when-iconstp (implies (iconstp x) (consp x)) :rule-classes :compound-recognizer)