• 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

    Framep

    Recognizer for frame structures.

    Signature
    (framep x) → *

    Definitions and Theorems

    Function: framep

    (defun framep (x)
      (declare (xargs :guard t))
      (let ((__function__ 'framep))
        (declare (ignorable __function__))
        (and (consp x)
             (eq (car x) :frame)
             (true-listp (cdr x))
             (eql (len (cdr x)) 2)
             (b* ((term (std::da-nth 0 (cdr x)))
                  (binding (std::da-nth 1 (cdr x))))
               (and (ttermp term)
                    (bindingp binding))))))

    Theorem: consp-when-framep

    (defthm consp-when-framep
      (implies (framep x) (consp x))
      :rule-classes :compound-recognizer)