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