• 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-path-set-closedp-executable-attachment
                • Bip32-path-set-closedp-exec
                • Bip32-path-set-closedp-exec-correctness
                • Bip32-path-set-closedp-exec-outer
                  • Bip32-path-set-closedp-exec-inner
                  • Bip32-path-set-closedp-exec-attach
                • Bip32-valid-keys-p-executable-attachment
                • Bip32-valid-depths-p-executable-attachment
              • Bip32-extended-keys
              • 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-path-set-closedp-executable-attachment

    Bip32-path-set-closedp-exec-outer

    Signature
    (bip32-path-set-closedp-exec-outer cur-paths all-paths) 
      → 
    yes/no
    Arguments
    cur-paths — Guard (bip32-path-setp cur-paths).
    all-paths — Guard (bip32-path-setp all-paths).
    Returns
    yes/no — Type (booleanp yes/no).

    Definitions and Theorems

    Function: bip32-path-set-closedp-exec-outer

    (defun bip32-path-set-closedp-exec-outer (cur-paths all-paths)
      (declare (xargs :guard (and (bip32-path-setp cur-paths)
                                  (bip32-path-setp all-paths))))
      (or (not (mbt (bip32-path-setp cur-paths)))
          (emptyp cur-paths)
          (and (bip32-path-set-closedp-exec-inner (head cur-paths)
                                                  all-paths)
               (bip32-path-set-closedp-exec-outer (tail cur-paths)
                                                  all-paths))))

    Theorem: booleanp-of-bip32-path-set-closedp-exec-outer

    (defthm booleanp-of-bip32-path-set-closedp-exec-outer
     (b*
      ((yes/no (bip32-path-set-closedp-exec-outer cur-paths all-paths)))
      (booleanp yes/no))
     :rule-classes :rewrite)

    Theorem: bip32-path-set-closedp-exec-outer-of-bip32-path-sfix-cur-paths

    (defthm
         bip32-path-set-closedp-exec-outer-of-bip32-path-sfix-cur-paths
     (equal
          (bip32-path-set-closedp-exec-outer (bip32-path-sfix cur-paths)
                                             all-paths)
          (bip32-path-set-closedp-exec-outer cur-paths all-paths)))

    Theorem: bip32-path-set-closedp-exec-outer-bip32-path-set-equiv-congruence-on-cur-paths

    (defthm
     bip32-path-set-closedp-exec-outer-bip32-path-set-equiv-congruence-on-cur-paths
     (implies
      (bip32-path-set-equiv cur-paths cur-paths-equiv)
      (equal
         (bip32-path-set-closedp-exec-outer cur-paths all-paths)
         (bip32-path-set-closedp-exec-outer cur-paths-equiv all-paths)))
     :rule-classes :congruence)

    Theorem: bip32-path-set-closedp-exec-outer-of-bip32-path-sfix-all-paths

    (defthm
         bip32-path-set-closedp-exec-outer-of-bip32-path-sfix-all-paths
      (equal (bip32-path-set-closedp-exec-outer
                  cur-paths (bip32-path-sfix all-paths))
             (bip32-path-set-closedp-exec-outer cur-paths all-paths)))

    Theorem: bip32-path-set-closedp-exec-outer-bip32-path-set-equiv-congruence-on-all-paths

    (defthm
     bip32-path-set-closedp-exec-outer-bip32-path-set-equiv-congruence-on-all-paths
     (implies
      (bip32-path-set-equiv all-paths all-paths-equiv)
      (equal
         (bip32-path-set-closedp-exec-outer cur-paths all-paths)
         (bip32-path-set-closedp-exec-outer cur-paths all-paths-equiv)))
     :rule-classes :congruence)