Pretty-print any ACL2 object, in reverse order, onto a reverse-order character list.
(revappend-pretty x
acc &key (config '*default-printconfig*)
(col '0)
(eviscp 'nil))
→
new-accThis is very similar to pretty, except that it can be used to extend existing character lists. See for instance the discussion in revappend-chars.
Function:
(defun revappend-pretty-fn (x acc config col eviscp) (declare (xargs :guard (and (printconfig-p config) (natp col) (booleanp eviscp)))) (let ((acl2::__function__ 'revappend-pretty)) (declare (ignorable acl2::__function__)) (ppr x col config eviscp acc)))
Theorem:
(defthm character-listp-of-revappend-pretty (implies (character-listp acc) (b* ((new-acc (revappend-pretty-fn x acc config col eviscp))) (character-listp new-acc))) :rule-classes :rewrite)