Recognizer for obj-declon structures.
(obj-declonp x) → *
Function:
(defun obj-declonp (x) (declare (xargs :guard t)) (let ((__function__ 'obj-declonp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :obj-declon) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(scspec tyspec declor init?))) :exec (fty::alist-with-carsp (cdr x) '(scspec tyspec declor init?))) (b* ((scspec (cdr (std::da-nth 0 (cdr x)))) (tyspec (cdr (std::da-nth 1 (cdr x)))) (declor (cdr (std::da-nth 2 (cdr x)))) (init? (cdr (std::da-nth 3 (cdr x))))) (and (scspecseqp scspec) (tyspecseqp tyspec) (obj-declorp declor) (initer-optionp init?))))))
Theorem:
(defthm consp-when-obj-declonp (implies (obj-declonp x) (consp x)) :rule-classes :compound-recognizer)