• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Hons-and-memoization
      • Events
      • History
      • Parallelism
      • Programming
        • Defun
        • Declare
        • System-utilities
        • Stobj
        • State
        • Memoize
        • Mbe
        • Io
        • Defpkg
        • Apply$
        • Mutual-recursion
        • Loop$
        • Programming-with-state
        • Arrays
        • Characters
          • Character-listp
          • Characterp
          • Coerce
          • Standard-char-p
          • Digit-char-p
          • Code-char
          • Char-code
          • Char-downcase
          • Char
          • Char-upcase
          • Explode-nonnegative-integer
          • Explode-atom
          • Upper-case-p
            • Up-alpha-p
          • Lower-case-p
          • Char-equal
          • Alpha-char-p
          • Digit-to-char
          • Char<
          • Char>=
          • Make-character-list
          • Char>
          • Char<=
          • Standard-char-listp
          • Character-alistp
          • Standard-char-p+
          • Chars-upcase-gen
          • Chars-downcase-gen
          • Char-upcase-gen
          • Char-downcase-gen
        • Time$
        • Loop$-primer
        • Fast-alists
        • Defmacro
        • Defconst
        • Evaluation
        • Guard
        • Equality-variants
        • Compilation
        • Hons
        • ACL2-built-ins
        • Developers-guide
        • System-attachments
        • Advanced-features
        • Set-check-invariant-risk
        • Numbers
        • Irrelevant-formals
        • Efficiency
        • Introduction-to-programming-in-ACL2-for-those-who-know-lisp
        • Redefining-programs
        • Lists
        • Invariant-risk
        • Errors
        • Defabbrev
        • Conses
        • Alists
        • Set-register-invariant-risk
        • Strings
        • Program-wrapper
        • Get-internal-time
        • Basics
        • Packages
        • Defmacro-untouchable
        • Primitive
        • <<
        • Revert-world
        • Set-duplicate-keys-action
        • Unmemoize
        • Symbols
        • Def-list-constructor
        • Easy-simplify-term
        • Defiteration
        • Defopen
        • Sleep
      • Start-here
      • Real
      • Debugging
      • Miscellaneous
      • Output-controls
      • Macros
      • Interfacing-tools
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Testing-utilities
    • Math
  • Characters
  • ACL2-built-ins

Upper-case-p

Recognizer for upper case characters

(Upper-case-p x) is true if and only if x is an upper case character, i.e., a member of the list #\A, #\B, ..., #\Z.

The guard for upper-case-p requires its argument to be a standard character (see standard-char-p).

Upper-case-p is a Common Lisp function. See any Common Lisp documentation for more information.

Function: upper-case-p

(defun upper-case-p (x)
       (declare (xargs :guard (and (characterp x)
                                   (standard-char-p x))))
       (and (member x
                    '(#\A #\B #\C #\D #\E #\F #\G
                          #\H #\I #\J #\K #\L #\M #\N #\O #\P #\Q
                          #\R #\S #\T #\U #\V #\W #\X #\Y #\Z))
            t))

Subtopics

Up-alpha-p
Determine if a character is an upper-case letter (A-Z).