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