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