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