Recognizer for var-sinfo structures.
(var-sinfop x) → *
Function:
(defun var-sinfop (x) (declare (xargs :guard t)) (let ((__function__ 'var-sinfop)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(type defstatus))) :exec (fty::alist-with-carsp x '(type defstatus))) (b* ((type (cdr (std::da-nth 0 x))) (defstatus (cdr (std::da-nth 1 x)))) (and (typep type) (var-defstatusp defstatus))))))
Theorem:
(defthm consp-when-var-sinfop (implies (var-sinfop x) (consp x)) :rule-classes :compound-recognizer)