• 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
          • Hex
            • Parse-hex-from-string
            • Hex-digit-char-p
            • Nat-to-hex-chars
            • Parse-hex-from-charlist
            • Hex-digit-chars-value
            • Hex-digit-char-value
            • Take-leading-hex-digit-chars
            • Hexify
            • Hex-digit-char-listp
            • Hex-digit-char-list*p
            • Hex-digit-string-p
              • Hex-digit-string-p-aux
              • Strval16
              • Skip-leading-hex-digits
              • Nat-to-hex-string
              • Hexify-width
              • Nonzero-hex-digit-char-p
              • Nat-to-hex-string-list
              • Revappend-nat-to-hex-chars
              • Hex-digit-to-char
              • Nat-to-hex-string-size
            • 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
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Hex-digit-string-p

    Hex-digit-string-p-aux

    Signature
    (hex-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: hex-digit-string-p-aux

    (defun hex-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__ 'hex-digit-string-p-aux))
       (declare (ignorable acl2::__function__))
       (mbe :logic
            (hex-digit-char-list*p (nthcdr n (explode x)))
            :exec
            (if (eql n xl)
                t
              (and (hex-digit-char-p (char x n))
                   (hex-digit-string-p-aux x (the unsigned-byte (+ 1 n))
                                           xl))))))