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