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