• 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
                • Uniescape-parse-constraints-p
                • Even-backslashes-tree-constraints-p
                • Len-of-string-of-prefix-of-unicode-input-character-trees
                • Uniescape-parse
                • Nonzero-uletters-after-p
                • Abs-unicode-escape
                • Even-backslashes-before-p
                • Uniescape-tree-constraints-p
                • Uniescape-process
                • Uniescape-candidate-valid-p
                • Uniescape-candidate-p
                • Abs-raw-input-character
                • Abs-hex-digit
                • Abs-unicode-input-character
                • Some-uniescape-candidate-invalid-p
                • Uniescapep
                  • Abs-unicode-input-character-list
                  • Uniescape-parse-p
                  • Eligible-backslash-p
                  • Unicode-input-character-tree-is-escape-p
                • 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
                • 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
    • Unicode-escapes

    Uniescapep

    Check if, in a list of Unicode characters, there is a Unicode escape at position pos.

    Signature
    (uniescapep pos unicodes) → yes/no
    Arguments
    pos — Guard (natp pos).
    unicodes — Guard (unicode-listp unicodes).
    Returns
    yes/no — Type (booleanp yes/no).

    This is true when there is a valid Unicode escape at pos, i.e. if there is an eligible backslah at pos followed by one or more `u' letters that are followed by four hexadecimal digits.

    Definitions and Theorems

    Function: uniescapep

    (defun uniescapep (pos unicodes)
      (declare (xargs :guard (and (natp pos)
                                  (unicode-listp unicodes))))
      (declare (xargs :guard (< pos (len unicodes))))
      (and (uniescape-candidate-p pos unicodes)
           (uniescape-candidate-valid-p pos unicodes)))

    Theorem: booleanp-of-uniescapep

    (defthm booleanp-of-uniescapep
      (b* ((yes/no (uniescapep pos unicodes)))
        (booleanp yes/no))
      :rule-classes :rewrite)