Adding user defined formals to overwrite what's already in smt-func.
(make-merge-formals content smt-func) → func
Function:
(defun make-merge-formals (content smt-func) (declare (xargs :guard (and (argument-lst-syntax-p content) (func-p smt-func)))) (let ((acl2::__function__ 'make-merge-formals)) (declare (ignorable acl2::__function__)) (b* ((new-formals (make-merge-formals-helper content)) ((func f) smt-func) (all-formals (remove-duplicate-from-decl-list (append new-formals f.formals) nil))) (change-func f :formals all-formals))))
Theorem:
(defthm func-p-of-make-merge-formals (b* ((func (make-merge-formals content smt-func))) (func-p func)) :rule-classes :rewrite)