Get the get field from a integral-value-byte.
(integral-value-byte->get acl2::x) → get
This is an ordinary field accessor created by fty::defprod.
Function:
(defun integral-value-byte->get$inline (acl2::x) (declare (xargs :guard (integral-valuep acl2::x))) (declare (xargs :guard (equal (integral-value-kind acl2::x) :byte))) (let ((__function__ 'integral-value-byte->get)) (declare (ignorable __function__)) (mbe :logic (b* ((acl2::x (and (equal (integral-value-kind acl2::x) :byte) acl2::x))) (byte-value-fix acl2::x)) :exec acl2::x)))
Theorem:
(defthm byte-valuep-of-integral-value-byte->get (b* ((get (integral-value-byte->get$inline acl2::x))) (byte-valuep get)) :rule-classes :rewrite)
Theorem:
(defthm integral-value-byte->get$inline-of-integral-value-fix-x (equal (integral-value-byte->get$inline (integral-value-fix acl2::x)) (integral-value-byte->get$inline acl2::x)))
Theorem:
(defthm integral-value-byte->get$inline-integral-value-equiv-congruence-on-x (implies (integral-value-equiv acl2::x x-equiv) (equal (integral-value-byte->get$inline acl2::x) (integral-value-byte->get$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm integral-value-byte->get-when-wrong-kind (implies (not (equal (integral-value-kind acl2::x) :byte)) (equal (integral-value-byte->get acl2::x) (byte-value-fix nil))))