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