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