Lemmas showing that equivalence of 4v-operations to faig-constructors.
Function:
(defun apply-to-args (fn args) (declare (xargs :guard t)) (if (atom args) nil (cons (list fn (car args)) (apply-to-args fn (cdr args)))))
Theorem:
(defthm 4v->faig-const-of-4v-fix (equal (4v->faig-const (4v-fix a)) (faig-const-fix (4v->faig-const a))))
Theorem:
(defthm 4v->faig-const-of-4v-unfloat (equal (4v->faig-const (4v-unfloat a)) (f-aig-unfloat (4v->faig-const a))))
Theorem:
(defthm 4v->faig-const-of-4v-not (equal (4v->faig-const (4v-not a)) (f-aig-not (4v->faig-const a))))
Theorem:
(defthm 4v->faig-const-of-4v-xdet (equal (4v->faig-const (4v-xdet a)) (f-aig-xdet (4v->faig-const a))))
Theorem:
(defthm 4v->faig-const-of-4v-and (equal (4v->faig-const (4v-and a b)) (f-aig-and (4v->faig-const a) (4v->faig-const b))))
Theorem:
(defthm 4v->faig-const-of-4v-or (equal (4v->faig-const (4v-or a b)) (f-aig-or (4v->faig-const a) (4v->faig-const b))))
Theorem:
(defthm 4v->faig-const-of-4v-xor (equal (4v->faig-const (4v-xor a b)) (f-aig-xor (4v->faig-const a) (4v->faig-const b))))
Theorem:
(defthm 4v->faig-const-of-4v-iff (equal (4v->faig-const (4v-iff a b)) (f-aig-iff (4v->faig-const a) (4v->faig-const b))))
Theorem:
(defthm 4v->faig-const-of-4v-ite (equal (4v->faig-const (4v-ite a b c)) (f-aig-ite (4v->faig-const a) (4v->faig-const b) (4v->faig-const c))))
Theorem:
(defthm 4v->faig-const-of-4v-ite* (equal (4v->faig-const (4v-ite* a b c)) (f-aig-ite* (4v->faig-const a) (4v->faig-const b) (4v->faig-const c))))
Theorem:
(defthm 4v->faig-const-of-4v-zif (equal (4v->faig-const (4v-zif a b c)) (f-aig-zif (4v->faig-const a) (4v->faig-const b) (4v->faig-const c))))
Theorem:
(defthm 4v->faig-const-of-4v-tristate (equal (4v->faig-const (4v-tristate c a)) (t-aig-tristate (4v->faig-const c) (4v->faig-const a))))
Theorem:
(defthm 4v->faig-const-of-4v-pullup (equal (4v->faig-const (4v-pullup a)) (f-aig-pullup (4v->faig-const a))))
Theorem:
(defthm 4v->faig-const-of-4v-res (equal (4v->faig-const (4v-res a b)) (f-aig-res (4v->faig-const a) (4v->faig-const b))))