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