• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • 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
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • 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)))))