Access the |FGL|::|DONT-EXPAND-DEF| field of a fgl-function-mode bit structure.
(fgl-function-mode->dont-expand-def x) → dont-expand-def
Function:
(defun fgl-function-mode->dont-expand-def (x) (declare (xargs :guard (fgl-function-mode-p x))) (mbe :logic (let ((x (fgl-function-mode-fix x))) (bit->bool (acl2::part-select x :low 2 :width 1))) :exec (bit->bool (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 4) (ash (the (unsigned-byte 6) x) -2)))))))
Theorem:
(defthm booleanp-of-fgl-function-mode->dont-expand-def (b* ((dont-expand-def (fgl-function-mode->dont-expand-def x))) (booleanp dont-expand-def)) :rule-classes :rewrite)
Theorem:
(defthm fgl-function-mode->dont-expand-def-of-fgl-function-mode-fix-x (equal (fgl-function-mode->dont-expand-def (fgl-function-mode-fix x)) (fgl-function-mode->dont-expand-def x)))
Theorem:
(defthm fgl-function-mode->dont-expand-def-fgl-function-mode-equiv-congruence-on-x (implies (fgl-function-mode-equiv x x-equiv) (equal (fgl-function-mode->dont-expand-def x) (fgl-function-mode->dont-expand-def x-equiv))) :rule-classes :congruence)
Theorem:
(defthm fgl-function-mode->dont-expand-def-of-fgl-function-mode (equal (fgl-function-mode->dont-expand-def (fgl-function-mode split-ifs dont-concrete-exec dont-expand-def dont-rewrite dont-rewrite-under-if-test dont-primitive-exec)) (bool-fix dont-expand-def)))
Theorem:
(defthm fgl-function-mode->dont-expand-def-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x fgl-function-mode-equiv-under-mask) (fgl-function-mode-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 4) 0)) (equal (fgl-function-mode->dont-expand-def x) (fgl-function-mode->dont-expand-def y))))