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