Token and remainder theorems for vl-lex-plain, automatically generated by def-token/remainder-thms.
Theorem:
(defthm vl-token-p-of-vl-lex-plain (implies (and (force (vl-echarlist-p echars)) (force (vl-plaintokentype-p type))) (equal (vl-token-p (mv-nth 0 (vl-lex-plain echars string type warnings))) (if (mv-nth 0 (vl-lex-plain echars string type warnings)) t nil))))
Theorem:
(defthm true-listp-of-vl-lex-plain (equal (true-listp (mv-nth 1 (vl-lex-plain echars string type warnings))) (true-listp echars)) :rule-classes ((:rewrite) (:type-prescription :corollary (implies (true-listp echars) (true-listp (mv-nth 1 (vl-lex-plain echars string type warnings)))))))
Theorem:
(defthm vl-echarlist-p-of-vl-lex-plain (implies (force (vl-echarlist-p echars)) (equal (vl-echarlist-p (mv-nth 1 (vl-lex-plain echars string type warnings))) t)))
Theorem:
(defthm append-of-vl-lex-plain (implies (and (mv-nth 0 (vl-lex-plain echars string type warnings)) (force (vl-echarlist-p echars)) (force (vl-plaintokentype-p type))) (equal (append (vl-token->etext (mv-nth 0 (vl-lex-plain echars string type warnings))) (mv-nth 1 (vl-lex-plain echars string type warnings))) echars)))
Theorem:
(defthm no-change-loser-of-vl-lex-plain (implies (not (mv-nth 0 (vl-lex-plain echars string type warnings))) (equal (mv-nth 1 (vl-lex-plain echars string type warnings)) echars)))
Theorem:
(defthm acl2-count-of-vl-lex-plain-weak (<= (acl2-count (mv-nth 1 (vl-lex-plain echars string type warnings))) (acl2-count echars)) :rule-classes ((:rewrite) (:linear)))
Theorem:
(defthm acl2-count-of-vl-lex-plain-strong (implies (and (mv-nth 0 (vl-lex-plain echars string type warnings)) t) (< (acl2-count (mv-nth 1 (vl-lex-plain echars string type warnings))) (acl2-count echars))) :rule-classes ((:rewrite) (:linear)))