Recognizer for obligation-hyp structures.
(obligation-hypp x) → *
Function:
(defun obligation-hypp (x) (declare (xargs :guard t)) (let ((__function__ 'obligation-hypp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :condition)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((get (std::da-nth 0 (cdr x)))) (expressionp get)))) (t (and (eq (car x) :binding) (and (true-listp (cdr x)) (eql (len (cdr x)) 1)) (b* ((get (std::da-nth 0 (cdr x)))) (bindingp get))))))))
Theorem:
(defthm consp-when-obligation-hypp (implies (obligation-hypp x) (consp x)) :rule-classes :compound-recognizer)