Recognizer for tyname structures.
(tynamep x) → *
Function:
(defun tynamep (x) (declare (xargs :guard t)) (let ((__function__ 'tynamep)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :tyname) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(tyspec declor))) :exec (fty::alist-with-carsp (cdr x) '(tyspec declor))) (b* ((tyspec (cdr (std::da-nth 0 (cdr x)))) (declor (cdr (std::da-nth 1 (cdr x))))) (and (tyspecseqp tyspec) (obj-adeclorp declor))))))
Theorem:
(defthm consp-when-tynamep (implies (tynamep x) (consp x)) :rule-classes :compound-recognizer)