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