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