• 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
        • 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-purpose*
          • Base58
          • Bip43
          • Bytes
          • Base58check
          • Cryptography
          • Bip-350
          • Bip-173
        • 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
    • Bip44

    Bip44-compliant-accounts-p

    Check if the account keys in a tree comply with the BIP 44 wallet structure.

    This is similar to bip44-compliant-addresses-p.

    Definitions and Theorems

    Theorem: bip44-compliant-accounts-p-suff

    (defthm bip44-compliant-accounts-p-suff
      (implies (and (natp account-index-limit)
                    (bip44-compliant-accounts-for-limit-p
                         tree coin-index account-index-limit))
               (bip44-compliant-accounts-p tree coin-index)))

    Theorem: booleanp-of-bip44-compliant-accounts-p

    (defthm booleanp-of-bip44-compliant-accounts-p
      (b* ((yes/no (bip44-compliant-accounts-p tree coin-index)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: bip44-compliant-accounts-p-of-bip32-key-tree-fix-tree

    (defthm bip44-compliant-accounts-p-of-bip32-key-tree-fix-tree
      (equal (bip44-compliant-accounts-p (bip32-key-tree-fix tree)
                                         coin-index)
             (bip44-compliant-accounts-p tree coin-index)))

    Theorem: bip44-compliant-accounts-p-bip32-key-tree-equiv-congruence-on-tree

    (defthm
     bip44-compliant-accounts-p-bip32-key-tree-equiv-congruence-on-tree
     (implies
          (bip32-key-tree-equiv tree tree-equiv)
          (equal (bip44-compliant-accounts-p tree coin-index)
                 (bip44-compliant-accounts-p tree-equiv coin-index)))
     :rule-classes :congruence)

    Theorem: bip44-compliant-accounts-p-of-ubyte32-fix-coin-index

    (defthm bip44-compliant-accounts-p-of-ubyte32-fix-coin-index
      (equal (bip44-compliant-accounts-p tree (ubyte32-fix coin-index))
             (bip44-compliant-accounts-p tree coin-index)))

    Theorem: bip44-compliant-accounts-p-ubyte32-equiv-congruence-on-coin-index

    (defthm
      bip44-compliant-accounts-p-ubyte32-equiv-congruence-on-coin-index
      (implies
           (acl2::ubyte32-equiv coin-index coin-index-equiv)
           (equal (bip44-compliant-accounts-p tree coin-index)
                  (bip44-compliant-accounts-p tree coin-index-equiv)))
      :rule-classes :congruence)