Abstract a
(abs-struct-component-declaration tree) → ret-comp
Function:
(defun abs-struct-component-declaration (tree) (declare (xargs :guard (abnf::treep tree))) (let ((__function__ 'abs-struct-component-declaration)) (declare (ignorable __function__)) (b* (((okf (abnf::tree-list-tuple3 sub)) (abnf::check-tree-nonleaf-3 tree "struct-component-declaration")) ((okf tree) (abnf::check-tree-list-1 sub.1st)) ((okf name) (abs-identifier tree)) ((okf tree) (abnf::check-tree-list-1 sub.2nd)) ((okf &) (abnf::check-tree-schars tree ":")) ((okf tree) (abnf::check-tree-list-1 sub.3rd)) ((okf type) (abs-type tree))) (make-compdecl :name name :type type))))
Theorem:
(defthm compdecl-resultp-of-abs-struct-component-declaration (b* ((ret-comp (abs-struct-component-declaration tree))) (compdecl-resultp ret-comp)) :rule-classes :rewrite)
Theorem:
(defthm abs-struct-component-declaration-of-tree-fix-tree (equal (abs-struct-component-declaration (abnf::tree-fix tree)) (abs-struct-component-declaration tree)))
Theorem:
(defthm abs-struct-component-declaration-tree-equiv-congruence-on-tree (implies (abnf::tree-equiv tree tree-equiv) (equal (abs-struct-component-declaration tree) (abs-struct-component-declaration tree-equiv))) :rule-classes :congruence)