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