Recognizer for dimb-kind structures.
(dimb-kindp x) → *
Function:
(defun dimb-kindp (x) (declare (xargs :guard t)) (let ((__function__ 'dimb-kindp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :typedef)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :objfun) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :enumconst) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-dimb-kindp (implies (dimb-kindp x) (consp x)) :rule-classes :compound-recognizer)