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