Prefix and remainder theorems for vl-read-binary-value, automatically generated by def-prefix/remainder-thms.
Theorem:
(defthm prefix-of-vl-read-binary-value (and (true-listp (mv-nth 0 (vl-read-binary-value echars))) (implies (force (vl-echarlist-p echars)) (vl-echarlist-p (mv-nth 0 (vl-read-binary-value echars))))) :rule-classes ((:rewrite) (:type-prescription :corollary (true-listp (mv-nth 0 (vl-read-binary-value echars))))))
Theorem:
(defthm remainder-of-vl-read-binary-value (and (equal (true-listp (mv-nth 1 (vl-read-binary-value echars))) (true-listp echars)) (implies (force (vl-echarlist-p echars)) (vl-echarlist-p (mv-nth 1 (vl-read-binary-value echars))))) :rule-classes ((:rewrite) (:type-prescription :corollary (implies (true-listp echars) (true-listp (mv-nth 1 (vl-read-binary-value echars)))))))
Theorem:
(defthm append-of-vl-read-binary-value (equal (append (mv-nth 0 (vl-read-binary-value echars)) (mv-nth 1 (vl-read-binary-value echars))) echars))
Theorem:
(defthm no-change-loser-of-vl-read-binary-value (implies (not (mv-nth 0 (vl-read-binary-value echars))) (equal (mv-nth 1 (vl-read-binary-value echars)) echars)))
Theorem:
(defthm acl2-count-of-vl-read-binary-value-weak (<= (acl2-count (mv-nth 1 (vl-read-binary-value echars))) (acl2-count echars)) :rule-classes ((:rewrite) (:linear)))
Theorem:
(defthm acl2-count-of-vl-read-binary-value-strong (implies (mv-nth 0 (vl-read-binary-value echars)) (< (acl2-count (mv-nth 1 (vl-read-binary-value echars))) (acl2-count echars))) :rule-classes ((:rewrite) (:linear)))