Fixing function for elf_bits64 bit structures.
(elf_bits64-fix x) → fty::fixed
Function:
(defun elf_bits64-fix (x) (declare (xargs :guard (elf_bits64-p x))) (let ((__function__ 'elf_bits64-fix)) (declare (ignorable __function__)) (mbe :logic (loghead 64 x) :exec x)))
Theorem:
(defthm elf_bits64-p-of-elf_bits64-fix (b* ((fty::fixed (elf_bits64-fix x))) (elf_bits64-p fty::fixed)) :rule-classes :rewrite)
Theorem:
(defthm elf_bits64-fix-when-elf_bits64-p (implies (elf_bits64-p x) (equal (elf_bits64-fix x) x)))
Function:
(defun elf_bits64-equiv$inline (x y) (declare (xargs :guard (and (elf_bits64-p x) (elf_bits64-p y)))) (equal (elf_bits64-fix x) (elf_bits64-fix y)))
Theorem:
(defthm elf_bits64-equiv-is-an-equivalence (and (booleanp (elf_bits64-equiv x y)) (elf_bits64-equiv x x) (implies (elf_bits64-equiv x y) (elf_bits64-equiv y x)) (implies (and (elf_bits64-equiv x y) (elf_bits64-equiv y z)) (elf_bits64-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm elf_bits64-equiv-implies-equal-elf_bits64-fix-1 (implies (elf_bits64-equiv x x-equiv) (equal (elf_bits64-fix x) (elf_bits64-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm elf_bits64-fix-under-elf_bits64-equiv (elf_bits64-equiv (elf_bits64-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))