Documentation

CslibFrontier.Foundations.BooleanAnalysis.CoalitionalInfluence

Coalitional influence #

The coalitional influence of a set J of voters on a Boolean function f is the probability, over the votes outside J, that the voters in J can still change the outcome (BitString.coalitionInfluence under the uniform distribution, from CslibFrontier.Probability.Resilience). Its influence toward an outcome b is the probability that J can make the outcome b, less Pr[f = b] (BitString.coalitionInfluenceToward) O'Donnell, Exercise 9.25.

The directed influence lies in [0, 1] (BitString.coalitionInfluenceToward_nonneg, BitString.coalitionInfluenceToward_le_one) and grows with the coalition (BitString.coalitionInfluenceToward_mono). For one voter it is half the influence (BitString.coalitionInfluenceToward_singleton), the undirected influence is the sum of the two directed ones (BitString.coalitionInfluence_eq_add), for monotone f a coalition does best by voting unanimously (BitString.coalitionInfluenceToward_eq_of_monotone), and every nonempty coalition controls the parity of all the voters (BitString.coalitionInfluence_parityOn_univ). Parts (f) and (g) of Exercise 9.25, on Majority and Tribes, are not formalized.

Main definitions #

Main results #

Usage #

Open Cslib.BitString. The book's b ∈ {-1, 1} is a Bool read through signVal (signVal true = -1), so Inf~^{+1} is coalitionInfluenceToward false and Inf~^{-1} is coalitionInfluenceToward true. The book's undirected Inf~_J[f] is coalitionInfluence (Probability.PMF.uniformOfFintype (ι → Bool)) J f from CslibFrontier.Probability.Resilience, which also has its single-voter case Cslib.BitString.coalitionInfluence_singleton and its bounds Cslib.BitString.coalitionInfluence_nonneg and Cslib.BitString.coalitionInfluence_le_one. For a monotone f, rewrite with Cslib.BitString.coalitionInfluenceToward_eq_of_monotone to turn the existential over the coalition's votes into the unanimous vote J.piecewise (fun _ => b) z; small concrete cases then close by decide on the counts. The bribery bounds of Exercise 9.27 that use these influences are in CslibFrontier.Foundations.BooleanAnalysis.Bribery.

The checked client CslibFrontierTests/BooleanAnalysisCoalitionalInfluence.lean computes the directed influences of one and two voters on the conjunction threshold 2 2 (by parts (a) and (d), and their sum by part (c)) and of one voter on the parity of two voters (by unfolding the definition and by parts (b), (c) and (e)).

References #

noncomputable def Cslib.BitString.coalitionInfluenceToward {ι : Type u_1} [DecidableEq ι] [Fintype ι] (b : Bool) (J : Finset ι) (f : (ι → Bool) → Bool) :

The coalitional influence toward b of a set J of voters on f O'Donnell, Exercise 9.25: the probability, over the votes z outside J, that the voters in J can make the outcome b, minus the probability that the outcome is b.

theorem Cslib.BitString.coalitionInfluenceToward_nonneg {ι : Type u_1} [DecidableEq ι] [Fintype ι] (b : Bool) (J : Finset ι) (f : (ι → Bool) → Bool) :

The directed coalitional influence is nonnegative [O'Donnell, Exercise 9.25(b)] [OD14]: if f(z) = b then J can make the outcome b by voting as in z.

theorem Cslib.BitString.coalitionInfluenceToward_le_one {ι : Type u_1} [DecidableEq ι] [Fintype ι] (b : Bool) (J : Finset ι) (f : (ι → Bool) → Bool) :

The directed coalitional influence is at most one [O'Donnell, Exercise 9.25(b)] [OD14].

theorem Cslib.BitString.coalitionInfluenceToward_mono {ι : Type u_1} [DecidableEq ι] [Fintype ι] (b : Bool) {J K : Finset ι} (hJK : J ⊆ K) (f : (ι → Bool) → Bool) :

A larger coalition has at least the directed influence of a smaller one.

theorem Cslib.BitString.coalitionInfluenceToward_singleton {ι : Type u_1} [DecidableEq ι] [Fintype ι] (b : Bool) (i : ι) (f : (ι → Bool) → Bool) :
coalitionInfluenceToward b {i} f = (influence i fun (x : ι → Bool) => signVal (f x)) / 2

The directed coalitional influence of one voter is half its influence O'Donnell, Exercise 9.25(a): Inf~_{i}^b[f] = Infᵢ[f] / 2; the undirected coalitionInfluence_singleton is the influence itself.

Coalitional influence splits by direction O'Donnell, Exercise 9.25(c): Inf~_J[f] = Inf~_J^{true}[f] + Inf~_J^{false}[f]. For each z the coalition can make the outcome true or false or both, and both exactly when it can change the outcome.

theorem Cslib.BitString.coalitionInfluenceToward_eq_of_monotone {ι : Type u_1} [DecidableEq ι] [Fintype ι] {f : (ι → Bool) → Bool} (hf : Monotone f) (b : Bool) (J : Finset ι) :
coalitionInfluenceToward b J f = (Finset.univ.expect fun (z : ι → Bool) => if f (J.piecewise (fun (x : ι) => b) z) = b then 1 else 0) - Finset.univ.expect fun (x : ι → Bool) => if f x = b then 1 else 0

Coalitional influence on monotone functions O'Donnell, Exercise 9.25(d): for monotone f the best way for J to make the outcome b is to vote b unanimously, so Inf~_J^b[f] = Pr[f(b_J, z) = b] - Pr[f = b].

Every coalition controls a parity O'Donnell, Exercise 9.25(e): any nonempty J has coalitional influence 1 on the parity of all the voters.