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