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