Access the |FGL|::|INTRO-BVARS| field of a interp-flags bit structure.
(interp-flags->intro-bvars x) → intro-bvars
Function:
(defun interp-flags->intro-bvars (x) (declare (xargs :guard (interp-flags-p x))) (mbe :logic (let ((x (interp-flags-fix x))) (bit->bool (acl2::part-select x :low 0 :width 1))) :exec (bit->bool (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 6) x))))))
Theorem:
(defthm booleanp-of-interp-flags->intro-bvars (b* ((intro-bvars (interp-flags->intro-bvars x))) (booleanp intro-bvars)) :rule-classes :rewrite)
Theorem:
(defthm interp-flags->intro-bvars-of-interp-flags-fix-x (equal (interp-flags->intro-bvars (interp-flags-fix x)) (interp-flags->intro-bvars x)))
Theorem:
(defthm interp-flags->intro-bvars-interp-flags-equiv-congruence-on-x (implies (interp-flags-equiv x x-equiv) (equal (interp-flags->intro-bvars x) (interp-flags->intro-bvars x-equiv))) :rule-classes :congruence)
Theorem:
(defthm interp-flags->intro-bvars-of-interp-flags (equal (interp-flags->intro-bvars (interp-flags intro-bvars intro-synvars simplify-logic trace-rewrites make-ites branch-on-ifs)) (bool-fix intro-bvars)))
Theorem:
(defthm interp-flags->intro-bvars-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x interp-flags-equiv-under-mask) (interp-flags-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 1) 0)) (equal (interp-flags->intro-bvars x) (interp-flags->intro-bvars y))))