Get the pkg field from a vl-import.
(vl-import->pkg x) → pkg
This is an ordinary field accessor created by defprod.
Function:
(defun vl-import->pkg$inline (x) (declare (xargs :guard (vl-import-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-import->pkg)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (str-fix (std::prod-car (std::prod-car (cdr x))))) :exec (std::prod-car (std::prod-car (cdr x))))))
Theorem:
(defthm stringp-of-vl-import->pkg (b* ((pkg (vl-import->pkg$inline x))) (stringp pkg)) :rule-classes :type-prescription)
Theorem:
(defthm vl-import->pkg$inline-of-vl-import-fix-x (equal (vl-import->pkg$inline (vl-import-fix x)) (vl-import->pkg$inline x)))
Theorem:
(defthm vl-import->pkg$inline-vl-import-equiv-congruence-on-x (implies (vl-import-equiv x x-equiv) (equal (vl-import->pkg$inline x) (vl-import->pkg$inline x-equiv))) :rule-classes :congruence)