• 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-equiv

    Basic equivalence relation for frame structures.

    Definitions and Theorems

    Function: frame-equiv$inline

    (defun frame-equiv$inline (acl2::x acl2::y)
      (declare (xargs :guard (and (framep acl2::x)
                                  (framep acl2::y))))
      (equal (frame-fix acl2::x)
             (frame-fix acl2::y)))

    Theorem: frame-equiv-is-an-equivalence

    (defthm frame-equiv-is-an-equivalence
      (and (booleanp (frame-equiv x y))
           (frame-equiv x x)
           (implies (frame-equiv x y)
                    (frame-equiv y x))
           (implies (and (frame-equiv x y)
                         (frame-equiv y z))
                    (frame-equiv x z)))
      :rule-classes (:equivalence))

    Theorem: frame-equiv-implies-equal-frame-fix-1

    (defthm frame-equiv-implies-equal-frame-fix-1
      (implies (frame-equiv acl2::x x-equiv)
               (equal (frame-fix acl2::x)
                      (frame-fix x-equiv)))
      :rule-classes (:congruence))

    Theorem: frame-fix-under-frame-equiv

    (defthm frame-fix-under-frame-equiv
      (frame-equiv (frame-fix acl2::x)
                   acl2::x)
      :rule-classes (:rewrite :rewrite-quoted-constant))

    Theorem: equal-of-frame-fix-1-forward-to-frame-equiv

    (defthm equal-of-frame-fix-1-forward-to-frame-equiv
      (implies (equal (frame-fix acl2::x) acl2::y)
               (frame-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: equal-of-frame-fix-2-forward-to-frame-equiv

    (defthm equal-of-frame-fix-2-forward-to-frame-equiv
      (implies (equal acl2::x (frame-fix acl2::y))
               (frame-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: frame-equiv-of-frame-fix-1-forward

    (defthm frame-equiv-of-frame-fix-1-forward
      (implies (frame-equiv (frame-fix acl2::x)
                            acl2::y)
               (frame-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: frame-equiv-of-frame-fix-2-forward

    (defthm frame-equiv-of-frame-fix-2-forward
      (implies (frame-equiv acl2::x (frame-fix acl2::y))
               (frame-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)