• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
      • Events
      • Parallelism
      • History
      • Programming
        • Defun
        • Declare
        • System-utilities
        • Stobj
        • State
        • Mutual-recursion
        • Memoize
        • Mbe
        • Io
        • Defpkg
        • Apply$
        • Loop$
        • Programming-with-state
        • Arrays
        • Characters
        • Time$
        • Defconst
        • Fast-alists
        • Defmacro
        • Loop$-primer
        • Evaluation
        • Guard
        • Equality-variants
        • Compilation
        • Hons
        • ACL2-built-ins
        • Developers-guide
        • System-attachments
        • Advanced-features
        • Set-check-invariant-risk
        • Numbers
        • Efficiency
        • Irrelevant-formals
        • Introduction-to-programming-in-ACL2-for-those-who-know-lisp
        • Redefining-programs
        • Lists
        • Invariant-risk
        • Errors
        • Defabbrev
        • Conses
        • Alists
        • Set-register-invariant-risk
        • Strings
          • Std/strings
            • Pretty-printing
            • Printtree
            • Base64
            • Charset-p
            • Strtok!
            • Cases
            • Concatenation
            • Character-kinds
            • Html-encoding
            • Substrings
            • Strtok
            • Equivalences
            • Url-encoding
            • Lines
            • Explode-implode-equalities
            • Ordering
            • Numbers
              • Decimal
              • Hex
              • Octal
                • Parse-octal-from-string
                • Parse-octal-from-charlist
                • Nat-to-oct-chars
                • Oct-digit-chars-value
                • Oct-digit-char-p
                • Take-leading-oct-digit-chars
                • Oct-digit-char-value
                • Oct-digit-char-list*p
                • Oct-digit-char-listp
                • Skip-leading-octal-digits
                • Oct-digit-string-p
                  • Oct-digit-string-p-aux
                  • Nat-to-oct-string
                  • Strval8
                  • Nat-to-oct-string-list
                  • Revappend-nat-to-oct-chars
                  • Nonzero-oct-digit-char-p
                  • Nat-to-oct-string-size
                  • Octal-digit-to-char
                • Binary
              • Pad-trim
              • Coercion
              • Std/strings/digit-to-char
              • Substitution
              • Symbols
            • String-listp
            • Stringp
            • Length
            • Search
            • Remove-duplicates
            • Position
            • Coerce
            • Concatenate
            • Reverse
            • String
            • Subseq
            • Substitute
            • String-upcase
            • String-downcase
            • Count
            • Char
            • String<
            • String-equal
            • String-utilities
            • String-append
            • String>=
            • String<=
            • String>
            • Hex-digit-char-theorems
            • String-downcase-gen
            • String-upcase-gen
          • Program-wrapper
          • Get-internal-time
          • Basics
          • Packages
          • Oracle-eval
          • Defmacro-untouchable
          • <<
          • Primitive
          • Revert-world
          • Unmemoize
          • Set-duplicate-keys-action
          • Symbols
          • Def-list-constructor
          • Easy-simplify-term
          • Defiteration
          • Fake-oracle-eval
          • Defopen
          • Sleep
        • Operational-semantics
        • Real
        • Start-here
        • Miscellaneous
        • Output-controls
        • Bdd
        • Macros
        • Installation
        • Mailing-lists
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Oct-digit-string-p

    Oct-digit-string-p-aux

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

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