Total stake of validators in a committee.
(committee-total-stake commtt) → total
This is
Function:
(defun committee-total-stake (commtt) (declare (xargs :guard (committeep commtt))) (let ((__function__ 'committee-total-stake)) (declare (ignorable __function__)) (committee-members-stake (committee-members commtt) commtt)))
Theorem:
(defthm natp-of-committee-total-stake (b* ((total (committee-total-stake commtt))) (natp total)) :rule-classes (:rewrite :type-prescription))
Theorem:
(defthm posp-of-committee-total-stake (implies (committee-nonemptyp commtt) (b* ((total (committee-total-stake commtt))) (posp total))) :rule-classes (:rewrite :type-prescription))
Theorem:
(defthm committee-total-stake-of-committee-fix-commtt (equal (committee-total-stake (committee-fix commtt)) (committee-total-stake commtt)))
Theorem:
(defthm committee-total-stake-committee-equiv-congruence-on-commtt (implies (committee-equiv commtt commtt-equiv) (equal (committee-total-stake commtt) (committee-total-stake commtt-equiv))) :rule-classes :congruence)