Function:
(defun rename-fn-const (const old-fn new-fn) (declare (xargs :guard (and (constp const) (identp old-fn) (identp new-fn)))) (declare (ignorable const old-fn new-fn)) (let ((__function__ 'rename-fn-const)) (declare (ignorable __function__)) (const-fix const)))
Theorem:
(defthm constp-of-rename-fn-const (b* ((new-const (rename-fn-const const old-fn new-fn))) (constp new-const)) :rule-classes :rewrite)