(match-aig-and x) → (mv okp arg1 arg2)
Function:
(defun match-aig-and$inline (x) (declare (xargs :guard t)) (let ((__function__ 'match-aig-and)) (declare (ignorable __function__)) (if (and (not (aig-atom-p x)) (cdr x)) (mv t (car x) (cdr x)) (mv nil nil nil))))
Theorem:
(defthm match-aig-and-correct (b* (((mv okp arg1 arg2) (match-aig-and x))) (implies okp (equal (aig-eval x env) (and (aig-eval arg1 env) (aig-eval arg2 env))))))
Theorem:
(defthm acl2-count-of-match-aig-and-weak-1 (b* (((mv & arg1 &) (match-aig-and x))) (<= (acl2-count arg1) (acl2-count x))) :rule-classes ((:rewrite) (:linear)))
Theorem:
(defthm acl2-count-of-match-aig-and-weak-2 (b* (((mv & & arg2) (match-aig-and x))) (<= (acl2-count arg2) (acl2-count x))) :rule-classes ((:rewrite) (:linear)))
Theorem:
(defthm acl2-count-of-match-aig-and-strong-1 (b* (((mv okp arg1 &) (match-aig-and x))) (implies okp (< (acl2-count arg1) (acl2-count x)))) :rule-classes ((:rewrite) (:linear)))
Theorem:
(defthm acl2-count-of-match-aig-and-strong-2 (b* (((mv okp & arg2) (match-aig-and x))) (implies okp (< (acl2-count arg2) (acl2-count x)))) :rule-classes ((:rewrite) (:linear)))