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