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