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