• 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-part-listp-basics
                • 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-part-listp

Check if a list of Java Unicode characters consists of only characters that can be non-starting parts of identifiers.

Signature
(identifier-part-listp x) → std::bool

This is an ordinary std::deflist. It is "loose" in that it does not care whether x is nil-terminated.

Definitions and Theorems

Function: identifier-part-listp

(defun identifier-part-listp (x)
  (declare (xargs :guard (unicode-listp x)))
  (let ((__function__ 'identifier-part-listp))
    (declare (ignorable __function__))
    (if (consp x)
        (and (identifier-part-p (car x))
             (identifier-part-listp (cdr x)))
      t)))

Theorem: identifier-part-listp-of-unicode-list-fix-x

(defthm identifier-part-listp-of-unicode-list-fix-x
  (equal (identifier-part-listp (unicode-list-fix x))
         (identifier-part-listp x)))

Theorem: identifier-part-listp-unicode-list-equiv-congruence-on-x

(defthm identifier-part-listp-unicode-list-equiv-congruence-on-x
  (implies (unicode-list-equiv x x-equiv)
           (equal (identifier-part-listp x)
                  (identifier-part-listp x-equiv)))
  :rule-classes :congruence)

Subtopics

Identifier-part-listp-basics
Basic theorems about identifier-part-listp, generated by std::deflist.