Lemmas about make-character-list in the std/strings library.
This function is normally not anything you would ever want to use. It is notable mainly for the role it plays in the completion axiom for coerce.
Theorem:
(defthm make-character-list-when-atom (implies (atom x) (equal (make-character-list x) nil)))
Theorem:
(defthm make-character-list-of-cons (equal (make-character-list (cons a x)) (cons (char-fix a) (make-character-list x))))
Theorem:
(defthm consp-of-make-character-list (equal (consp (make-character-list x)) (consp x)))
Theorem:
(defthm make-character-list-under-iff (iff (make-character-list x) (consp x)))
Theorem:
(defthm len-of-make-character-list (equal (len (make-character-list x)) (len x)))
Theorem:
(defthm make-character-list-when-character-listp (implies (character-listp x) (equal (make-character-list x) x)))
Theorem:
(defthm character-listp-of-make-character-list (character-listp (make-character-list x)))
Theorem:
(defthm make-character-list-of-append (equal (make-character-list (append x y)) (append (make-character-list x) (make-character-list y))))
Theorem:
(defthm make-character-list-of-revappend (equal (make-character-list (revappend x y)) (revappend (make-character-list x) (make-character-list y))))