• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
      • Gl
      • Witness-cp
      • Ccg
      • Install-not-normalized
      • Rewrite$
      • Fgl
        • Fgl-rewrite-rules
        • Fgl-function-mode
        • Fgl-object
        • Fgl-solving
        • Fgl-handling-if-then-elses
        • Fgl-getting-bits-from-objects
        • Fgl-primitive-and-meta-rules
        • Fgl-counterexamples
        • 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
        • 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
    • Minor-frame

    Make-minor-frame

    Basic constructor macro for minor-frame structures.

    Syntax
    (make-minor-frame [:bindings <bindings>] 
                      [:scratch <scratch>] 
                      [:term <term>] 
                      [:term-index <term-index>]) 
    

    This is the usual way to construct minor-frame structures. It simply conses together a structure with the specified fields.

    This macro generates a new minor-frame structure from scratch. See also change-minor-frame, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-minor-frame

    (defmacro make-minor-frame (&rest args)
      (std::make-aggregate 'minor-frame
                           args
                           '((:bindings)
                             (:scratch)
                             (:term)
                             (:term-index))
                           'make-minor-frame
                           nil))

    Function: minor-frame

    (defun minor-frame (bindings scratch term term-index)
      (declare (xargs :guard (and (fgl-object-bindings-p bindings)
                                  (scratchlist-p scratch)
                                  (pseudo-termp term)
                                  (acl2::maybe-natp term-index))))
      (declare (xargs :guard t))
      (let ((__function__ 'minor-frame))
        (declare (ignorable __function__))
        (b* ((bindings (mbe :logic (fgl-object-bindings-fix bindings)
                            :exec bindings))
             (scratch (mbe :logic (scratchlist-fix scratch)
                           :exec scratch))
             (term (mbe :logic (pseudo-term-fix term)
                        :exec term))
             (term-index (mbe :logic (acl2::maybe-natp-fix term-index)
                              :exec term-index)))
          (list (cons 'bindings bindings)
                (cons 'scratch scratch)
                (cons 'term term)
                (cons 'term-index term-index)))))