Fixing function for elf32_sym-info structures.
(elf32_sym-info-fix x) → new-x
Function:
(defun elf32_sym-info-fix$inline (x) (declare (xargs :guard (elf32_sym-info-p x))) (let ((__function__ 'elf32_sym-info-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((name-str (acl2::str-fix (cdr (std::da-nth 0 x)))) (entry (elf32_sym-fix (cdr (std::da-nth 1 x))))) (list (cons 'name-str name-str) (cons 'entry entry))) :exec x)))
Theorem:
(defthm elf32_sym-info-p-of-elf32_sym-info-fix (b* ((new-x (elf32_sym-info-fix$inline x))) (elf32_sym-info-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm elf32_sym-info-fix-when-elf32_sym-info-p (implies (elf32_sym-info-p x) (equal (elf32_sym-info-fix x) x)))
Function:
(defun elf32_sym-info-equiv$inline (x y) (declare (xargs :guard (and (elf32_sym-info-p x) (elf32_sym-info-p y)))) (equal (elf32_sym-info-fix x) (elf32_sym-info-fix y)))
Theorem:
(defthm elf32_sym-info-equiv-is-an-equivalence (and (booleanp (elf32_sym-info-equiv x y)) (elf32_sym-info-equiv x x) (implies (elf32_sym-info-equiv x y) (elf32_sym-info-equiv y x)) (implies (and (elf32_sym-info-equiv x y) (elf32_sym-info-equiv y z)) (elf32_sym-info-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm elf32_sym-info-equiv-implies-equal-elf32_sym-info-fix-1 (implies (elf32_sym-info-equiv x x-equiv) (equal (elf32_sym-info-fix x) (elf32_sym-info-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm elf32_sym-info-fix-under-elf32_sym-info-equiv (elf32_sym-info-equiv (elf32_sym-info-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-elf32_sym-info-fix-1-forward-to-elf32_sym-info-equiv (implies (equal (elf32_sym-info-fix x) y) (elf32_sym-info-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-elf32_sym-info-fix-2-forward-to-elf32_sym-info-equiv (implies (equal x (elf32_sym-info-fix y)) (elf32_sym-info-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm elf32_sym-info-equiv-of-elf32_sym-info-fix-1-forward (implies (elf32_sym-info-equiv (elf32_sym-info-fix x) y) (elf32_sym-info-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm elf32_sym-info-equiv-of-elf32_sym-info-fix-2-forward (implies (elf32_sym-info-equiv x (elf32_sym-info-fix y)) (elf32_sym-info-equiv x y)) :rule-classes :forward-chaining)