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