(vl-warninglist-fix x) is a usual fty list fixing function.
(vl-warninglist-fix x) → fty::newx
In the logic, we apply vl-warning-fix to each member of the x. In the execution, none of that is actually necessary and this is just an inlined identity function.
Function:
(defun vl-warninglist-fix$inline (x) (declare (xargs :guard (vl-warninglist-p x))) (let ((__function__ 'vl-warninglist-fix)) (declare (ignorable __function__)) (mbe :logic (if (atom x) x (cons (vl-warning-fix (car x)) (vl-warninglist-fix (cdr x)))) :exec x)))
Theorem:
(defthm vl-warninglist-p-of-vl-warninglist-fix (b* ((fty::newx (vl-warninglist-fix$inline x))) (vl-warninglist-p fty::newx)) :rule-classes :rewrite)
Theorem:
(defthm vl-warninglist-fix-when-vl-warninglist-p (implies (vl-warninglist-p x) (equal (vl-warninglist-fix x) x)))
Function:
(defun vl-warninglist-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (vl-warninglist-p acl2::x) (vl-warninglist-p acl2::y)))) (equal (vl-warninglist-fix acl2::x) (vl-warninglist-fix acl2::y)))
Theorem:
(defthm vl-warninglist-equiv-is-an-equivalence (and (booleanp (vl-warninglist-equiv x y)) (vl-warninglist-equiv x x) (implies (vl-warninglist-equiv x y) (vl-warninglist-equiv y x)) (implies (and (vl-warninglist-equiv x y) (vl-warninglist-equiv y z)) (vl-warninglist-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm vl-warninglist-equiv-implies-equal-vl-warninglist-fix-1 (implies (vl-warninglist-equiv acl2::x x-equiv) (equal (vl-warninglist-fix acl2::x) (vl-warninglist-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-warninglist-fix-under-vl-warninglist-equiv (vl-warninglist-equiv (vl-warninglist-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-vl-warninglist-fix-1-forward-to-vl-warninglist-equiv (implies (equal (vl-warninglist-fix acl2::x) acl2::y) (vl-warninglist-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-vl-warninglist-fix-2-forward-to-vl-warninglist-equiv (implies (equal acl2::x (vl-warninglist-fix acl2::y)) (vl-warninglist-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-warninglist-equiv-of-vl-warninglist-fix-1-forward (implies (vl-warninglist-equiv (vl-warninglist-fix acl2::x) acl2::y) (vl-warninglist-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-warninglist-equiv-of-vl-warninglist-fix-2-forward (implies (vl-warninglist-equiv acl2::x (vl-warninglist-fix acl2::y)) (vl-warninglist-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm car-of-vl-warninglist-fix-x-under-vl-warning-equiv (vl-warning-equiv (car (vl-warninglist-fix acl2::x)) (car acl2::x)))
Theorem:
(defthm car-vl-warninglist-equiv-congruence-on-x-under-vl-warning-equiv (implies (vl-warninglist-equiv acl2::x x-equiv) (vl-warning-equiv (car acl2::x) (car x-equiv))) :rule-classes :congruence)
Theorem:
(defthm cdr-of-vl-warninglist-fix-x-under-vl-warninglist-equiv (vl-warninglist-equiv (cdr (vl-warninglist-fix acl2::x)) (cdr acl2::x)))
Theorem:
(defthm cdr-vl-warninglist-equiv-congruence-on-x-under-vl-warninglist-equiv (implies (vl-warninglist-equiv acl2::x x-equiv) (vl-warninglist-equiv (cdr acl2::x) (cdr x-equiv))) :rule-classes :congruence)
Theorem:
(defthm cons-of-vl-warning-fix-x-under-vl-warninglist-equiv (vl-warninglist-equiv (cons (vl-warning-fix acl2::x) acl2::y) (cons acl2::x acl2::y)))
Theorem:
(defthm cons-vl-warning-equiv-congruence-on-x-under-vl-warninglist-equiv (implies (vl-warning-equiv acl2::x x-equiv) (vl-warninglist-equiv (cons acl2::x acl2::y) (cons x-equiv acl2::y))) :rule-classes :congruence)
Theorem:
(defthm cons-of-vl-warninglist-fix-y-under-vl-warninglist-equiv (vl-warninglist-equiv (cons acl2::x (vl-warninglist-fix acl2::y)) (cons acl2::x acl2::y)))
Theorem:
(defthm cons-vl-warninglist-equiv-congruence-on-y-under-vl-warninglist-equiv (implies (vl-warninglist-equiv acl2::y y-equiv) (vl-warninglist-equiv (cons acl2::x acl2::y) (cons acl2::x y-equiv))) :rule-classes :congruence)
Theorem:
(defthm consp-of-vl-warninglist-fix (equal (consp (vl-warninglist-fix acl2::x)) (consp acl2::x)))
Theorem:
(defthm vl-warninglist-fix-of-cons (equal (vl-warninglist-fix (cons a x)) (cons (vl-warning-fix a) (vl-warninglist-fix x))))
Theorem:
(defthm len-of-vl-warninglist-fix (equal (len (vl-warninglist-fix acl2::x)) (len acl2::x)))
Theorem:
(defthm vl-warninglist-fix-of-append (equal (vl-warninglist-fix (append std::a std::b)) (append (vl-warninglist-fix std::a) (vl-warninglist-fix std::b))))
Theorem:
(defthm vl-warninglist-fix-of-repeat (equal (vl-warninglist-fix (repeat acl2::n acl2::x)) (repeat acl2::n (vl-warning-fix acl2::x))))
Theorem:
(defthm nth-of-vl-warninglist-fix (equal (nth acl2::n (vl-warninglist-fix acl2::x)) (if (< (nfix acl2::n) (len acl2::x)) (vl-warning-fix (nth acl2::n acl2::x)) nil)))
Theorem:
(defthm vl-warninglist-equiv-implies-vl-warninglist-equiv-append-1 (implies (vl-warninglist-equiv acl2::x fty::x-equiv) (vl-warninglist-equiv (append acl2::x acl2::y) (append fty::x-equiv acl2::y))) :rule-classes (:congruence))
Theorem:
(defthm vl-warninglist-equiv-implies-vl-warninglist-equiv-append-2 (implies (vl-warninglist-equiv acl2::y fty::y-equiv) (vl-warninglist-equiv (append acl2::x acl2::y) (append acl2::x fty::y-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-warninglist-equiv-implies-vl-warninglist-equiv-nthcdr-2 (implies (vl-warninglist-equiv acl2::l l-equiv) (vl-warninglist-equiv (nthcdr acl2::n acl2::l) (nthcdr acl2::n l-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-warninglist-equiv-implies-vl-warninglist-equiv-take-2 (implies (vl-warninglist-equiv acl2::l l-equiv) (vl-warninglist-equiv (take acl2::n acl2::l) (take acl2::n l-equiv))) :rule-classes (:congruence))