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