Stake of a quorum intersection.
We show that the intersection of two quora
that are both subsets of a non-empty committee of total stake
The non-emptiness of the committee is a critical assumption.
If the committee is empty, we have
Let
Furthermore, since both
This fact is proved as a local lemma, which fires as a rewrite rule in the proof of the main theorem.
We start from the previously proved (in committee-members-stake) fact that
from which we get
If we use the quorum inequalities of
But as mentioned earlier we have
that is
and if we use that in the inequality above we get
Since
So we get
Note that committees are defined to be non-empty,
so we have
ACL2's built-in arithmetic,
plus perhaps some other arithmetic rules that happen to be available,
takes care of the reasoning detailed above,
but we need to help things with a few hints.
We expand various definition so to expose max-faulty-for-total,
for which the linear rule
Theorem:
(defthm stake-of-quorum-intersection (implies (and (address-setp vals1) (address-setp vals2) (committee-nonemptyp commtt) (subset vals1 (committee-members commtt)) (subset vals2 (committee-members commtt)) (>= (committee-members-stake vals1 commtt) (committee-quorum-stake commtt)) (>= (committee-members-stake vals2 commtt) (committee-quorum-stake commtt))) (> (committee-members-stake (intersect vals1 vals2) commtt) (committee-max-faulty-stake commtt))) :rule-classes :linear)