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