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