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