Get the get field from a path-result-ok.
(path-result-ok->get acl2::x) → get
This is an ordinary field accessor created by fty::defprod.
Function:
(defun path-result-ok->get$inline (acl2::x) (declare (xargs :guard (path-resultp acl2::x))) (declare (xargs :guard (equal (path-result-kind acl2::x) :ok))) (let ((__function__ 'path-result-ok->get)) (declare (ignorable __function__)) (mbe :logic (b* ((acl2::x (and (equal (path-result-kind acl2::x) :ok) acl2::x))) (path-fix acl2::x)) :exec acl2::x)))
Theorem:
(defthm pathp-of-path-result-ok->get (b* ((get (path-result-ok->get$inline acl2::x))) (pathp get)) :rule-classes :rewrite)
Theorem:
(defthm path-result-ok->get$inline-of-path-result-fix-x (equal (path-result-ok->get$inline (path-result-fix acl2::x)) (path-result-ok->get$inline acl2::x)))
Theorem:
(defthm path-result-ok->get$inline-path-result-equiv-congruence-on-x (implies (path-result-equiv acl2::x x-equiv) (equal (path-result-ok->get$inline acl2::x) (path-result-ok->get$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm path-result-ok->get-when-wrong-kind (implies (not (equal (path-result-kind acl2::x) :ok)) (equal (path-result-ok->get acl2::x) (path-fix nil))))