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