Recognizer for dec-expo structures.
(dec-expop x) → *
Function:
(defun dec-expop (x) (declare (xargs :guard t)) (let ((__function__ 'dec-expop)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(prefix sign? digits))) :exec (fty::alist-with-carsp x '(prefix sign? digits))) (b* ((prefix (cdr (std::da-nth 0 x))) (sign? (cdr (std::da-nth 1 x))) (digits (cdr (std::da-nth 2 x)))) (and (dec-expo-prefixp prefix) (sign-optionp sign?) (dec-digit-char-listp digits))))))
Theorem:
(defthm consp-when-dec-expop (implies (dec-expop x) (consp x)) :rule-classes :compound-recognizer)