(vl-finallist-increwrite x) → new-x
Function:
(defun vl-finallist-increwrite (x) (declare (xargs :guard (vl-finallist-p x))) (let ((__function__ 'vl-finallist-increwrite)) (declare (ignorable __function__)) (b* (((when (atom x)) (b* nil x)) (car (vl-final-increwrite (car x))) (cdr (vl-finallist-increwrite (cdr x)))) (cons-with-hint car cdr x))))
Theorem:
(defthm vl-finallist-p-of-vl-finallist-increwrite (b* ((new-x (vl-finallist-increwrite x))) (vl-finallist-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-finallist-increwrite-of-vl-finallist-fix-x (equal (vl-finallist-increwrite (vl-finallist-fix x)) (vl-finallist-increwrite x)))
Theorem:
(defthm vl-finallist-increwrite-vl-finallist-equiv-congruence-on-x (implies (vl-finallist-equiv x x-equiv) (equal (vl-finallist-increwrite x) (vl-finallist-increwrite x-equiv))) :rule-classes :congruence)