• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
        • Fgl-rewrite-rules
        • Fgl-function-mode
        • 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
          • Scratchobj
          • Minor-frame
            • Minor-frame-fix
            • Minor-frame-equiv
            • Make-minor-frame
            • Minor-frame->term-index
            • Minor-frame->scratch
            • Minor-frame->bindings
            • Change-minor-frame
            • Minor-frame->term
            • Minor-frame-p
            • Major-frame
            • Major-stack
            • Scratchlist
            • Minor-stack
          • Fgl-rewrite-tracing
          • Def-fgl-param-thm
          • Def-fgl-thm
          • Fgl-fast-alist-support
          • Fgl-array-support
          • Advanced-equivalence-checking-with-fgl
          • Fgl-fty-support
          • Fgl-internals
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Minor-frame

    Minor-frame-p

    Recognizer for minor-frame structures.

    Signature
    (minor-frame-p x) → *

    Definitions and Theorems

    Function: minor-frame-p

    (defun minor-frame-p (x)
     (declare (xargs :guard t))
     (let ((__function__ 'minor-frame-p))
      (declare (ignorable __function__))
      (and
       (mbe
          :logic (and (alistp x)
                      (equal (strip-cars x)
                             '(bindings scratch term term-index)))
          :exec
          (fty::alist-with-carsp x '(bindings scratch term term-index)))
       (b* ((bindings (cdr (std::da-nth 0 x)))
            (scratch (cdr (std::da-nth 1 x)))
            (term (cdr (std::da-nth 2 x)))
            (term-index (cdr (std::da-nth 3 x))))
         (and (fgl-object-bindings-p bindings)
              (scratchlist-p scratch)
              (pseudo-termp term)
              (acl2::maybe-natp term-index))))))

    Theorem: consp-when-minor-frame-p

    (defthm consp-when-minor-frame-p
      (implies (minor-frame-p x) (consp x))
      :rule-classes :compound-recognizer)