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