Get the type field from a expr-gout.
(expr-gout->type x) → type
This is an ordinary field accessor created by fty::defprod.
Function:
(defun expr-gout->type$inline (x) (declare (xargs :guard (expr-goutp x))) (declare (xargs :guard t)) (let ((__function__ 'expr-gout->type)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (type-fix (cdr (std::da-nth 1 x)))) :exec (cdr (std::da-nth 1 x)))))
Theorem:
(defthm typep-of-expr-gout->type (b* ((type (expr-gout->type$inline x))) (typep type)) :rule-classes :rewrite)
Theorem:
(defthm expr-gout->type$inline-of-expr-gout-fix-x (equal (expr-gout->type$inline (expr-gout-fix x)) (expr-gout->type$inline x)))
Theorem:
(defthm expr-gout->type$inline-expr-gout-equiv-congruence-on-x (implies (expr-gout-equiv x x-equiv) (equal (expr-gout->type$inline x) (expr-gout->type$inline x-equiv))) :rule-classes :congruence)