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