Get the kind (tag) of a partsum-comp structure.
(partsum-comp-kind x) → kind
Function:
(defun partsum-comp-kind$inline (x) (declare (xargs :guard (partsum-comp-p x))) (let ((__function__ 'partsum-comp-kind)) (declare (ignorable __function__)) (cond ((stringp x) :str) ((atom x) :idx) (t :range))))
Theorem:
(defthm partsum-comp-kind-possibilities (or (equal (partsum-comp-kind x) :str) (equal (partsum-comp-kind x) :idx) (equal (partsum-comp-kind x) :range)) :rule-classes ((:forward-chaining :trigger-terms ((partsum-comp-kind x)))))