• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
      • Gl
      • Witness-cp
      • Ccg
      • Install-not-normalized
      • Rewrite$
      • Fgl
        • Fgl-rewrite-rules
        • Fgl-function-mode
          • !fgl-function-mode->dont-rewrite-under-if-test
          • !fgl-function-mode->dont-primitive-exec
          • !fgl-function-mode->dont-concrete-exec
          • !fgl-function-mode->dont-expand-def
          • !fgl-function-mode->dont-rewrite
          • !fgl-function-mode->split-ifs
          • Fgl-function-mode->dont-rewrite-under-if-test
          • Fgl-function-mode->dont-primitive-exec
          • Fgl-function-mode->dont-expand-def
            • Fgl-function-mode->dont-concrete-exec
            • Fgl-function-mode-p
            • Fgl-function-mode->dont-rewrite
            • Fgl-function-mode->split-ifs
            • Fgl-function-mode-fix
          • Fgl-object
          • Fgl-solving
          • Fgl-handling-if-then-elses
          • Fgl-counterexamples
          • Fgl-getting-bits-from-objects
          • Fgl-primitive-and-meta-rules
          • Fgl-interpreter-overview
          • Fgl-correctness-of-binding-free-variables
          • Fgl-debugging
          • Fgl-testbenches
          • Def-fgl-boolean-constraint
          • Fgl-stack
          • Def-fgl-param-thm
          • Fgl-rewrite-tracing
          • Def-fgl-thm
          • Fgl-fast-alist-support
          • Fgl-array-support
          • Advanced-equivalence-checking-with-fgl
          • Fgl-fty-support
          • Fgl-internals
        • Removable-runes
        • Efficiency
        • Rewrite-bounds
        • Bash
        • Def-dag-measure
        • Bdd
        • Remove-hyps
        • Contextual-rewriting
        • Simp
        • Rewrite$-hyps
        • Bash-term-to-dnf
        • Use-trivial-ancestors-check
        • Minimal-runes
        • Clause-processor-tools
        • Fn-is-body
        • Without-subsumption
        • Rewrite-equiv-hint
        • Def-bounds
        • Rewrite$-context
        • Try-gl-concls
        • Hint-utils
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Fgl-function-mode

    Fgl-function-mode->dont-expand-def

    Access the |FGL|::|DONT-EXPAND-DEF| field of a fgl-function-mode bit structure.

    Signature
    (fgl-function-mode->dont-expand-def x) → dont-expand-def
    Arguments
    x — Guard (fgl-function-mode-p x).
    Returns
    dont-expand-def — Type (booleanp dont-expand-def).

    Definitions and Theorems

    Function: fgl-function-mode->dont-expand-def

    (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: booleanp-of-fgl-function-mode->dont-expand-def

    (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: fgl-function-mode->dont-expand-def-of-fgl-function-mode-fix-x

    (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: fgl-function-mode->dont-expand-def-fgl-function-mode-equiv-congruence-on-x

    (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: fgl-function-mode->dont-expand-def-of-fgl-function-mode

    (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: fgl-function-mode->dont-expand-def-of-write-with-mask

    (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))))