• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
          • Syntax-for-tools
            • Disambiguator
              • Dimb-exprs/decls/stmts
              • Dimb-make/adjust-expr-binary
              • Dimb-params-to-names
              • Dimb-transunit
              • Dimb-cast/call-to-call
              • Dimb-dirdeclor
              • Dimb-make/adjust-expr-cast
              • Dimb-fundef
              • Dimb-make/adjust-expr-unary
              • Dimb-expr
              • Dimb-amb-declor/absdeclor
              • Dimb-cast/call-to-cast
              • Dimb-declor
              • Dimb-cast/addsub-to-cast
              • Dimb-cast/addsub-to-addsub
              • Dimb-transunit-ensemble
              • Dimb-add-ident
              • Dimb-kind
              • Dimb-amb-expr/tyname
              • Dimb-cast/mul-to-cast
              • Dimb-cast/and-to-cast
              • Dimb-cast/mul-to-mul
              • Dimb-cast/and-to-and
              • Dimb-kind-option
              • Dimb-type-spec
              • Dimb-extdecl-list
              • Dimb-extdecl
              • Dimb-lookup-ident
              • Dimb-param-declor
              • Dimb-decl-spec
              • Dimb-param-declon
              • Dimb-add-idents-objfun
              • Dimb-add-ident-objfun
              • Dimb-table
                • Dimb-tablep
                • Dimb-table-fix
                • Dimb-table-equiv
                • Dimb-amb-decl/stmt
                • Dimb-pop-scope
                • Dimb-push-scope
                • Dimb-initdeclor
                • Dimb-declor-option
                • Dimb-enumspec
                • Dimb-decl
                • Dimb-stmt
                • Dimb-scope
                • Dimb-structdeclor
                • Dimb-initdeclor-list
                • Dimb-decl-spec-list
                • Dimb-absdeclor
                • Dimb-init-table
                • Dimb-dirabsdeclor
                • Dimb-align-spec
                • Dimb-struni-spec
                • Irr-dimb-table
                • Irr-dimb-kind
                • Dimb-spec/qual-list
                • Dimb-spec/qual
                • Dimb-param-declon-list
                • Dimb-label
                • Dimb-enumer-list
                • Dimb-enumer
                • Dimb-dirabsdeclor-option
                • Dimb-block-item
                • Dimb-structdeclor-list
                • Dimb-structdecl-list
                • Dimb-statassert
                • Dimb-desiniter-list
                • Dimb-desiniter
                • Dimb-decl-list
                • Dimb-const-expr-option
                • Dimb-absdeclor-option
                • Dimb-structdecl
                • Dimb-member-designor
                • Dimb-initer-option
                • Dimb-initer
                • Dimb-genassoc-list
                • Dimb-genassoc
                • Dimb-expr-option
                • Dimb-expr-list
                • Dimb-designor-list
                • Dimb-designor
                • Dimb-const-expr
                • Dimb-block-item-list
                • Dimb-tyname
              • Abstract-syntax
              • Parser
              • Validator
              • Printer
              • Formalized-subset
              • Mapping-to-language-definition
              • Input-files
              • Defpred
              • Output-files
              • Abstract-syntax-operations
              • Validation-information
              • Implementation-environments
              • Concrete-syntax
              • Ascii-identifiers
              • Unambiguity
              • Preprocessing
              • Abstraction-mapping
              • Standard
              • Purity
            • Atc
            • 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
    • Dimb-table

    Dimb-table-equiv

    Basic equivalence relation for dimb-table structures.

    Definitions and Theorems

    Function: dimb-table-equiv$inline

    (defun dimb-table-equiv$inline (acl2::x acl2::y)
      (declare (xargs :guard (and (dimb-tablep acl2::x)
                                  (dimb-tablep acl2::y))))
      (equal (dimb-table-fix acl2::x)
             (dimb-table-fix acl2::y)))

    Theorem: dimb-table-equiv-is-an-equivalence

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

    Theorem: dimb-table-equiv-implies-equal-dimb-table-fix-1

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

    Theorem: dimb-table-fix-under-dimb-table-equiv

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

    Theorem: equal-of-dimb-table-fix-1-forward-to-dimb-table-equiv

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

    Theorem: equal-of-dimb-table-fix-2-forward-to-dimb-table-equiv

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

    Theorem: dimb-table-equiv-of-dimb-table-fix-1-forward

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

    Theorem: dimb-table-equiv-of-dimb-table-fix-2-forward

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