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