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