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