• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
        • Syntax-for-tools
          • Formalized-subset
          • Mapping-to-language-definition
          • Input-files
          • Compilation-database
          • Printer
          • Output-files
          • Abstract-syntax-operations
          • Implementation-environments
          • Abstract-syntax
          • Concrete-syntax
          • Disambiguation
            • Disambiguator
              • Dimb-exprs/decls/stmts
              • Dimb-make/adjust-expr-cast
              • Dimb-make/adjust-expr-binary
              • Dimb-params-to-names
              • Dimb-fundef
              • Dimb-cast/call-to-call
              • Dimb-transunit
              • Dimb-dirdeclor
              • Dimb-transunit-ensemble
              • Dimb-make/adjust-expr-unary
              • Dimb-expr
              • Dimb-amb-declor/absdeclor
              • Dimb-cast/call-to-cast
              • Dimb-cast/addsub-to-cast
              • Dimb-cast/addsub-to-addsub
              • Dimb-add-ident
              • Dimb-kind
                • Dimb-kind-case
                • Dimb-kind-fix
                • Dimb-kind-equiv
                  • Dimb-kindp
                  • Dimb-kind-typedef
                  • Dimb-kind-objfun
                  • Dimb-kind-kind
                  • Dimb-kind-enumconst
                • Dimb-amb-expr/tyname
                • Dimb-ext-declon-list
                • Dimb-ext-declon
                • Dimb-cast/logand-to-logand
                • Dimb-cast/and-to-cast
                • Dimb-cast/mul-to-cast
                • Dimb-cast/logand-to-cast
                • Dimb-cast/mul-to-mul
                • Dimb-cast/and-to-and
                • Dimb-declor
                • Dimb-kind-option
                • Dimb-type-spec
                • Dimb-add-ident-objfun-file-scope
                • Dimb-make/adjust-expr-label-addr
                • Dimb-param-declor
                • Dimb-lookup-ident
                • Dimb-decl-spec
                • Dimb-add-idents-objfun
                • Dimb-add-ident-objfun
                • Dimb-param-declon
                • Dimb-amb-declon/stmt
                • Dimb-table
                • Dimb-pop-scope
                • Dimb-init-declor
                • Dimb-stmt
                • Dimb-push-scope
                • Dimb-comp-stmt
                • Dimb-declor-option
                • Dimb-enum-spec
                • Dimb-declon
                • Dimb-struct-declor
                • Dimb-scope
                • Dimb-init-declor-list
                • Dimb-decl-spec-list
                • Dimb-absdeclor
                • Dimb-dirabsdeclor
                • Dimb-align-spec
                • Dimb-struni-spec
                • Dimb-init-table
                • Dimb-spec/qual-list
                • Dimb-spec/qual
                • Irr-dimb-table
                • Irr-dimb-kind
                • Dimb-param-declon-list
                • Dimb-enumer-list
                • Dimb-enumer
                • Dimb-dirabsdeclor-option
                • Dimb-block-item
                • Dimb-struct-declor-list
                • Dimb-struct-declon-list
                • Dimb-struct-declon
                • Dimb-statassert
                • Dimb-label
                • Dimb-desiniter-list
                • Dimb-desiniter
                • Dimb-declon-list
                • Dimb-const-expr-option
                • Dimb-absdeclor-option
                • Dimb-member-designor
                • Dimb-initer-option
                • 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
                • Dimb-initer
              • Unambiguity
            • Validation
            • Gcc-builtins
            • Preprocessing
            • Parsing
          • Atc
          • Transformation-tools
          • Language
          • Representation
          • Insertion-sort
          • Pack
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Dimb-kind

    Dimb-kind-equiv

    Basic equivalence relation for dimb-kind structures.

    Definitions and Theorems

    Function: dimb-kind-equiv$inline

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

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

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

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

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

    Theorem: dimb-kind-fix-under-dimb-kind-equiv

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

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

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

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

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

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

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

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

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