Generate the guard of the new function.
(expdata-gen-new-fn-guard old$ arg-surjmaps predicate$ wrld) → new-guard
Function:
(defun expdata-gen-new-fn-guard (old$ arg-surjmaps predicate$ wrld) (declare (xargs :guard (and (symbolp old$) (expdata-symbol-surjmap-alistp arg-surjmaps) (booleanp predicate$) (plist-worldp wrld)))) (let ((__function__ 'expdata-gen-new-fn-guard)) (declare (ignorable __function__)) (b* ((x1...xn (formals old$ wrld)) (newp-of-x1...xn (expdata-gen-newp-of-terms x1...xn arg-surjmaps))) (if predicate$ (conjoin newp-of-x1...xn) (b* ((old-guard (uguard old$ wrld)) (old-guard-with-back-of-x1...xn (expdata-gen-subst-x1...xn-with-back-of-x1...xn old-guard old$ arg-surjmaps wrld))) (conjoin (append newp-of-x1...xn (list old-guard-with-back-of-x1...xn))))))))