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