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