• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
          • Command-error
          • Sign
          • Init-from-mnemonic
          • Command-error-message
          • Stat
            • Stat-fix
            • Stat-equiv
            • Statp
            • Make-stat
            • Stat->keys
              • Stat->addresses
              • Change-stat
            • Next-key
            • Init-from-entropy
            • Process-command
            • Transaction-message
            • Maybe-command-error
            • Maybe-stat
            • Check-stat-file-present
            • Valid-key-path-p
            • String-to-byte-list
            • Load-stat
            • Mnemonic-message
            • Process-sign
            • Process-init-from-entropy
            • All-valid-key-paths-p
            • String-to-word
            • String-to-nat
            • Process-next-key
            • Wallet
            • Process-init-from-mnemonic
            • Check-stat-file-absent
            • Stat-wfp
            • Save-stat
            • Stat-addresses-bounded-p
            • Stat-all-valid-key-paths-p
            • Stat-priv-keys-p
            • Stat-root-depth-zero-p
            • Stat-path-prefix-in-tree-p
            • Crypto-hdwallet-executable
            • *stat-filepath*
            • *key-path-prefix*
            • *coin-type-index*
            • *purpose-index*
            • *external-chain-index*
            • *command-name-init-from-mnemonic*
            • *command-name-init-from-entropy*
            • *account-index*
            • *command-name-sign*
            • *command-name-next-key*
          • Apt
          • Error-checking
          • Fty-extensions
          • Isar
          • Kestrel-utilities
          • Set
          • Soft
          • C
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • 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
    • Stat

    Stat->keys

    Get the keys field from a stat.

    Signature
    (stat->keys x) → keys
    Arguments
    x — Guard (statp x).
    Returns
    keys — Type (bitcoin::bip32-key-treep keys).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: stat->keys$inline

    (defun stat->keys$inline (x)
      (declare (xargs :guard (statp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'stat->keys))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (bitcoin::bip32-key-tree-fix (std::da-nth 0 (cdr x))))
             :exec (std::da-nth 0 (cdr x)))))

    Theorem: bip32-key-treep-of-stat->keys

    (defthm bip32-key-treep-of-stat->keys
      (b* ((keys (stat->keys$inline x)))
        (bitcoin::bip32-key-treep keys))
      :rule-classes :rewrite)

    Theorem: stat->keys$inline-of-stat-fix-x

    (defthm stat->keys$inline-of-stat-fix-x
      (equal (stat->keys$inline (stat-fix x))
             (stat->keys$inline x)))

    Theorem: stat->keys$inline-stat-equiv-congruence-on-x

    (defthm stat->keys$inline-stat-equiv-congruence-on-x
      (implies (stat-equiv x x-equiv)
               (equal (stat->keys$inline x)
                      (stat->keys$inline x-equiv)))
      :rule-classes :congruence)