• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • 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
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • 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)