• 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
          • Atj
          • Aij
          • Language
            • Syntax
              • Grammar
              • Unicode-escapes
              • Unicode-input-char
              • Escape-sequence
              • Identifiers
              • Primitive-types
              • Reference-types
              • Unicode-characters
              • Keywords
                • Keywords-grammar-validation
                • Reserved-keywordp
                  • Contextual-keywordp
                  • *reserved-keywords*
                  • *contextual-keywords*
                • Integer-literals
                • String-literals
                • Octal-digits
                • Hexadecimal-digits
                • Decimal-digits
                • Binary-digits
                • Character-literals
                • Null-literal
                • Floating-point-literals
                • Boolean-literals
                • Package-names
                • Literals
              • Semantics
          • Riscv
          • Bitcoin
          • 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
    • Keywords

    Reserved-keywordp

    Recognize reserved Java keywords.

    Signature
    (reserved-keywordp x) → yes/no
    Returns
    yes/no — Type (booleanp yes/no).

    A reserved Java keyword is a list of Java Unicode characters that consist of the (ASCII) codes of some element in *reserved-keywords*.

    Definitions and Theorems

    Function: reserved-keywordp

    (defun reserved-keywordp (x)
      (declare (xargs :guard t))
      (and (ascii-listp x)
           (member-equal (ascii=>string x)
                         *reserved-keywords*)
           t))

    Theorem: booleanp-of-reserved-keywordp

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