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