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