Abstract a
(abs-mapping-declaration tree) → mappingdef
Function:
(defun abs-mapping-declaration (tree) (declare (xargs :guard (abnf::treep tree))) (let ((__function__ 'abs-mapping-declaration)) (declare (ignorable __function__)) (b* (((okf (abnf::tree-list-tuple7 sub)) (abnf::check-tree-nonleaf-7 tree "mapping-declaration")) ((okf tree) (abnf::check-tree-list-1 sub.1st)) ((okf &) (abnf::check-tree-schars tree "mapping")) ((okf tree) (abnf::check-tree-list-1 sub.2nd)) ((okf name) (abs-identifier tree)) ((okf tree) (abnf::check-tree-list-1 sub.3rd)) ((okf &) (abnf::check-tree-schars tree ":")) ((okf tree) (abnf::check-tree-list-1 sub.4th)) ((okf domtype) (abs-type tree)) ((okf tree) (abnf::check-tree-list-1 sub.5th)) ((okf &) (abnf::check-tree-schars tree "=>")) ((okf tree) (abnf::check-tree-list-1 sub.6th)) ((okf rngtype) (abs-type tree)) ((okf tree) (abnf::check-tree-list-1 sub.7th)) ((okf &) (abnf::check-tree-schars tree ";"))) (make-mappingdecl :name name :domain-type domtype :range-type rngtype))))
Theorem:
(defthm mappingdecl-resultp-of-abs-mapping-declaration (b* ((mappingdef (abs-mapping-declaration tree))) (mappingdecl-resultp mappingdef)) :rule-classes :rewrite)
Theorem:
(defthm abs-mapping-declaration-of-tree-fix-tree (equal (abs-mapping-declaration (abnf::tree-fix tree)) (abs-mapping-declaration tree)))
Theorem:
(defthm abs-mapping-declaration-tree-equiv-congruence-on-tree (implies (abnf::tree-equiv tree tree-equiv) (equal (abs-mapping-declaration tree) (abs-mapping-declaration tree-equiv))) :rule-classes :congruence)