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