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