Stake of a member of the committee.
(committee-member-stake member commtt) → stake
We look up the member's address in the map.
Function:
(defun committee-member-stake (member commtt) (declare (xargs :guard (and (addressp member) (committeep commtt)))) (declare (xargs :guard (in (address-fix member) (committee-members commtt)))) (let ((__function__ 'committee-member-stake)) (declare (ignorable __function__)) (pos-fix (omap::lookup (address-fix member) (committee->members-with-stake commtt)))))
Theorem:
(defthm posp-of-committee-member-stake (b* ((stake (committee-member-stake member commtt))) (posp stake)) :rule-classes (:rewrite :type-prescription))
Theorem:
(defthm committee-member-stake-of-address-fix-member (equal (committee-member-stake (address-fix member) commtt) (committee-member-stake member commtt)))
Theorem:
(defthm committee-member-stake-address-equiv-congruence-on-member (implies (address-equiv member member-equiv) (equal (committee-member-stake member commtt) (committee-member-stake member-equiv commtt))) :rule-classes :congruence)
Theorem:
(defthm committee-member-stake-of-committee-fix-commtt (equal (committee-member-stake member (committee-fix commtt)) (committee-member-stake member commtt)))
Theorem:
(defthm committee-member-stake-committee-equiv-congruence-on-commtt (implies (committee-equiv commtt commtt-equiv) (equal (committee-member-stake member commtt) (committee-member-stake member commtt-equiv))) :rule-classes :congruence)