• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
          • Bip32
            • Bip32-wallet-structure
            • Bip32-key-trees
            • Bip32-key-serialization
            • Bip32-key-derivation
            • Bip32-executable-attachments
            • Bip32-extended-keys
              • Bip32-chain-code
              • Bip32-ext-pub-key
                • Bip32-ext-pub-key-fix
                • Bip32-ext-pub-key-equiv
                  • Make-bip32-ext-pub-key
                  • Bip32-ext-pub-key->chain-code
                  • Bip32-ext-pub-key->key
                  • Bip32-ext-pub-key-p
                  • Change-bip32-ext-pub-key
                • Bip32-ext-priv-key
                • Bip32-ext-key
              • Bip32-master-key-generation
            • Bech32
            • Bip39
            • Bip44
            • Base58
            • Bip43
            • Bytes
            • Base58check
            • Cryptography
            • Bip-350
            • Bip-173
          • 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
    • Bip32-ext-pub-key

    Bip32-ext-pub-key-equiv

    Basic equivalence relation for bip32-ext-pub-key structures.

    Definitions and Theorems

    Function: bip32-ext-pub-key-equiv$inline

    (defun bip32-ext-pub-key-equiv$inline (acl2::x acl2::y)
      (declare (xargs :guard (and (bip32-ext-pub-key-p acl2::x)
                                  (bip32-ext-pub-key-p acl2::y))))
      (equal (bip32-ext-pub-key-fix acl2::x)
             (bip32-ext-pub-key-fix acl2::y)))

    Theorem: bip32-ext-pub-key-equiv-is-an-equivalence

    (defthm bip32-ext-pub-key-equiv-is-an-equivalence
      (and (booleanp (bip32-ext-pub-key-equiv x y))
           (bip32-ext-pub-key-equiv x x)
           (implies (bip32-ext-pub-key-equiv x y)
                    (bip32-ext-pub-key-equiv y x))
           (implies (and (bip32-ext-pub-key-equiv x y)
                         (bip32-ext-pub-key-equiv y z))
                    (bip32-ext-pub-key-equiv x z)))
      :rule-classes (:equivalence))

    Theorem: bip32-ext-pub-key-equiv-implies-equal-bip32-ext-pub-key-fix-1

    (defthm
          bip32-ext-pub-key-equiv-implies-equal-bip32-ext-pub-key-fix-1
      (implies (bip32-ext-pub-key-equiv acl2::x x-equiv)
               (equal (bip32-ext-pub-key-fix acl2::x)
                      (bip32-ext-pub-key-fix x-equiv)))
      :rule-classes (:congruence))

    Theorem: bip32-ext-pub-key-fix-under-bip32-ext-pub-key-equiv

    (defthm bip32-ext-pub-key-fix-under-bip32-ext-pub-key-equiv
      (bip32-ext-pub-key-equiv (bip32-ext-pub-key-fix acl2::x)
                               acl2::x)
      :rule-classes (:rewrite :rewrite-quoted-constant))

    Theorem: equal-of-bip32-ext-pub-key-fix-1-forward-to-bip32-ext-pub-key-equiv

    (defthm
     equal-of-bip32-ext-pub-key-fix-1-forward-to-bip32-ext-pub-key-equiv
     (implies (equal (bip32-ext-pub-key-fix acl2::x)
                     acl2::y)
              (bip32-ext-pub-key-equiv acl2::x acl2::y))
     :rule-classes :forward-chaining)

    Theorem: equal-of-bip32-ext-pub-key-fix-2-forward-to-bip32-ext-pub-key-equiv

    (defthm
     equal-of-bip32-ext-pub-key-fix-2-forward-to-bip32-ext-pub-key-equiv
     (implies (equal acl2::x (bip32-ext-pub-key-fix acl2::y))
              (bip32-ext-pub-key-equiv acl2::x acl2::y))
     :rule-classes :forward-chaining)

    Theorem: bip32-ext-pub-key-equiv-of-bip32-ext-pub-key-fix-1-forward

    (defthm bip32-ext-pub-key-equiv-of-bip32-ext-pub-key-fix-1-forward
      (implies (bip32-ext-pub-key-equiv (bip32-ext-pub-key-fix acl2::x)
                                        acl2::y)
               (bip32-ext-pub-key-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: bip32-ext-pub-key-equiv-of-bip32-ext-pub-key-fix-2-forward

    (defthm bip32-ext-pub-key-equiv-of-bip32-ext-pub-key-fix-2-forward
     (implies
       (bip32-ext-pub-key-equiv acl2::x (bip32-ext-pub-key-fix acl2::y))
       (bip32-ext-pub-key-equiv acl2::x acl2::y))
     :rule-classes :forward-chaining)