Recognizer for store-funct structures.
(store-funct-p x) → *
Function:
(defun store-funct-p (x) (declare (xargs :guard t)) (let ((__function__ 'store-funct-p)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :sb)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :sh) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :sw) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :sd) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-store-funct-p (implies (store-funct-p x) (consp x)) :rule-classes :compound-recognizer)