• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
        • Bip32
        • Bech32
        • Bip39
          • *bip39-english-words*
          • Bip39-mnemonic-to-seed
          • Bip39-entropy-to-word-indexes
          • Bip39-entropy
          • Bip39-word-indexes-to-words
          • Bip39-words-to-mnemonic
          • Bip39-entropy-to-seed
          • Bip39-entropy-to-mnemonic
          • Bip39-english-words-bound-p
          • Bip39-entropy-size-p
          • Bip44
          • Base58
          • Bip43
          • Bytes
          • Base58check
          • Cryptography
          • Bip-350
          • Bip-173
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Bip39

    Bip39-entropy-size-p

    Possible sizes of the entropy in bits.

    These are the possible values of ENT in the table in [BIP39].

    This is an ordinary std::defenum.

    Function: bip39-entropy-size-p

    (defun bip39-entropy-size-p (x)
      (declare (xargs :guard t))
      (or (eql x '128)
          (eql x '160)
          (eql x '192)
          (eql x '224)
          (eql x '256)))

    Theorem: type-when-bip39-entropy-size-p

    (defthm type-when-bip39-entropy-size-p
      (implies (bip39-entropy-size-p x)
               (if (integerp x) (< '1 x) 'nil))
      :rule-classes :compound-recognizer)