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