Recognizer for tyqual structures.
(tyqualp x) → *
Function:
(defun tyqualp (x) (declare (xargs :guard t)) (let ((__function__ 'tyqualp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :const)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :restrict) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :volatile) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :atomic) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :__restrict) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :__restrict__) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-tyqualp (implies (tyqualp x) (consp x)) :rule-classes :compound-recognizer)