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