Update the |X86ISA|::|PWT| field of a ia32e-pml4ebits bit structure.
(!ia32e-pml4ebits->pwt pwt x) → new-x
Function:
(defun !ia32e-pml4ebits->pwt$inline (pwt x) (declare (xargs :guard (and (bitp pwt) (ia32e-pml4ebits-p x)))) (mbe :logic (b* ((pwt (mbe :logic (bfix pwt) :exec pwt)) (x (ia32e-pml4ebits-fix x))) (part-install pwt x :width 1 :low 3)) :exec (the (unsigned-byte 64) (logior (the (unsigned-byte 64) (logand (the (unsigned-byte 64) x) (the (signed-byte 5) -9))) (the (unsigned-byte 4) (ash (the (unsigned-byte 1) pwt) 3))))))
Theorem:
(defthm ia32e-pml4ebits-p-of-!ia32e-pml4ebits->pwt (b* ((new-x (!ia32e-pml4ebits->pwt$inline pwt x))) (ia32e-pml4ebits-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm !ia32e-pml4ebits->pwt$inline-of-bfix-pwt (equal (!ia32e-pml4ebits->pwt$inline (bfix pwt) x) (!ia32e-pml4ebits->pwt$inline pwt x)))
Theorem:
(defthm !ia32e-pml4ebits->pwt$inline-bit-equiv-congruence-on-pwt (implies (bit-equiv pwt pwt-equiv) (equal (!ia32e-pml4ebits->pwt$inline pwt x) (!ia32e-pml4ebits->pwt$inline pwt-equiv x))) :rule-classes :congruence)
Theorem:
(defthm !ia32e-pml4ebits->pwt$inline-of-ia32e-pml4ebits-fix-x (equal (!ia32e-pml4ebits->pwt$inline pwt (ia32e-pml4ebits-fix x)) (!ia32e-pml4ebits->pwt$inline pwt x)))
Theorem:
(defthm !ia32e-pml4ebits->pwt$inline-ia32e-pml4ebits-equiv-congruence-on-x (implies (ia32e-pml4ebits-equiv x x-equiv) (equal (!ia32e-pml4ebits->pwt$inline pwt x) (!ia32e-pml4ebits->pwt$inline pwt x-equiv))) :rule-classes :congruence)
Theorem:
(defthm !ia32e-pml4ebits->pwt-is-ia32e-pml4ebits (equal (!ia32e-pml4ebits->pwt pwt x) (change-ia32e-pml4ebits x :pwt pwt)))
Theorem:
(defthm ia32e-pml4ebits->pwt-of-!ia32e-pml4ebits->pwt (b* ((?new-x (!ia32e-pml4ebits->pwt$inline pwt x))) (equal (ia32e-pml4ebits->pwt new-x) (bfix pwt))))
Theorem:
(defthm !ia32e-pml4ebits->pwt-equiv-under-mask (b* ((?new-x (!ia32e-pml4ebits->pwt$inline pwt x))) (ia32e-pml4ebits-equiv-under-mask new-x x -9)))