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