Get the fn field from a inst.
This is an ordinary field accessor created by defprod.
Function:
(defun inst->fn$inline (x) (declare (xargs :guard (inst-p x))) (declare (xargs :guard t)) (let ((__function__ 'inst->fn)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (fn-desc-fix (std::prod-car (std::prod-cdr (std::prod-cdr x))))) :exec (std::prod-car (std::prod-cdr (std::prod-cdr x))))))
Theorem:
(defthm fn-desc-p-of-inst->fn (b* ((fn (inst->fn$inline x))) (fn-desc-p fn)) :rule-classes :rewrite)
Theorem:
(defthm inst->fn$inline-of-inst-fix-x (equal (inst->fn$inline (inst-fix x)) (inst->fn$inline x)))
Theorem:
(defthm inst->fn$inline-inst-equiv-congruence-on-x (implies (inst-equiv x x-equiv) (equal (inst->fn$inline x) (inst->fn$inline x-equiv))) :rule-classes :congruence)