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