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