Recognizer for lambda-binding structures.
(lambda-binding-p x) → *
Function:
(defun lambda-binding-p (x) (declare (xargs :guard t)) (let ((acl2::__function__ 'lambda-binding-p)) (declare (ignorable acl2::__function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(formals actuals))) :exec (fty::alist-with-carsp x '(formals actuals))) (b* ((formals (cdr (std::da-nth 0 x))) (actuals (cdr (std::da-nth 1 x)))) (and (symbol-listp formals) (pseudo-term-listp actuals) (equal (len formals) (len actuals)))))))
Theorem:
(defthm consp-when-lambda-binding-p (implies (lambda-binding-p x) (consp x)) :rule-classes :compound-recognizer)