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