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