Check if a term is a call of not.
(check-not-call term) → (mv yes/no arg)
If it is, the first result is
Function:
(defun check-not-call (term) (declare (xargs :guard (pseudo-termp term))) (let ((__function__ 'check-not-call)) (declare (ignorable __function__)) (case-match term (('not arg) (mv t arg)) (& (mv nil nil)))))
Theorem:
(defthm booleanp-of-check-not-call.yes/no (b* (((mv ?yes/no ?arg) (check-not-call term))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm pseudo-termp-of-check-not-call.arg (implies (and (pseudo-termp term)) (b* (((mv ?yes/no ?arg) (check-not-call term))) (pseudo-termp arg))) :rule-classes :rewrite)
Theorem:
(defthm acl2-count-of-check-not-call (b* (((mv ?yes/no ?arg) (check-not-call term))) (implies yes/no (< (acl2-count arg) (acl2-count term)))) :rule-classes :linear)