Recognizer for fenv structures.
(fenvp x) → *
Function:
(defun fenvp (x) (declare (xargs :guard t)) (let ((__function__ 'fenvp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :fenv) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(constants curve))) :exec (fty::alist-with-carsp (cdr x) '(constants curve))) (b* ((constants (cdr (std::da-nth 0 (cdr x)))) (curve (cdr (std::da-nth 1 (cdr x))))) (and (const-fenvp constants) (curvep curve))))))
Theorem:
(defthm consp-when-fenvp (implies (fenvp x) (consp x)) :rule-classes :compound-recognizer)