Get the tag field from a tyspecseq-enum.
(tyspecseq-enum->tag x) → tag
This is an ordinary field accessor created by fty::defprod.
Function:
(defun tyspecseq-enum->tag$inline (x) (declare (xargs :guard (tyspecseqp x))) (declare (xargs :guard (equal (tyspecseq-kind x) :enum))) (let ((__function__ 'tyspecseq-enum->tag)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (tyspecseq-kind x) :enum) x))) (ident-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm identp-of-tyspecseq-enum->tag (b* ((tag (tyspecseq-enum->tag$inline x))) (identp tag)) :rule-classes :rewrite)
Theorem:
(defthm tyspecseq-enum->tag$inline-of-tyspecseq-fix-x (equal (tyspecseq-enum->tag$inline (tyspecseq-fix x)) (tyspecseq-enum->tag$inline x)))
Theorem:
(defthm tyspecseq-enum->tag$inline-tyspecseq-equiv-congruence-on-x (implies (tyspecseq-equiv x x-equiv) (equal (tyspecseq-enum->tag$inline x) (tyspecseq-enum->tag$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm tyspecseq-enum->tag-when-wrong-kind (implies (not (equal (tyspecseq-kind x) :enum)) (equal (tyspecseq-enum->tag x) (ident-fix nil))))