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