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