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