• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
        • Atj
        • Aij
        • Language
          • Syntax
            • Grammar
            • Unicode-escapes
            • Unicode-input-char
            • Escape-sequence
            • Identifiers
            • Primitive-types
            • Reference-types
            • Keywords
            • Unicode-characters
            • Integer-literals
            • String-literals
            • Octal-digits
            • Hexadecimal-digits
            • Decimal-digits
            • Binary-digits
            • Character-literals
            • Null-literal
            • Floating-point-literals
            • Boolean-literals
              • Boolean-literalp
                • Boolean-literals-grammar-validation
                • *boolean-literals*
              • Package-names
              • Literals
            • Semantics
        • Taspi
        • Riscv
        • Bitcoin
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Boolean-literals

    Boolean-literalp

    Recognize the Java boolean literals.

    Signature
    (boolean-literalp x) → yes/no
    Returns
    yes/no — Type (booleanp yes/no).

    A Java boolean literal is a list of Java Unicode characters that consists of the (ASCII) codes of an element of *boolean-literals*.

    Definitions and Theorems

    Function: boolean-literalp

    (defun boolean-literalp (x)
      (declare (xargs :guard t))
      (let ((__function__ 'boolean-literalp))
        (declare (ignorable __function__))
        (and (ascii-listp x)
             (member-equal (ascii=>string x)
                           *boolean-literals*)
             t)))

    Theorem: booleanp-of-boolean-literalp

    (defthm booleanp-of-boolean-literalp
      (b* ((yes/no (boolean-literalp x)))
        (booleanp yes/no))
      :rule-classes :rewrite)