Get the body field from a tfunction-lambda.
(tfunction-lambda->body x) → body
This is an ordinary field accessor created by fty::defprod.
Function:
(defun tfunction-lambda->body$inline (x) (declare (xargs :guard (tfunctionp x))) (declare (xargs :guard (equal (tfunction-kind x) :lambda))) (let ((__function__ 'tfunction-lambda->body)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (tfunction-kind x) :lambda) x))) (tterm-fix (std::da-nth 1 (cdr x)))) :exec (std::da-nth 1 (cdr x)))))
Theorem:
(defthm ttermp-of-tfunction-lambda->body (b* ((body (tfunction-lambda->body$inline x))) (ttermp body)) :rule-classes :rewrite)
Theorem:
(defthm tfunction-lambda->body$inline-of-tfunction-fix-x (equal (tfunction-lambda->body$inline (tfunction-fix x)) (tfunction-lambda->body$inline x)))
Theorem:
(defthm tfunction-lambda->body$inline-tfunction-equiv-congruence-on-x (implies (tfunction-equiv x x-equiv) (equal (tfunction-lambda->body$inline x) (tfunction-lambda->body$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm tfunction-lambda->body-when-wrong-kind (implies (not (equal (tfunction-kind x) :lambda)) (equal (tfunction-lambda->body x) (tterm-fix nil))))