• 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
          • Pad-trim
          • Coercion
            • Explode
              • Explode-implode-equalities
                • Implode-explode-inversion
              • Implode
              • Std/strings/make-character-list
              • Std/strings/coerce
            • 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
      • Std/strings
      • Explode
      • Implode

      Explode-implode-equalities

      Theorems about equalities involving explode and implode.

      Definitions and Theorems

      Theorem: equal-of-implode-left-to-equal-of-explode-right

      (defthm equal-of-implode-left-to-equal-of-explode-right
        (implies (and (character-listp a) (stringp b))
                 (equal (equal (implode a) b)
                        (equal a (explode b)))))

      Theorem: equal-of-implode-right-to-equal-of-explode-left

      (defthm equal-of-implode-right-to-equal-of-explode-left
        (implies (and (character-listp a) (stringp b))
                 (equal (equal a (implode b))
                        (equal (explode a) b))))

      Theorem: equal-of-explode-left-to-equal-of-implode-right

      (defthm equal-of-explode-left-to-equal-of-implode-right
        (implies (and (character-listp a) (stringp b))
                 (equal (equal (explode a) b)
                        (equal a (implode b)))))

      Theorem: equal-of-explode-right-to-equal-of-implode-left

      (defthm equal-of-explode-right-to-equal-of-implode-left
        (implies (and (character-listp a) (stringp b))
                 (equal (equal a (explode b))
                        (equal (implode a) b))))