Get the formals field from a func.
(func->formals x) → formals
This is an ordinary field accessor created by defprod.
Function:
(defun func->formals$inline (x) (declare (xargs :guard (func-p x))) (declare (xargs :guard t)) (let ((acl2::__function__ 'func->formals)) (declare (ignorable acl2::__function__)) (mbe :logic (b* ((x (and t x))) (decl-list-fix (cdr (std::da-nth 1 x)))) :exec (cdr (std::da-nth 1 x)))))
Theorem:
(defthm decl-listp-of-func->formals (b* ((formals (func->formals$inline x))) (decl-listp formals)) :rule-classes :rewrite)
Theorem:
(defthm func->formals$inline-of-func-fix-x (equal (func->formals$inline (func-fix x)) (func->formals$inline x)))
Theorem:
(defthm func->formals$inline-func-equiv-congruence-on-x (implies (func-equiv x x-equiv) (equal (func->formals$inline x) (func->formals$inline x-equiv))) :rule-classes :congruence)