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