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