(vl-read-octal-value echars) → (mv prefix remainder)
Embedded spaces are not allowed.
Function:
(defun vl-read-octal-value$inline (echars) (declare (xargs :guard (vl-echarlist-p echars))) (let ((__function__ 'vl-read-octal-value)) (declare (ignorable __function__)) (if (or (atom echars) (not (vl-octal-digit-echar-p (car echars)))) (mv nil echars) (vl-read-while-underscore-or-octal-digit echars))))
Theorem:
(defthm prefix-of-vl-read-octal-value (and (true-listp (mv-nth 0 (vl-read-octal-value echars))) (implies (force (vl-echarlist-p echars)) (vl-echarlist-p (mv-nth 0 (vl-read-octal-value echars))))) :rule-classes ((:rewrite) (:type-prescription :corollary (true-listp (mv-nth 0 (vl-read-octal-value echars))))))
Theorem:
(defthm remainder-of-vl-read-octal-value (and (equal (true-listp (mv-nth 1 (vl-read-octal-value echars))) (true-listp echars)) (implies (force (vl-echarlist-p echars)) (vl-echarlist-p (mv-nth 1 (vl-read-octal-value echars))))) :rule-classes ((:rewrite) (:type-prescription :corollary (implies (true-listp echars) (true-listp (mv-nth 1 (vl-read-octal-value echars)))))))
Theorem:
(defthm append-of-vl-read-octal-value (equal (append (mv-nth 0 (vl-read-octal-value echars)) (mv-nth 1 (vl-read-octal-value echars))) echars))
Theorem:
(defthm no-change-loser-of-vl-read-octal-value (implies (not (mv-nth 0 (vl-read-octal-value echars))) (equal (mv-nth 1 (vl-read-octal-value echars)) echars)))
Theorem:
(defthm acl2-count-of-vl-read-octal-value-weak (<= (acl2-count (mv-nth 1 (vl-read-octal-value echars))) (acl2-count echars)) :rule-classes ((:rewrite) (:linear)))
Theorem:
(defthm acl2-count-of-vl-read-octal-value-strong (implies (mv-nth 0 (vl-read-octal-value echars)) (< (acl2-count (mv-nth 1 (vl-read-octal-value echars))) (acl2-count echars))) :rule-classes ((:rewrite) (:linear)))