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