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