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