• 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
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
        • File-io-light
        • Cryptography
        • Number-theory
        • Lists-light
        • Axe
        • Builtins
        • Solidity
          • Values
            • Integer-values
            • Boolean-values
              • Bool
                • Boolp
                  • Bool-fix
                  • Bool-equiv
                  • Make-bool
                  • Change-bool
                  • Bool->get
                • Boolean-operations
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Bool

    Boolp

    Recognizer for bool structures.

    Signature
    (boolp x) → *

    Definitions and Theorems

    Function: boolp

    (defun boolp (x)
      (declare (xargs :guard t))
      (let ((__function__ 'boolp))
        (declare (ignorable __function__))
        (and (consp x)
             (eq (car x) :bool)
             (true-listp (cdr x))
             (eql (len (cdr x)) 1)
             (b* ((get (std::da-nth 0 (cdr x))))
               (booleanp get)))))

    Theorem: consp-when-boolp

    (defthm consp-when-boolp
      (implies (boolp x) (consp x))
      :rule-classes :compound-recognizer)