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