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