(svexlist-maybe-rewrite-fixpoint x do-rewrite &key (count '4) (verbosep 'nil)) → xx
Function:
(defun svexlist-maybe-rewrite-fixpoint-fn (x do-rewrite count verbosep) (declare (xargs :guard (and (svexlist-p x) (natp count)))) (let ((__function__ 'svexlist-maybe-rewrite-fixpoint)) (declare (ignorable __function__)) (if do-rewrite (svexlist-rewrite-fixpoint x :count count :verbosep verbosep) (svexlist-fix x))))
Theorem:
(defthm svexlist-p-of-svexlist-maybe-rewrite-fixpoint (b* ((xx (svexlist-maybe-rewrite-fixpoint-fn x do-rewrite count verbosep))) (svexlist-p xx)) :rule-classes :rewrite)
Theorem:
(defthm svexlist-maybe-rewrite-fixpoint-fn-of-svexlist-fix-x (equal (svexlist-maybe-rewrite-fixpoint-fn (svexlist-fix x) do-rewrite count verbosep) (svexlist-maybe-rewrite-fixpoint-fn x do-rewrite count verbosep)))
Theorem:
(defthm svexlist-maybe-rewrite-fixpoint-fn-svexlist-equiv-congruence-on-x (implies (svexlist-equiv x x-equiv) (equal (svexlist-maybe-rewrite-fixpoint-fn x do-rewrite count verbosep) (svexlist-maybe-rewrite-fixpoint-fn x-equiv do-rewrite count verbosep))) :rule-classes :congruence)
Theorem:
(defthm svexlist-maybe-rewrite-fixpoint-fn-of-nfix-count (equal (svexlist-maybe-rewrite-fixpoint-fn x do-rewrite (nfix count) verbosep) (svexlist-maybe-rewrite-fixpoint-fn x do-rewrite count verbosep)))
Theorem:
(defthm svexlist-maybe-rewrite-fixpoint-fn-nat-equiv-congruence-on-count (implies (nat-equiv count count-equiv) (equal (svexlist-maybe-rewrite-fixpoint-fn x do-rewrite count verbosep) (svexlist-maybe-rewrite-fixpoint-fn x do-rewrite count-equiv verbosep))) :rule-classes :congruence)
Theorem:
(defthm svexlist-maybe-rewrite-fixpoint-correct (b* ((?xx (svexlist-maybe-rewrite-fixpoint-fn x do-rewrite count verbosep))) (equal (svexlist-eval xx env) (svexlist-eval x env))))
Theorem:
(defthm len-of-svexlist-maybe-rewrite-fixpoint (b* ((?xx (svexlist-maybe-rewrite-fixpoint-fn x do-rewrite count verbosep))) (equal (len xx) (len x))))
Theorem:
(defthm consp-of-svexlist-maybe-rewrite-fixpoint (b* ((?xx (svexlist-maybe-rewrite-fixpoint-fn x do-rewrite count verbosep))) (equal (consp xx) (consp x))))
Theorem:
(defthm vars-of-svexlist-maybe-rewrite-fixpoint (b* ((?xx (svexlist-maybe-rewrite-fixpoint-fn x do-rewrite count verbosep))) (implies (not (member v (svexlist-vars x))) (not (member v (svexlist-vars xx))))))