Fixing function for evex-byte3 bit structures.
(evex-byte3-fix x) → fty::fixed
Function:
(defun evex-byte3-fix$inline (x) (declare (xargs :guard (evex-byte3-p x))) (mbe :logic (loghead 8 x) :exec x))
Theorem:
(defthm evex-byte3-p-of-evex-byte3-fix (b* ((fty::fixed (evex-byte3-fix$inline x))) (evex-byte3-p fty::fixed)) :rule-classes :rewrite)
Theorem:
(defthm evex-byte3-fix-when-evex-byte3-p (implies (evex-byte3-p x) (equal (evex-byte3-fix x) x)))
Function:
(defun evex-byte3-equiv$inline (x y) (declare (xargs :guard (and (evex-byte3-p x) (evex-byte3-p y)))) (equal (evex-byte3-fix x) (evex-byte3-fix y)))
Theorem:
(defthm evex-byte3-equiv-is-an-equivalence (and (booleanp (evex-byte3-equiv x y)) (evex-byte3-equiv x x) (implies (evex-byte3-equiv x y) (evex-byte3-equiv y x)) (implies (and (evex-byte3-equiv x y) (evex-byte3-equiv y z)) (evex-byte3-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm evex-byte3-equiv-implies-equal-evex-byte3-fix-1 (implies (evex-byte3-equiv x x-equiv) (equal (evex-byte3-fix x) (evex-byte3-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm evex-byte3-fix-under-evex-byte3-equiv (evex-byte3-equiv (evex-byte3-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))