Recognizer for ident-sinfo structures.
(ident-sinfop x) → *
Function:
(defun ident-sinfop (x) (declare (xargs :guard t)) (let ((__function__ 'ident-sinfop)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :var/const)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((get (std::da-nth 0 (cdr x)))) (var/const-sinfop get)))) ((eq (car x) :function) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((get (std::da-nth 0 (cdr x)))) (function-sinfop get)))) (t (and (eq (car x) :struct) (and (true-listp (cdr x)) (eql (len (cdr x)) 1)) (b* ((get (std::da-nth 0 (cdr x)))) (struct-sinfop get))))))))
Theorem:
(defthm consp-when-ident-sinfop (implies (ident-sinfop x) (consp x)) :rule-classes :compound-recognizer)