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