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