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