Recognizer for bin-expo structures.
(bin-expop x) → *
Function:
(defun bin-expop (x) (declare (xargs :guard t)) (let ((__function__ 'bin-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 (bin-expo-prefixp prefix) (sign-optionp sign?) (dec-digit-char-listp digits))))))
Theorem:
(defthm consp-when-bin-expop (implies (bin-expop x) (consp x)) :rule-classes :compound-recognizer)