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