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