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