• 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

    Frame->term

    Get the term field from a frame.

    Signature
    (frame->term x) → term
    Arguments
    x — Guard (framep x).
    Returns
    term — Type (ttermp term).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: frame->term$inline

    (defun frame->term$inline (x)
      (declare (xargs :guard (framep x)))
      (declare (xargs :guard t))
      (let ((__function__ 'frame->term))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (tterm-fix (std::da-nth 0 (cdr x))))
             :exec (std::da-nth 0 (cdr x)))))

    Theorem: ttermp-of-frame->term

    (defthm ttermp-of-frame->term
      (b* ((term (frame->term$inline x)))
        (ttermp term))
      :rule-classes :rewrite)

    Theorem: frame->term$inline-of-frame-fix-x

    (defthm frame->term$inline-of-frame-fix-x
      (equal (frame->term$inline (frame-fix x))
             (frame->term$inline x)))

    Theorem: frame->term$inline-frame-equiv-congruence-on-x

    (defthm frame->term$inline-frame-equiv-congruence-on-x
      (implies (frame-equiv x x-equiv)
               (equal (frame->term$inline x)
                      (frame->term$inline x-equiv)))
      :rule-classes :congruence)