• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
      • Std/lists
      • Std/alists
      • Obags
      • Std/util
      • Std/strings
        • Pretty-printing
        • Printtree
        • Base64
        • Charset-p
        • Strtok!
        • Cases
        • Concatenation
        • Html-encoding
        • Character-kinds
        • Substrings
        • Strtok
        • Equivalences
        • Url-encoding
        • Lines
        • Explode-implode-equalities
        • Ordering
        • Numbers
          • Decimal
            • Parse-nat-from-string
            • Parse-nat-from-charlist
            • Nat-to-dec-chars
            • Dec-digit-chars-value
            • Dec-digit-char-p
            • Dec-digit-char-listp
            • Take-leading-dec-digit-chars
            • Dec-digit-char-value
            • Dec-digit-char-list*p
            • Nat-to-dec-string-width
            • Nat-to-dec-string
            • Dec-digit-string-p
              • Dec-digit-string-p-aux
              • Strval
              • Skip-leading-digits
              • Nat-to-dec-string-size
              • Int-to-dec-string-width
              • Int-to-dec-string
              • Nonzero-dec-digit-char-p
              • Nat-to-dec-string-list
              • Int-to-dec-string-list
              • Revappend-nat-to-dec-chars
            • Hex
            • Octal
            • Binary
          • 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
      • Community
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Dec-digit-string-p

    Dec-digit-string-p-aux

    Signature
    (dec-digit-string-p-aux x n xl) → *
    Arguments
    x — Guard (stringp x).
    n — Guard (natp n).
    xl — Guard (eql xl (length x)).

    Definitions and Theorems

    Function: dec-digit-string-p-aux

    (defun dec-digit-string-p-aux (x n xl)
     (declare (type string x)
              (type unsigned-byte n)
              (type unsigned-byte xl))
     (declare (xargs :guard (and (stringp x)
                                 (natp n)
                                 (eql xl (length x)))))
     (declare (xargs :split-types t :guard (<= n xl)))
     (let ((acl2::__function__ 'dec-digit-string-p-aux))
       (declare (ignorable acl2::__function__))
       (mbe :logic
            (dec-digit-char-list*p (nthcdr n (explode x)))
            :exec
            (if (eql n xl)
                t
              (and (dec-digit-char-p (char x n))
                   (dec-digit-string-p-aux x (the unsigned-byte (+ 1 n))
                                           xl))))))