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