Parse a concatenation.
(parse-concatenation input) → (mv error? tree? rest-input)
The linear rules below are used in the guard verification proof.
Function:
(defun parse-concatenation (input) (declare (xargs :guard (nat-listp input))) (seq input (tree :s= (parse-repetition input)) (trees := (parse-conc-rest input)) (return (make-tree-nonleaf :rulename? *concatenation* :branches (list (list tree) trees)))))
Theorem:
(defthm len-of-parse-concatenation-linear-1 (<= (len (mv-nth 2 (parse-concatenation input))) (len input)) :rule-classes :linear)
Theorem:
(defthm len-of-parse-concatenation-linear-2 (implies (not (mv-nth 0 (parse-concatenation input))) (< (len (mv-nth 2 (parse-concatenation input))) (len input))) :rule-classes :linear)