Return the unnormalized body or attachment of a function.
(atj-fn-body fn wrld) → body
This function extends ubody+ as follows:
if
The attachment is in the
Function:
(defun atj-fn-body (fn wrld) (declare (xargs :guard (and (symbolp fn) (plist-worldp wrld)))) (let ((__function__ 'atj-fn-body)) (declare (ignorable __function__)) (b* ((ubody (ubody+ fn wrld)) ((when ubody) ubody) (attachment (getpropc fn 'acl2::attachment nil wrld)) ((unless (tuplep 1 attachment)) nil) (element (car attachment))) (if (and (consp element) (eq (car element) fn) (symbolp (cdr element)) (not (eq (cdr element) 'quote))) (fcons-term (cdr element) (formals+ fn wrld)) nil))))
Theorem:
(defthm pseudo-termp-of-atj-fn-body (b* ((body (atj-fn-body fn wrld))) (pseudo-termp body)) :rule-classes :rewrite)