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