Completeness theorem for parse-concatenation.
Theorem:
(defthm parse-concatenation-when-tree-match (implies (and (tree-match-element-p tree (element-rulename *concatenation*) *grammar*) (tree-terminatedp tree) (mv-nth 0 (parse-conc-rest-comp rest-input)) (mv-nth 0 (parse-alpha/digit/dash rest-input)) (mv-nth 0 (parse-bit rest-input)) (mv-nth 0 (parse-digit rest-input)) (mv-nth 0 (parse-hexdig rest-input)) (mv-nth 0 (parse-ichar #\. rest-input)) (mv-nth 0 (parse-ichar #\- rest-input))) (equal (parse-concatenation (append (tree->string tree) rest-input)) (mv nil (tree-fix tree) (nat-list-fix rest-input)))))