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