Recognizer for struct-declon structures.
(struct-declonp x) → *
Function:
(defun struct-declonp (x) (declare (xargs :guard t)) (let ((__function__ 'struct-declonp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :struct-declon) (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-declorp declor))))))
Theorem:
(defthm consp-when-struct-declonp (implies (struct-declonp x) (consp x)) :rule-classes :compound-recognizer)