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