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