• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
        • Riscv
        • Bitcoin
          • Bip32
          • Bech32
          • Bip39
          • Bip44
            • Bip44-compliant-addresses-for-limit-p
            • Bip44-compliant-chains-p
            • Bip44-compliant-accounts-for-limit-p
            • Bip44-compliant-addresses-p
            • Bip44-compliant-coins-for-set-p
            • Bip44-compliant-tree-p
            • Bip44-compliant-accounts-p
            • Bip44-compliant-coins-p
            • Bip44-compliant-depth-p
            • Bip44-coin-type-set
            • Bip44-coin-types
              • Bip44-coin-type
                • Bip44-coin-type-p
                • Bip44-coin-type-fix
            • *bip44-purpose*
          • Base58
          • Bip43
          • Bytes
          • Base58check
          • Cryptography
          • Bip-350
          • Bip-173
        • Zcash
        • Yul
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
        • File-io-light
        • Cryptography
        • Number-theory
        • Axe
        • Lists-light
        • Builtins
        • Solidity
        • Helpers
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Axe
      • Execloader
    • Math
    • Testing-utilities
  • Bip44-coin-types

Bip44-coin-type

Fixtype of coin types.

Definitions and Theorems

Function: bip44-coin-type-equiv$inline

(defun bip44-coin-type-equiv$inline (acl2::x acl2::y)
  (declare (xargs :guard (and (bip44-coin-type-p acl2::x)
                              (bip44-coin-type-p acl2::y))))
  (equal (bip44-coin-type-fix acl2::x)
         (bip44-coin-type-fix acl2::y)))

Theorem: bip44-coin-type-equiv-is-an-equivalence

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

Theorem: bip44-coin-type-equiv-implies-equal-bip44-coin-type-fix-1

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

Theorem: bip44-coin-type-fix-under-bip44-coin-type-equiv

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

Theorem: equal-of-bip44-coin-type-fix-1-forward-to-bip44-coin-type-equiv

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

Theorem: equal-of-bip44-coin-type-fix-2-forward-to-bip44-coin-type-equiv

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

Theorem: bip44-coin-type-equiv-of-bip44-coin-type-fix-1-forward

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

Theorem: bip44-coin-type-equiv-of-bip44-coin-type-fix-2-forward

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

Subtopics

Bip44-coin-type-p
Recognizer for bip44-coin-type.
Bip44-coin-type-fix
Fixer for bip44-coin-type.