Recognizer for uinteger-format structures.
(uinteger-formatp x) → *
Function:
(defun uinteger-formatp (x) (declare (xargs :guard t)) (let ((__function__ 'uinteger-formatp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(bits traps))) :exec (fty::alist-with-carsp x '(bits traps))) (b* ((bits (cdr (std::da-nth 0 x))) (?traps (cdr (std::da-nth 1 x)))) (and (uinteger-bit-role-listp bits) (uinteger-bit-roles-wfp bits))))))
Theorem:
(defthm consp-when-uinteger-formatp (implies (uinteger-formatp x) (consp x)) :rule-classes :compound-recognizer)