Fixtype of bytes.
Function:
(defun byte-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (bytep acl2::x) (bytep acl2::y)))) (equal (byte-fix acl2::x) (byte-fix acl2::y)))
Theorem:
(defthm byte-equiv-is-an-equivalence (and (booleanp (byte-equiv x y)) (byte-equiv x x) (implies (byte-equiv x y) (byte-equiv y x)) (implies (and (byte-equiv x y) (byte-equiv y z)) (byte-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm byte-equiv-implies-equal-byte-fix-1 (implies (byte-equiv acl2::x x-equiv) (equal (byte-fix acl2::x) (byte-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm byte-fix-under-byte-equiv (byte-equiv (byte-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-byte-fix-1-forward-to-byte-equiv (implies (equal (byte-fix acl2::x) acl2::y) (byte-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-byte-fix-2-forward-to-byte-equiv (implies (equal acl2::x (byte-fix acl2::y)) (byte-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm byte-equiv-of-byte-fix-1-forward (implies (byte-equiv (byte-fix acl2::x) acl2::y) (byte-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm byte-equiv-of-byte-fix-2-forward (implies (byte-equiv acl2::x (byte-fix acl2::y)) (byte-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)