• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
      • Std/lists
      • Omaps
      • Std/alists
      • Obags
      • Std/util
      • Std/strings
        • Pretty-printing
        • Printtree
        • Base64
        • Charset-p
        • Strtok!
        • Cases
          • Icharlisteqv
          • Upcase-charlist
          • Downcase-charlist
          • Upcase-string
          • Istreqv
          • Downcase-char
          • Upcase-char
          • Ichareqv
          • Downcase-string
            • String-has-some-up-alpha-p
              • Downcase-string-aux
            • Upcase-first-charlist
            • Downcase-first-charlist
            • Downcase-first
            • Upcase-first
            • Down-alpha-p
            • Up-alpha-p
            • Upcase-char-str
            • Downcase-char-str
            • Upcase-string-list
            • Downcase-string-list
          • Concatenation
          • Character-kinds
          • Html-encoding
          • Substrings
          • Strtok
          • Equivalences
          • Url-encoding
          • Lines
          • Explode-implode-equalities
          • Ordering
          • Numbers
          • Pad-trim
          • Coercion
          • Std/strings/digit-to-char
          • Substitution
          • Symbols
        • Std/osets
        • Std/io
        • Std/basic
        • Std/system
        • Std/typed-lists
        • Std/bitsets
        • Std/testing
        • Std/typed-alists
        • Std/stobjs
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Downcase-string

    String-has-some-up-alpha-p

    Signature
    (string-has-some-up-alpha-p x n xl) → *
    Arguments
    x — Guard (stringp x).
    n — Guard (natp n).
    xl — Guard (eql xl (length x)).

    Definitions and Theorems

    Function: string-has-some-up-alpha-p

    (defun string-has-some-up-alpha-p (x n xl)
      (declare (type string x)
               (type (integer 0 *) n)
               (type (integer 0 *) xl))
      (declare (xargs :guard (and (stringp x)
                                  (natp n)
                                  (eql xl (length x)))))
      (declare (xargs :split-types t :guard (<= n xl)))
      (let ((acl2::__function__ 'string-has-some-up-alpha-p))
        (declare (ignorable acl2::__function__))
        (mbe :logic
             (charlist-has-some-up-alpha-p (nthcdr n (explode x)))
             :exec
             (if (eql n xl)
                 nil
               (or (up-alpha-p (char x n))
                   (string-has-some-up-alpha-p x (+ 1 n)
                                               xl))))))