Parse a double quote.
(parse-dquote input) → (mv error? tree? rest-input)
Function:
(defun parse-dquote (input) (declare (xargs :guard (nat-listp input))) (seq input (tree := (parse-exact 34 input)) (return (make-tree-nonleaf :rulename? *dquote* :branches (list (list tree))))))
Theorem:
(defthm maybe-msgp-of-parse-dquote.error? (b* (((mv ?error? ?tree? ?rest-input) (parse-dquote input))) (maybe-msgp error?)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-parse-dquote.tree? (b* (((mv ?error? ?tree? ?rest-input) (parse-dquote input))) (and (tree-optionp tree?) (implies (not error?) (treep tree?)) (implies error? (not tree?)))) :rule-classes :rewrite)
Theorem:
(defthm nat-listp-of-parse-dquote.rest-input (b* (((mv ?error? ?tree? ?rest-input) (parse-dquote input))) (nat-listp rest-input)) :rule-classes :rewrite)
Theorem:
(defthm len-of-parse-dquote-linear (b* (((mv ?error? ?tree? ?rest-input) (parse-dquote input))) (and (<= (len rest-input) (len input)) (implies (not error?) (< (len rest-input) (len input))))) :rule-classes :linear)
Theorem:
(defthm parse-dquote-of-nat-list-fix-input (equal (parse-dquote (nat-list-fix input)) (parse-dquote input)))
Theorem:
(defthm parse-dquote-nat-list-equiv-congruence-on-input (implies (acl2::nat-list-equiv input input-equiv) (equal (parse-dquote input) (parse-dquote input-equiv))) :rule-classes :congruence)