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