Majority votes with faulty voters #
Two facts about the strict majority BitString.strictMajorityOn s vote of the votes in a finite
set s, used by majority-vote arguments such as Byzantine agreement: it depends only on the votes
in s (BitString.strictMajorityOn_congr), and it is v when every vote outside a set F of
faulty voters is v and the voters in s outside F are more than half of s
(BitString.strictMajorityOn_eq_of_forall_notMem). The faulty set F need not lie in s.
Main results #
Cslib.BitString.strictMajorityOn_congr: the majority depends only on the votes ins.Cslib.BitString.strictMajorityOn_eq_of_forall_notMem: a strict majority of correct voters determines the outcome.
theorem Cslib.BitString.strictMajorityOn_congr {ι : Type u_1} {s : Finset ι} {f g : ι → Bool} (h : ∀ i ∈ s, f i = g i) :
strictMajorityOn depends only on the votes in s.
theorem Cslib.BitString.strictMajorityOn_eq_of_forall_notMem {ι : Type u_1} {s F : Finset ι} {vote : ι → Bool} {v : Bool} (hv : ∀ j ∈ s, j ∉ F → vote j = v) (h : s.card / 2 < s.card - F.card) :
strictMajorityOn s vote = v
The strict majority of s is v if every vote in s outside F is v and these votes are
more than half of s.