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