• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Error-checking
        • Apt
        • Abnf
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Prime-field-constraint-systems
        • Soft
        • Bv
        • Imp-language
        • Event-macros
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
          • Primitive-functions
          • Translated-terms
          • Values
          • Evaluation
          • Program-equivalence
          • Functions
          • Packages
          • Programs
          • Interpreter
          • Evaluation-states
            • Eval-state
            • Frame
              • Frame-fix
              • Frame-equiv
              • Make-frame
                • Frame->binding
                • Change-frame
                • Frame->term
                • Framep
              • Binding
              • Stack
          • Prime-fields
          • Java
          • C
          • Syntheto
          • Number-theory
          • Cryptography
          • Lists-light
          • File-io-light
          • Json
          • Built-ins
          • Solidity
          • Axe
          • Std-extensions
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Execloader
        • Axe
      • Testing-utilities
      • Math
    • Frame

    Make-frame

    Basic constructor macro for frame structures.

    Syntax
    (make-frame [:term <term>] 
                [:binding <binding>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-frame

    (defmacro make-frame (&rest args)
              (std::make-aggregate 'frame
                                   args '((:term) (:binding))
                                   'make-frame
                                   nil))

    Function: frame

    (defun
         frame (term binding)
         (declare (xargs :guard (and (ttermp term) (bindingp binding))))
         (declare (xargs :guard t))
         (let ((__function__ 'frame))
              (declare (ignorable __function__))
              (b* ((term (mbe :logic (tterm-fix term)
                              :exec term))
                   (binding (mbe :logic (binding-fix binding)
                                 :exec binding)))
                  (cons :frame (list term binding)))))