• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • 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
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
                • Expression
                • Syntax-abstraction
                • Statement
                • Files
                • Input-files
                • Identifiers
                • Types
                  • Type-option
                  • Name+type
                  • Type-option-set-result
                  • Type-option-result
                  • Type-map-result
                  • Type-list-result
                  • Name+type-result
                  • Type-result
                  • Type-identifiers
                  • Type-primitivep
                  • Type-arithmeticp
                  • Type-namedp
                  • Type-integerp
                  • Type-map
                    • Type-mapp
                    • Type-map-fix
                    • Type-map-equiv
                    • Type-option-set
                    • Type/typelist
                  • Struct-init
                  • Branch
                  • Statements
                  • Format-strings
                  • Input-syntax-abstraction
                  • Expressions
                  • Output-files
                  • Addresses
                  • Literals
                  • Characters
                  • Expression-list
                  • Statement-list
                  • Output-syntax-abstraction
                  • Struct-init-list
                  • Branch-list
                  • Annotations
                  • Abstract-syntax-trees
                  • Symbols
                  • Keywords
                  • Programs
                  • Packages
                  • Bit-sizes
                • Dynamic-semantics
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • 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
    • Type-map

    Type-map-equiv

    Basic equivalence relation for type-map structures.

    Definitions and Theorems

    Function: type-map-equiv$inline

    (defun type-map-equiv$inline (acl2::x acl2::y)
      (declare (xargs :guard (and (type-mapp acl2::x)
                                  (type-mapp acl2::y))))
      (equal (type-map-fix acl2::x)
             (type-map-fix acl2::y)))

    Theorem: type-map-equiv-is-an-equivalence

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

    Theorem: type-map-equiv-implies-equal-type-map-fix-1

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

    Theorem: type-map-fix-under-type-map-equiv

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

    Theorem: equal-of-type-map-fix-1-forward-to-type-map-equiv

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

    Theorem: equal-of-type-map-fix-2-forward-to-type-map-equiv

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

    Theorem: type-map-equiv-of-type-map-fix-1-forward

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

    Theorem: type-map-equiv-of-type-map-fix-2-forward

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