Abstract an
(abs-assert-call tree) → cons
Function:
(defun abs-assert-call (tree) (declare (xargs :guard (abnf::treep tree))) (let ((__function__ 'abs-assert-call)) (declare (ignorable __function__)) (b* (((okf (abnf::tree-list-tuple4 sub)) (abnf::check-tree-nonleaf-4 tree "assert-call")) ((okf tree) (abnf::check-tree-list-1 sub.1st)) ((okf &) (abnf::check-tree-schars tree "assert")) ((okf tree) (abnf::check-tree-list-1 sub.2nd)) ((okf &) (abnf::check-tree-ichars tree "(")) ((okf tree) (abnf::check-tree-list-1 sub.3rd)) ((okf expr) (abs-expression tree)) ((okf tree) (abnf::check-tree-list-1 sub.4th)) ((okf &) (abnf::check-tree-ichars tree ")"))) (console-assert expr))))
Theorem:
(defthm console-resultp-of-abs-assert-call (b* ((cons (abs-assert-call tree))) (console-resultp cons)) :rule-classes :rewrite)
Theorem:
(defthm abs-assert-call-of-tree-fix-tree (equal (abs-assert-call (abnf::tree-fix tree)) (abs-assert-call tree)))
Theorem:
(defthm abs-assert-call-tree-equiv-congruence-on-tree (implies (abnf::tree-equiv tree tree-equiv) (equal (abs-assert-call tree) (abs-assert-call tree-equiv))) :rule-classes :congruence)