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