Initial sponge state.
The state vector consists of all zeros;
we pass
Function:
(defun init-sponge (size) (declare (xargs :guard (natp size))) (let ((__function__ 'init-sponge)) (declare (ignorable __function__)) (make-sponge :stat (repeat size 0) :mode (mode-absorb) :index 0)))
Theorem:
(defthm spongep-of-init-sponge (b* ((sponge (init-sponge size))) (spongep sponge)) :rule-classes :rewrite)
Theorem:
(defthm sponge-validp-of-init-sponge (sponge-validp (init-sponge (param->size param)) param))