Recognizer for type-definer structures.
(type-definerp x) → *
Function:
(defun type-definerp (x) (declare (xargs :guard t)) (let ((__function__ 'type-definerp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :product)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((get (std::da-nth 0 (cdr x)))) (type-productp get)))) ((eq (car x) :sum) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((get (std::da-nth 0 (cdr x)))) (type-sump get)))) (t (and (eq (car x) :subset) (and (true-listp (cdr x)) (eql (len (cdr x)) 1)) (b* ((get (std::da-nth 0 (cdr x)))) (type-subsetp get))))))))
Theorem:
(defthm consp-when-type-definerp (implies (type-definerp x) (consp x)) :rule-classes :compound-recognizer)