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