Completeness property for parse-conc-rest-comp.
Theorem:
(defthm pred-conc-rest-comp-necc (implies (pred-conc-rest-comp input) (implies (and (tree-match-element-p tree (!_ (/_ (1*_ *c-wsp*) *repetition*)) *grammar*) (tree-terminatedp tree) (nat-listp 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 input (append (tree->string tree) rest-input))) (equal (parse-conc-rest-comp (append (tree->string tree) rest-input)) (mv nil (tree-fix tree) rest-input)))))
Theorem:
(defthm booleanp-of-pred-conc-rest-comp (b* ((bool (pred-conc-rest-comp input))) (booleanp bool)) :rule-classes :type-prescription)