• 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
          • Atj
          • Aij
          • Language
            • Syntax
              • Grammar
              • Unicode-escapes
              • Unicode-input-char
              • Escape-sequence
              • Identifiers
                • Midentifier
                • Ascii-identifier-part-p
                • Identifier
                • Tidentifier
                • Umidentifier
                • Ascii-identifier-ignore-p
                • Ascii-identifier-start-p
                • Nonascii-identifier-part-p
                • Nonascii-identifier-ignore-p
                • Nonascii-identifier-start-p
                • Identifier-part-listp
                • Identifier-start-p
                • Identifier-part-p
                • Identifier-ignore-p
                  • No-identifier-ignore-p
                  • Tidentifierp
                  • Identifierp
                  • Umidentifier-fix
                  • Tidentifier-fix
                  • Midentifier-fix
                  • Identifier-fix
                  • Umidentifierp
                  • Midentifierp
                  • Identifier-list
                • 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
                • Package-names
                • Literals
              • Semantics
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Identifiers

    Identifier-ignore-p

    Check if a Java Unicode character is ignorable in identifiers.

    Signature
    (identifier-ignore-p char) → yes/no
    Arguments
    char — Guard (unicodep char).
    Returns
    yes/no — Type (booleanp yes/no).

    This puts together ascii-identifier-ignore-p and nonascii-identifier-ignore-p.

    Definitions and Theorems

    Function: identifier-ignore-p

    (defun identifier-ignore-p (char)
      (declare (xargs :guard (unicodep char)))
      (let ((__function__ 'identifier-ignore-p))
        (declare (ignorable __function__))
        (b* ((char (mbe :logic (unicode-fix char)
                        :exec char)))
          (cond ((asciip char)
                 (ascii-identifier-ignore-p char))
                (t (nonascii-identifier-ignore-p char))))))

    Theorem: booleanp-of-identifier-ignore-p

    (defthm booleanp-of-identifier-ignore-p
      (b* ((yes/no (identifier-ignore-p char)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: identifier-ignore-p-of-unicode-fix-char

    (defthm identifier-ignore-p-of-unicode-fix-char
      (equal (identifier-ignore-p (unicode-fix char))
             (identifier-ignore-p char)))

    Theorem: identifier-ignore-p-unicode-equiv-congruence-on-char

    (defthm identifier-ignore-p-unicode-equiv-congruence-on-char
      (implies (unicode-equiv char char-equiv)
               (equal (identifier-ignore-p char)
                      (identifier-ignore-p char-equiv)))
      :rule-classes :congruence)