• 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
            • 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-priv-key
              • Bip32-ext-key
                • Bip32-ext-key-fix
                • Bip32-ext-key-case
                • Bip32-ext-key-equiv
                • Bip32-ext-key-p
                • Bip32-ext-key-pub
                  • Bip32-ext-key-pub->get
                    • Make-bip32-ext-key-pub
                    • Change-bip32-ext-key-pub
                  • Bip32-ext-key-priv
                  • Bip32-ext-key-kind
              • Bip32-master-key-generation
            • Bech32
            • Bip39
            • Bip44
            • 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
    • Bip32-ext-key-pub

    Bip32-ext-key-pub->get

    Get the get field from a bip32-ext-key-pub.

    Signature
    (bip32-ext-key-pub->get x) → get
    Arguments
    x — Guard (bip32-ext-key-p x).
    Returns
    get — Type (bip32-ext-pub-key-p get).

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

    Definitions and Theorems

    Function: bip32-ext-key-pub->get$inline

    (defun bip32-ext-key-pub->get$inline (x)
      (declare (xargs :guard (bip32-ext-key-p x)))
      (declare (xargs :guard (equal (bip32-ext-key-kind x) :pub)))
      (let ((__function__ 'bip32-ext-key-pub->get))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (bip32-ext-key-kind x) :pub)
                          x)))
               (bip32-ext-pub-key-fix (std::da-nth 0 (cdr x))))
             :exec (std::da-nth 0 (cdr x)))))

    Theorem: bip32-ext-pub-key-p-of-bip32-ext-key-pub->get

    (defthm bip32-ext-pub-key-p-of-bip32-ext-key-pub->get
      (b* ((get (bip32-ext-key-pub->get$inline x)))
        (bip32-ext-pub-key-p get))
      :rule-classes :rewrite)

    Theorem: bip32-ext-key-pub->get$inline-of-bip32-ext-key-fix-x

    (defthm bip32-ext-key-pub->get$inline-of-bip32-ext-key-fix-x
      (equal (bip32-ext-key-pub->get$inline (bip32-ext-key-fix x))
             (bip32-ext-key-pub->get$inline x)))

    Theorem: bip32-ext-key-pub->get$inline-bip32-ext-key-equiv-congruence-on-x

    (defthm
      bip32-ext-key-pub->get$inline-bip32-ext-key-equiv-congruence-on-x
      (implies (bip32-ext-key-equiv x x-equiv)
               (equal (bip32-ext-key-pub->get$inline x)
                      (bip32-ext-key-pub->get$inline x-equiv)))
      :rule-classes :congruence)

    Theorem: bip32-ext-key-pub->get-when-wrong-kind

    (defthm bip32-ext-key-pub->get-when-wrong-kind
      (implies (not (equal (bip32-ext-key-kind x) :pub))
               (equal (bip32-ext-key-pub->get x)
                      (bip32-ext-pub-key-fix nil))))