(no-others-in-hole tweety birds hole) → clauses
Function:
(defun no-others-in-hole (tweety birds hole) (declare (xargs :guard (and (natp tweety) (natp birds) (natp hole)))) (let ((__function__ 'no-others-in-hole)) (declare (ignorable __function__)) (b* (((when (zp birds)) nil) (birds (- birds 1)) ((when (eql tweety birds)) (no-others-in-hole tweety birds hole))) (cons (not-both-in-hole tweety birds hole) (no-others-in-hole tweety birds hole)))))
Theorem:
(defthm lit-list-listp-of-no-others-in-hole (b* ((clauses (no-others-in-hole tweety birds hole))) (lit-list-listp clauses)) :rule-classes :rewrite)