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