• 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-chain-code-p
                  • Bip32-chain-code-fix
                • 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-chain-code

    Bip32-chain-code-p

    Recognizer for bip32-chain-code.

    Signature
    (bip32-chain-code-p x) → yes/no
    Returns
    yes/no — Type (booleanp yes/no).

    Definitions and Theorems

    Function: bip32-chain-code-p

    (defun bip32-chain-code-p (x)
      (declare (xargs :guard t))
      (and (byte-listp x) (equal (len x) 32)))

    Theorem: booleanp-of-bip32-chain-code-p

    (defthm booleanp-of-bip32-chain-code-p
      (b* ((yes/no (bip32-chain-code-p x)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: byte-listp-when-bip32-chain-code-p

    (defthm byte-listp-when-bip32-chain-code-p
      (implies (bip32-chain-code-p cc)
               (byte-listp cc)))

    Theorem: len-when-bip32-chain-code-p

    (defthm len-when-bip32-chain-code-p
      (implies (bip32-chain-code-p x)
               (equal (len x) 32))
      :rule-classes :tau-system)