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