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