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