Parameters of a template function.
(template-fn-params n) → params
Return the list of symbols
Function:
(defun template-fn-params-aux (i n) (declare (xargs :guard (and (natp i) (natp n)))) (let ((__function__ 'template-fn-params-aux)) (declare (ignorable __function__)) (let ((i (mbe :logic (nfix i) :exec i)) (n (mbe :logic (nfix n) :exec n))) (if (> i n) nil (cons (add-suffix 'x (str::nat-to-dec-string i)) (template-fn-params-aux (1+ i) n))))))
Theorem:
(defthm symbol-listp-of-template-fn-params-aux (b* ((params (template-fn-params-aux i n))) (symbol-listp params)) :rule-classes :rewrite)
Function:
(defun template-fn-params (n) (declare (xargs :guard (natp n))) (let ((__function__ 'template-fn-params)) (declare (ignorable __function__)) (template-fn-params-aux 1 n)))
Theorem:
(defthm symbol-listp-of-template-fn-params (b* ((params (template-fn-params n))) (symbol-listp params)) :rule-classes :rewrite)