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