Get the type field from a typed-variable.
(typed-variable->type x) → type
This is an ordinary field accessor created by fty::defprod.
Function:
(defun typed-variable->type$inline (x) (declare (xargs :guard (typed-variablep x))) (declare (xargs :guard t)) (let ((__function__ 'typed-variable->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-typed-variable->type (b* ((type (typed-variable->type$inline x))) (typep type)) :rule-classes :rewrite)
Theorem:
(defthm typed-variable->type$inline-of-typed-variable-fix-x (equal (typed-variable->type$inline (typed-variable-fix x)) (typed-variable->type$inline x)))
Theorem:
(defthm typed-variable->type$inline-typed-variable-equiv-congruence-on-x (implies (typed-variable-equiv x x-equiv) (equal (typed-variable->type$inline x) (typed-variable->type$inline x-equiv))) :rule-classes :congruence)