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