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