• 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-type

    Bip44-coin-type-p

    Recognizer for bip44-coin-type.

    Signature
    (bip44-coin-type-p x) → yes/no
    Returns
    yes/no — Type (booleanp yes/no).

    Definitions and Theorems

    Function: bip44-coin-type-p

    (defun bip44-coin-type-p (x)
      (declare (xargs :guard t))
      (mbe :logic (unsigned-byte-p 31 x)
           :exec (and (integerp x)
                      (<= 0 x)
                      (< x 2147483648))))

    Theorem: booleanp-of-bip44-coin-type-p

    (defthm booleanp-of-bip44-coin-type-p
      (b* ((yes/no (bip44-coin-type-p x)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: bip44-coin-type-p-forward-unsigned-byte-p

    (defthm bip44-coin-type-p-forward-unsigned-byte-p
      (implies (bip44-coin-type-p x)
               (unsigned-byte-p 31 x))
      :rule-classes :forward-chaining)

    Theorem: unsigned-byte-p-rewrite-bip44-coin-type-p

    (defthm unsigned-byte-p-rewrite-bip44-coin-type-p
      (equal (unsigned-byte-p 31 x)
             (bip44-coin-type-p x)))

    Theorem: natp-when-bip44-coin-type-p

    (defthm natp-when-bip44-coin-type-p
      (implies (bip44-coin-type-p x) (natp x))
      :rule-classes :compound-recognizer)