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