Get the kind (tag) of a lifetime structure.
(lifetime-kind x) → kind
Function:
(defun lifetime-kind$inline (x) (declare (xargs :guard (lifetimep x))) (let ((__function__ 'lifetime-kind)) (declare (ignorable __function__)) (mbe :logic (cond ((or (atom x) (eq (car x) :static)) :static) ((eq (car x) :thread) :thread) (t :auto)) :exec (car x))))
Theorem:
(defthm lifetime-kind-possibilities (or (equal (lifetime-kind x) :static) (equal (lifetime-kind x) :thread) (equal (lifetime-kind x) :auto)) :rule-classes ((:forward-chaining :trigger-terms ((lifetime-kind x)))))