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