• 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
          • Syntax-for-tools
          • Atc
            • Atc-implementation
              • Atc-abstract-syntax
              • Atc-pretty-printer
              • Atc-event-and-code-generation
              • Fty-pseudo-term-utilities
              • Atc-term-recognizers
              • Atc-input-processing
              • Atc-shallow-embedding
                • Defstruct
                • Defobject
                  • Defobject-implementation
                    • Defobject-info
                      • Defobject-info-fix
                      • Make-defobject-info
                      • Defobject-info-equiv
                        • Defobject-infop
                        • Defobject-info->recognizer
                        • Defobject-info->name-symbol
                        • Defobject-info->name-ident
                        • Defobject-info->initializer
                        • Change-defobject-info
                        • Defobject-info->init
                        • Defobject-info->call
                        • Defobject-info->type
                      • Defobject-gen-everything
                      • Defobject-process-name
                      • Defobject-info-option
                      • Defobject-term-to-expr
                      • Term-checkers-common
                      • Defobject-process-init
                      • Defobject-process-init-term
                      • Defobject-table-record-event
                      • Defobject-process-type
                      • Defobject-process-inputs
                      • Defobject-table-lookup
                      • Defobject-process-init-terms
                      • Defobject-process-inputs-and-gen-everything
                      • Defobject-fn
                      • Defobject-table-definition
                      • *defobject-table*
                      • Defobject-macro-definition
                  • Atc-let-designations
                  • Pointer-types
                  • Atc-conditional-expressions
                • Atc-process-inputs-and-gen-everything
                • Atc-table
                • Atc-fn
                • Atc-pretty-printing-options
                • Atc-types
                • Atc-macro-definition
              • Atc-tutorial
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • 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
    • Defobject-info

    Defobject-info-equiv

    Basic equivalence relation for defobject-info structures.

    Definitions and Theorems

    Function: defobject-info-equiv$inline

    (defun defobject-info-equiv$inline (acl2::x acl2::y)
      (declare (xargs :guard (and (defobject-infop acl2::x)
                                  (defobject-infop acl2::y))))
      (equal (defobject-info-fix acl2::x)
             (defobject-info-fix acl2::y)))

    Theorem: defobject-info-equiv-is-an-equivalence

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

    Theorem: defobject-info-equiv-implies-equal-defobject-info-fix-1

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

    Theorem: defobject-info-fix-under-defobject-info-equiv

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

    Theorem: equal-of-defobject-info-fix-1-forward-to-defobject-info-equiv

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

    Theorem: equal-of-defobject-info-fix-2-forward-to-defobject-info-equiv

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

    Theorem: defobject-info-equiv-of-defobject-info-fix-1-forward

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

    Theorem: defobject-info-equiv-of-defobject-info-fix-2-forward

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