• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
          • Name-database
          • Vl-gc
          • Symbol-list-names
          • Ints-from
          • Nats-from
          • Make-lookup-alist
          • Redundant-mergesort
          • Longest-common-prefix
          • Vl-remove-keys
          • Vl-plural-p
          • Vl-merge-contiguous-indices
          • Sum-nats
          • Vl-edition-p
          • Vl-maybe-integer-listp
          • Fast-memberp
          • Nat-listp
          • Max-nats
          • Longest-common-prefix-list
          • Character-list-listp
          • Vl-character-list-list-values-p
          • Remove-from-alist
          • Prefix-of-eachp
          • Vl-string-keys-p
          • Vl-maybe-nat-listp
          • Vl-string-list-values-p
          • String-list-listp
          • Vl-string-values-p
          • Explode-list
            • True-list-listp
            • Symbol-list-listp
            • All-have-len
            • Pos-listp
            • Min-nats
            • Debuggable-and
            • Vl-starname
            • Remove-equal-without-guard
            • String-fix
            • Anyp
            • Vl-maybe-string-list
            • Longer-than-p
            • Fast-alist-free-each-alist-val
            • Not*
            • Free-list-of-fast-alists
            • *nls*
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Utilities

    Explode-list

    Coerce a list of strings into a character-list-listp.

    Signature
    (explode-list x) → ans
    Arguments
    x — Guard (string-listp x).
    Returns
    ans — Type (character-list-listp ans).

    Definitions and Theorems

    Function: explode-list

    (defun explode-list (x)
           (declare (xargs :guard (string-listp x)))
           (let ((__function__ 'explode-list))
                (declare (ignorable __function__))
                (if (atom x)
                    nil
                    (cons (explode (car x))
                          (explode-list (cdr x))))))

    Theorem: character-list-listp-of-explode-list

    (defthm character-list-listp-of-explode-list
            (b* ((ans (explode-list x)))
                (character-list-listp ans))
            :rule-classes :rewrite)

    Theorem: explode-list-when-atom

    (defthm explode-list-when-atom
            (implies (atom x)
                     (equal (explode-list x) nil)))

    Theorem: explode-list-of-cons

    (defthm explode-list-of-cons
            (equal (explode-list (cons a x))
                   (cons (explode a) (explode-list x))))