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