• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • 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
        • 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
        • 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
    • 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)