• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
          • Bip32
            • Bip32-wallet-structure
            • Bip32-key-trees
              • Bip32-extend-tree
              • Bip32-valid-depths-p
              • Bip32-key-tree
              • Bip32-path-set-closedp
              • Bip32-valid-keys-p
              • Bip32-index-tree
              • Bip32-path-in-tree-p
              • Bip32-ckd*
              • Bip32-get-pub-key-at-path
              • Bip32-get-priv-key-at-path
              • Bip32-ckd-priv*
              • Bip32-ckd-pub*
              • Bip32-path
              • Bip32-key-tree-priv-p
              • Bip32-path-set
                • Bip32-path-sfix
                • Bip32-path-setp
                  • Bip32-path-set-equiv
              • Bip32-key-serialization
              • Bip32-key-derivation
              • Bip32-executable-attachments
              • Bip32-extended-keys
              • 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-path-set

    Bip32-path-setp

    Recognizer for bip32-path-set.

    Signature
    (bip32-path-setp x) → *

    Definitions and Theorems

    Function: bip32-path-setp

    (defun bip32-path-setp (x)
      (declare (xargs :guard t))
      (if (atom x)
          (null x)
        (and (ubyte32-listp (car x))
             (or (null (cdr x))
                 (and (consp (cdr x))
                      (acl2::fast-<< (car x) (cadr x))
                      (bip32-path-setp (cdr x)))))))

    Theorem: booleanp-ofbip32-path-setp

    (defthm booleanp-ofbip32-path-setp
      (booleanp (bip32-path-setp x)))

    Theorem: setp-when-bip32-path-setp

    (defthm setp-when-bip32-path-setp
      (implies (bip32-path-setp x) (setp x))
      :rule-classes (:rewrite))

    Theorem: ubyte32-listp-of-head-when-bip32-path-setp

    (defthm ubyte32-listp-of-head-when-bip32-path-setp
      (implies (bip32-path-setp x)
               (ubyte32-listp (head x))))

    Theorem: bip32-path-setp-of-tail-when-bip32-path-setp

    (defthm bip32-path-setp-of-tail-when-bip32-path-setp
      (implies (bip32-path-setp x)
               (bip32-path-setp (tail x))))

    Theorem: bip32-path-setp-of-insert

    (defthm bip32-path-setp-of-insert
      (equal (bip32-path-setp (insert a x))
             (and (ubyte32-listp a)
                  (bip32-path-setp (sfix x)))))

    Theorem: ubyte32-listp-when-in-bip32-path-setp-binds-free-x

    (defthm ubyte32-listp-when-in-bip32-path-setp-binds-free-x
      (implies (and (in a x) (bip32-path-setp x))
               (ubyte32-listp a)))

    Theorem: not-in-bip32-path-setp-when-not-ubyte32-listp

    (defthm not-in-bip32-path-setp-when-not-ubyte32-listp
      (implies (and (bip32-path-setp x)
                    (not (ubyte32-listp a)))
               (not (in a x))))

    Theorem: bip32-path-setp-of-union

    (defthm bip32-path-setp-of-union
      (equal (bip32-path-setp (union x y))
             (and (bip32-path-setp (sfix x))
                  (bip32-path-setp (sfix y)))))

    Theorem: bip32-path-setp-of-intersect

    (defthm bip32-path-setp-of-intersect
      (implies (and (bip32-path-setp x)
                    (bip32-path-setp y))
               (bip32-path-setp (intersect x y))))

    Theorem: bip32-path-setp-of-difference

    (defthm bip32-path-setp-of-difference
      (implies (bip32-path-setp x)
               (bip32-path-setp (difference x y))))

    Theorem: bip32-path-setp-of-delete

    (defthm bip32-path-setp-of-delete
      (implies (bip32-path-setp x)
               (bip32-path-setp (delete a x))))