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