• 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
        • Concatenation
        • Character-kinds
        • Html-encoding
        • 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
              • Hex-digit-char-theorems
              • Take-leading-hex-digit-chars
              • Hexify
              • Hex-digit-char-listp
              • Hex-digit-char-list*p
              • Hex-digit-string-p
              • 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
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Strings
    • Hex-digit-char-value
    • Hex-digit-to-char

    Hex-digit-char-theorems

    Some theorems about the library functions str::hex-digit-char-value and str::hex-digit-to-char.

    Definitions and Theorems

    Theorem: hex-digit-char-value-of-hex-digit-to-char

    (defthm str::hex-digit-char-value-of-hex-digit-to-char
      (implies
           (integer-range-p 0 16 n)
           (equal (str::hex-digit-char-value (str::hex-digit-to-char n))
                  n)))

    Theorem: hex-digit-to-char-of-hex-digit-char-value

    (defthm str::hex-digit-to-char-of-hex-digit-char-value
     (implies
        (str::hex-digit-char-p char)
        (equal (str::hex-digit-to-char (str::hex-digit-char-value char))
               (str::upcase-char char))))