• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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

    Nonascii-identifier-ignore-p

    Check if a non-ASCII Java Unicode character is ignorable in identifiers.

    This is like ascii-identifier-ignore-p, but for Unicode characters that are not ASCII.

    For now we leave this predicate almost completely unspecified, by introducing it as a weakly constrained function. We only require it to have a guard consisting of the non-ASCII Java Unicode characters, to return a boolean, and to fix its input to a Java Unicode character.

    Defining this predicate completely may require the development of a Unicode library in ACL2 that formalizes categories and related notions.

    Definitions and Theorems

    Theorem: booleanp-of-nonascii-identifier-ignore-p

    (defthm booleanp-of-nonascii-identifier-ignore-p
      (booleanp (nonascii-identifier-ignore-p char))
      :rule-classes (:type-prescription :rewrite))

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

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

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

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