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