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