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