Lift atj-char-to-jhexcode to lists.
(atj-chars-to-jhexcodes x) → exprs
This is an ordinary std::defprojection.
Function:
(defun atj-chars-to-jhexcodes-exec (x acc) (declare (xargs :guard (character-listp x))) (let ((__function__ 'atj-chars-to-jhexcodes-exec)) (declare (ignorable __function__)) (if (consp x) (atj-chars-to-jhexcodes-exec (cdr x) (cons (atj-char-to-jhexcode (car x)) acc)) acc)))
Function:
(defun atj-chars-to-jhexcodes-nrev (x acl2::nrev) (declare (xargs :stobjs (acl2::nrev))) (declare (xargs :guard (character-listp x))) (let ((__function__ 'atj-chars-to-jhexcodes-nrev)) (declare (ignorable __function__)) (if (atom x) (acl2::nrev-fix acl2::nrev) (let ((acl2::nrev (acl2::nrev-push (atj-char-to-jhexcode (car x)) acl2::nrev))) (atj-chars-to-jhexcodes-nrev (cdr x) acl2::nrev)))))
Function:
(defun atj-chars-to-jhexcodes (x) (declare (xargs :guard (character-listp x))) (let ((__function__ 'atj-chars-to-jhexcodes)) (declare (ignorable __function__)) (mbe :logic (if (consp x) (cons (atj-char-to-jhexcode (car x)) (atj-chars-to-jhexcodes (cdr x))) nil) :exec (if (atom x) nil (acl2::with-local-nrev (atj-chars-to-jhexcodes-nrev x acl2::nrev))))))
Theorem:
(defthm jexpr-listp-of-atj-chars-to-jhexcodes (b* ((exprs (atj-chars-to-jhexcodes x))) (jexpr-listp exprs)) :rule-classes :rewrite)
Theorem:
(defthm atj-chars-to-jhexcodes-nrev-removal (equal (atj-chars-to-jhexcodes-nrev acl2::x acl2::nrev) (append acl2::nrev (atj-chars-to-jhexcodes acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm atj-chars-to-jhexcodes-exec-removal (equal (atj-chars-to-jhexcodes-exec acl2::x acl2::acc) (revappend (atj-chars-to-jhexcodes acl2::x) acl2::acc)) :rule-classes ((:rewrite)))
Theorem:
(defthm atj-chars-to-jhexcodes-of-take (implies (<= (nfix acl2::n) (len acl2::x)) (equal (atj-chars-to-jhexcodes (take acl2::n acl2::x)) (take acl2::n (atj-chars-to-jhexcodes acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm set-equiv-congruence-over-atj-chars-to-jhexcodes (implies (set-equiv acl2::x acl2::y) (set-equiv (atj-chars-to-jhexcodes acl2::x) (atj-chars-to-jhexcodes acl2::y))) :rule-classes ((:congruence)))
Theorem:
(defthm subsetp-of-atj-chars-to-jhexcodes-when-subsetp (implies (subsetp acl2::x acl2::y) (subsetp (atj-chars-to-jhexcodes acl2::x) (atj-chars-to-jhexcodes acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm member-of-atj-char-to-jhexcode-in-atj-chars-to-jhexcodes (implies (member acl2::k acl2::x) (member (atj-char-to-jhexcode acl2::k) (atj-chars-to-jhexcodes acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm atj-chars-to-jhexcodes-of-rev (equal (atj-chars-to-jhexcodes (rev acl2::x)) (rev (atj-chars-to-jhexcodes acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm atj-chars-to-jhexcodes-of-list-fix (equal (atj-chars-to-jhexcodes (list-fix acl2::x)) (atj-chars-to-jhexcodes acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm atj-chars-to-jhexcodes-of-append (equal (atj-chars-to-jhexcodes (append acl2::a acl2::b)) (append (atj-chars-to-jhexcodes acl2::a) (atj-chars-to-jhexcodes acl2::b))) :rule-classes ((:rewrite)))
Theorem:
(defthm cdr-of-atj-chars-to-jhexcodes (equal (cdr (atj-chars-to-jhexcodes acl2::x)) (atj-chars-to-jhexcodes (cdr acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm car-of-atj-chars-to-jhexcodes (equal (car (atj-chars-to-jhexcodes acl2::x)) (and (consp acl2::x) (atj-char-to-jhexcode (car acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm atj-chars-to-jhexcodes-under-iff (iff (atj-chars-to-jhexcodes acl2::x) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm consp-of-atj-chars-to-jhexcodes (equal (consp (atj-chars-to-jhexcodes acl2::x)) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm len-of-atj-chars-to-jhexcodes (equal (len (atj-chars-to-jhexcodes acl2::x)) (len acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm true-listp-of-atj-chars-to-jhexcodes (true-listp (atj-chars-to-jhexcodes acl2::x)) :rule-classes :type-prescription)
Theorem:
(defthm atj-chars-to-jhexcodes-when-not-consp (implies (not (consp acl2::x)) (equal (atj-chars-to-jhexcodes acl2::x) nil)) :rule-classes ((:rewrite)))
Theorem:
(defthm atj-chars-to-jhexcodes-of-cons (equal (atj-chars-to-jhexcodes (cons acl2::a acl2::b)) (cons (atj-char-to-jhexcode acl2::a) (atj-chars-to-jhexcodes acl2::b))) :rule-classes ((:rewrite)))