(width-of-svex-extn-list-fix x) is a usual ACL2::fty list fixing function.
(width-of-svex-extn-list-fix x) → fty::newx
In the logic, we apply width-of-svex-extn-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 width-of-svex-extn-list-fix$inline (x) (declare (xargs :guard (width-of-svex-extn-list-p x))) (let ((acl2::__function__ 'width-of-svex-extn-list-fix)) (declare (ignorable acl2::__function__)) (mbe :logic (if (atom x) nil (cons (width-of-svex-extn-fix (car x)) (width-of-svex-extn-list-fix (cdr x)))) :exec x)))
Theorem:
(defthm width-of-svex-extn-list-p-of-width-of-svex-extn-list-fix (b* ((fty::newx (width-of-svex-extn-list-fix$inline x))) (width-of-svex-extn-list-p fty::newx)) :rule-classes :rewrite)
Theorem:
(defthm width-of-svex-extn-list-fix-when-width-of-svex-extn-list-p (implies (width-of-svex-extn-list-p x) (equal (width-of-svex-extn-list-fix x) x)))
Function:
(defun width-of-svex-extn-list-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (width-of-svex-extn-list-p acl2::x) (width-of-svex-extn-list-p acl2::y)))) (equal (width-of-svex-extn-list-fix acl2::x) (width-of-svex-extn-list-fix acl2::y)))
Theorem:
(defthm width-of-svex-extn-list-equiv-is-an-equivalence (and (booleanp (width-of-svex-extn-list-equiv x y)) (width-of-svex-extn-list-equiv x x) (implies (width-of-svex-extn-list-equiv x y) (width-of-svex-extn-list-equiv y x)) (implies (and (width-of-svex-extn-list-equiv x y) (width-of-svex-extn-list-equiv y z)) (width-of-svex-extn-list-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm width-of-svex-extn-list-equiv-implies-equal-width-of-svex-extn-list-fix-1 (implies (width-of-svex-extn-list-equiv acl2::x x-equiv) (equal (width-of-svex-extn-list-fix acl2::x) (width-of-svex-extn-list-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm width-of-svex-extn-list-fix-under-width-of-svex-extn-list-equiv (width-of-svex-extn-list-equiv (width-of-svex-extn-list-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-width-of-svex-extn-list-fix-1-forward-to-width-of-svex-extn-list-equiv (implies (equal (width-of-svex-extn-list-fix acl2::x) acl2::y) (width-of-svex-extn-list-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-width-of-svex-extn-list-fix-2-forward-to-width-of-svex-extn-list-equiv (implies (equal acl2::x (width-of-svex-extn-list-fix acl2::y)) (width-of-svex-extn-list-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm width-of-svex-extn-list-equiv-of-width-of-svex-extn-list-fix-1-forward (implies (width-of-svex-extn-list-equiv (width-of-svex-extn-list-fix acl2::x) acl2::y) (width-of-svex-extn-list-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm width-of-svex-extn-list-equiv-of-width-of-svex-extn-list-fix-2-forward (implies (width-of-svex-extn-list-equiv acl2::x (width-of-svex-extn-list-fix acl2::y)) (width-of-svex-extn-list-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm car-of-width-of-svex-extn-list-fix-x-under-width-of-svex-extn-equiv (width-of-svex-extn-equiv (car (width-of-svex-extn-list-fix acl2::x)) (car acl2::x)))
Theorem:
(defthm car-width-of-svex-extn-list-equiv-congruence-on-x-under-width-of-svex-extn-equiv (implies (width-of-svex-extn-list-equiv acl2::x x-equiv) (width-of-svex-extn-equiv (car acl2::x) (car x-equiv))) :rule-classes :congruence)
Theorem:
(defthm cdr-of-width-of-svex-extn-list-fix-x-under-width-of-svex-extn-list-equiv (width-of-svex-extn-list-equiv (cdr (width-of-svex-extn-list-fix acl2::x)) (cdr acl2::x)))
Theorem:
(defthm cdr-width-of-svex-extn-list-equiv-congruence-on-x-under-width-of-svex-extn-list-equiv (implies (width-of-svex-extn-list-equiv acl2::x x-equiv) (width-of-svex-extn-list-equiv (cdr acl2::x) (cdr x-equiv))) :rule-classes :congruence)
Theorem:
(defthm cons-of-width-of-svex-extn-fix-x-under-width-of-svex-extn-list-equiv (width-of-svex-extn-list-equiv (cons (width-of-svex-extn-fix acl2::x) acl2::y) (cons acl2::x acl2::y)))
Theorem:
(defthm cons-width-of-svex-extn-equiv-congruence-on-x-under-width-of-svex-extn-list-equiv (implies (width-of-svex-extn-equiv acl2::x x-equiv) (width-of-svex-extn-list-equiv (cons acl2::x acl2::y) (cons x-equiv acl2::y))) :rule-classes :congruence)
Theorem:
(defthm cons-of-width-of-svex-extn-list-fix-y-under-width-of-svex-extn-list-equiv (width-of-svex-extn-list-equiv (cons acl2::x (width-of-svex-extn-list-fix acl2::y)) (cons acl2::x acl2::y)))
Theorem:
(defthm cons-width-of-svex-extn-list-equiv-congruence-on-y-under-width-of-svex-extn-list-equiv (implies (width-of-svex-extn-list-equiv acl2::y y-equiv) (width-of-svex-extn-list-equiv (cons acl2::x acl2::y) (cons acl2::x y-equiv))) :rule-classes :congruence)
Theorem:
(defthm consp-of-width-of-svex-extn-list-fix (equal (consp (width-of-svex-extn-list-fix acl2::x)) (consp acl2::x)))
Theorem:
(defthm width-of-svex-extn-list-fix-under-iff (iff (width-of-svex-extn-list-fix acl2::x) (consp acl2::x)))
Theorem:
(defthm width-of-svex-extn-list-fix-of-cons (equal (width-of-svex-extn-list-fix (cons a x)) (cons (width-of-svex-extn-fix a) (width-of-svex-extn-list-fix x))))
Theorem:
(defthm len-of-width-of-svex-extn-list-fix (equal (len (width-of-svex-extn-list-fix acl2::x)) (len acl2::x)))
Theorem:
(defthm width-of-svex-extn-list-fix-of-append (equal (width-of-svex-extn-list-fix (append std::a std::b)) (append (width-of-svex-extn-list-fix std::a) (width-of-svex-extn-list-fix std::b))))
Theorem:
(defthm width-of-svex-extn-list-fix-of-repeat (equal (width-of-svex-extn-list-fix (repeat acl2::n acl2::x)) (repeat acl2::n (width-of-svex-extn-fix acl2::x))))
Theorem:
(defthm list-equiv-refines-width-of-svex-extn-list-equiv (implies (acl2::list-equiv acl2::x acl2::y) (width-of-svex-extn-list-equiv acl2::x acl2::y)) :rule-classes :refinement)
Theorem:
(defthm nth-of-width-of-svex-extn-list-fix (equal (nth acl2::n (width-of-svex-extn-list-fix acl2::x)) (if (< (nfix acl2::n) (len acl2::x)) (width-of-svex-extn-fix (nth acl2::n acl2::x)) nil)))
Theorem:
(defthm width-of-svex-extn-list-equiv-implies-width-of-svex-extn-list-equiv-append-1 (implies (width-of-svex-extn-list-equiv acl2::x fty::x-equiv) (width-of-svex-extn-list-equiv (append acl2::x acl2::y) (append fty::x-equiv acl2::y))) :rule-classes (:congruence))
Theorem:
(defthm width-of-svex-extn-list-equiv-implies-width-of-svex-extn-list-equiv-append-2 (implies (width-of-svex-extn-list-equiv acl2::y fty::y-equiv) (width-of-svex-extn-list-equiv (append acl2::x acl2::y) (append acl2::x fty::y-equiv))) :rule-classes (:congruence))
Theorem:
(defthm width-of-svex-extn-list-equiv-implies-width-of-svex-extn-list-equiv-nthcdr-2 (implies (width-of-svex-extn-list-equiv acl2::l l-equiv) (width-of-svex-extn-list-equiv (nthcdr acl2::n acl2::l) (nthcdr acl2::n l-equiv))) :rule-classes (:congruence))
Theorem:
(defthm width-of-svex-extn-list-equiv-implies-width-of-svex-extn-list-equiv-take-2 (implies (width-of-svex-extn-list-equiv acl2::l l-equiv) (width-of-svex-extn-list-equiv (take acl2::n acl2::l) (take acl2::n l-equiv))) :rule-classes (:congruence))