Add clauses restricting
Function:
(defun ipasir-set-iff$inline (ipasir out in1 in2) (declare (xargs :stobjs (ipasir))) (declare (xargs :guard (and (litp out) (litp in1) (litp in2)))) (declare (xargs :guard (and (not (eq (ipasir-get-status ipasir) :undef)) (ipasir-empty-new-clause ipasir)))) (let ((__function__ 'ipasir-set-iff)) (declare (ignorable __function__)) (ipasir-set-xor ipasir out (l- in1) in2)))
Theorem:
(defthm ipasir-set-iff-status (b* ((?new-ipasir (ipasir-set-iff$inline ipasir out in1 in2))) (equal (ipasir$a->status new-ipasir) :input)))
Theorem:
(defthm ipasir-set-iff-formula (b* ((?new-ipasir (ipasir-set-iff$inline ipasir out in1 in2))) (implies (syntaxp (not (equal ipasir ''nil))) (equal (ipasir$a->formula new-ipasir) (append (ipasir$a->formula (ipasir-set-iff nil out in1 in2)) (ipasir$a->formula ipasir))))))
Theorem:
(defthm ipasir-set-iff-eval-formula (b* ((?new-ipasir (ipasir-set-iff$inline ipasir out in1 in2))) (equal (eval-formula (ipasir$a->formula new-ipasir) env) (b-and (b-eqv (eval-lit out env) (b-eqv (eval-lit in1 env) (eval-lit in2 env))) (eval-formula (ipasir$a->formula ipasir) env)))))
Theorem:
(defthm ipasir-set-iff-new-clause (b* ((?new-ipasir (ipasir-set-iff$inline ipasir out in1 in2))) (not (ipasir$a->new-clause new-ipasir))))
Theorem:
(defthm ipasir-set-iff-assumption (b* ((?new-ipasir (ipasir-set-iff$inline ipasir out in1 in2))) (equal (ipasir$a->assumption new-ipasir) (ipasir$a->assumption ipasir))))