Parse the group
(parse-equal-/-equal-slash input) → (mv error? tree? rest-input)
Since
Function:
(defun parse-equal-/-equal-slash (input) (declare (xargs :guard (nat-listp input))) (seq-backtrack input ((tree := (parse-ichar2 #\= #\/ input)) (return (make-tree-nonleaf :rulename? nil :branches (list (list tree))))) ((tree := (parse-ichar #\= input)) (return (make-tree-nonleaf :rulename? nil :branches (list (list tree)))))))
Theorem:
(defthm maybe-msgp-of-parse-equal-/-equal-slash.error? (b* (((mv ?error? ?tree? ?rest-input) (parse-equal-/-equal-slash input))) (maybe-msgp error?)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-parse-equal-/-equal-slash.tree? (b* (((mv ?error? ?tree? ?rest-input) (parse-equal-/-equal-slash input))) (and (tree-optionp tree?) (implies (not error?) (treep tree?)) (implies error? (not tree?)))) :rule-classes :rewrite)
Theorem:
(defthm nat-listp-of-parse-equal-/-equal-slash.rest-input (b* (((mv ?error? ?tree? ?rest-input) (parse-equal-/-equal-slash input))) (nat-listp rest-input)) :rule-classes :rewrite)
Theorem:
(defthm len-of-parse-equal-/-equal-slash-linear (b* (((mv ?error? ?tree? ?rest-input) (parse-equal-/-equal-slash input))) (and (<= (len rest-input) (len input)) (implies (not error?) (< (len rest-input) (len input))))) :rule-classes :linear)
Theorem:
(defthm parse-equal-/-equal-slash-of-nat-list-fix-input (equal (parse-equal-/-equal-slash (nat-list-fix input)) (parse-equal-/-equal-slash input)))
Theorem:
(defthm parse-equal-/-equal-slash-nat-list-equiv-congruence-on-input (implies (acl2::nat-list-equiv input input-equiv) (equal (parse-equal-/-equal-slash input) (parse-equal-/-equal-slash input-equiv))) :rule-classes :congruence)