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