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