Parse a
(lex-commit-op abnf::input) → (mv abnf::tree abnf::rest-input)
Function:
(defun lex-commit-op (abnf::input) (declare (xargs :guard (nat-listp abnf::input))) (let ((__function__ 'lex-commit-op)) (declare (ignorable __function__)) (b* (((mv abnf::treess abnf::input) (b* (((mv abnf::treess1 abnf::input1) (b* (((mv abnf::tree abnf::input) (abnf::parse-schars "commit.bhp" abnf::input)) ((when (reserrp abnf::tree)) (mv (reserrf-push abnf::tree) abnf::input)) (abnf::trees1 (list abnf::tree)) ((mv abnf::tree abnf::input) (lex-group-bhp-sizes abnf::input)) ((when (reserrp abnf::tree)) (mv (reserrf-push abnf::tree) abnf::input)) (abnf::trees2 (list abnf::tree)) (abnf::treess (list abnf::trees1 abnf::trees2))) (mv abnf::treess abnf::input))) ((when (not (reserrp abnf::treess1))) (mv abnf::treess1 abnf::input1)) ((mv abnf::treess2 abnf::input1) (b* (((mv abnf::tree abnf::input) (abnf::parse-schars "commit.ped" abnf::input)) ((when (reserrp abnf::tree)) (mv (reserrf-push abnf::tree) abnf::input)) (abnf::trees1 (list abnf::tree)) ((mv abnf::tree abnf::input) (lex-group-ped-sizes abnf::input)) ((when (reserrp abnf::tree)) (mv (reserrf-push abnf::tree) abnf::input)) (abnf::trees2 (list abnf::tree)) (abnf::treess (list abnf::trees1 abnf::trees2))) (mv abnf::treess abnf::input))) ((when (not (reserrp abnf::treess2))) (mv abnf::treess2 abnf::input1))) (mv (reserrf (list :found (list abnf::treess1 abnf::treess2) :required '(((:repetition (:repeat 1 (:finite 1)) (:char-val (:sensitive "commit.bhp"))) (:repetition (:repeat 1 (:finite 1)) (:group (((:repetition (:repeat 1 (:finite 1)) (:char-val (:insensitive nil "256")))) ((:repetition (:repeat 1 (:finite 1)) (:char-val (:insensitive nil "512")))) ((:repetition (:repeat 1 (:finite 1)) (:char-val (:insensitive nil "768")))) ((:repetition (:repeat 1 (:finite 1)) (:char-val (:insensitive nil "1024")))))))) ((:repetition (:repeat 1 (:finite 1)) (:char-val (:sensitive "commit.ped"))) (:repetition (:repeat 1 (:finite 1)) (:group (((:repetition (:repeat 1 (:finite 1)) (:char-val (:insensitive nil "64")))) ((:repetition (:repeat 1 (:finite 1)) (:char-val (:insensitive nil "128"))))))))))) abnf::input))) ((when (reserrp abnf::treess)) (mv (reserrf-push abnf::treess) (nat-list-fix abnf::input)))) (mv (abnf::make-tree-nonleaf :rulename? (abnf::rulename "commit-op") :branches abnf::treess) abnf::input))))
Theorem:
(defthm tree-resultp-of-lex-commit-op.tree (b* (((mv abnf::?tree abnf::?rest-input) (lex-commit-op abnf::input))) (abnf::tree-resultp abnf::tree)) :rule-classes :rewrite)
Theorem:
(defthm nat-listp-of-lex-commit-op.rest-input (b* (((mv abnf::?tree abnf::?rest-input) (lex-commit-op abnf::input))) (nat-listp abnf::rest-input)) :rule-classes :rewrite)
Theorem:
(defthm len-of-lex-commit-op-<= (b* (((mv abnf::?tree abnf::?rest-input) (lex-commit-op abnf::input))) (<= (len abnf::rest-input) (len abnf::input))) :rule-classes :linear)
Theorem:
(defthm len-of-lex-commit-op-< (b* (((mv abnf::?tree abnf::?rest-input) (lex-commit-op abnf::input))) (implies (not (reserrp abnf::tree)) (< (len abnf::rest-input) (len abnf::input)))) :rule-classes :linear)
Theorem:
(defthm lex-commit-op-of-nat-list-fix-input (equal (lex-commit-op (nat-list-fix abnf::input)) (lex-commit-op abnf::input)))
Theorem:
(defthm lex-commit-op-nat-list-equiv-congruence-on-input (implies (acl2::nat-list-equiv abnf::input input-equiv) (equal (lex-commit-op abnf::input) (lex-commit-op input-equiv))) :rule-classes :congruence)