Documentation

CslibFrontier.Foundations.BooleanAnalysis.Bribery

Bribing monotone elections #

A monotone Boolean function f on n voters is an election scheme. Read as signs, its mean is the bias of the election, and bribing a set J of voters to vote false (the sign 1) replaces f by x ↦ f(J.piecewise (fun _ => false) x), which the book writes f_{J̄|(1,…,1)} (its Definition 3.18, with the complement J̄ free). Fixing one voter i to false moves the mean of any function by its Fourier coefficient on {i} (BitString.expect_update_false), which for a monotone function is the influence Infᵢ[f], and the variance of a function with values ±1 and mean μ is 1 - μ² (BitString.expect_sub_expect_sq_signVal). Bribing voters of maximum influence one at a time, the Kahn–Kalai–Linial theorem shows that O(n / log n) voters suffice to push a mean of at least -a up to at least a, for any constant 0 ≤ a < 1 (BitString.exists_card_le_and_le_expect_signVal_piecewise_false), and symmetrically for bribes to vote true (BitString.exists_card_le_and_expect_signVal_piecewise_true_le) O'Donnell, Proposition 9.27. The book takes a = .99. Each bribe of a voter of maximum influence raises the mean m by at least (1 - m²) log n / (4 n) (BitString.exists_add_le_expect_signVal_piecewise_insert). Tracking 1 + m while m < 0 and 1 - m once m ≥ 0, which grow and shrink geometrically, O(log (2 / (ε δ)) n / log n) bribes make the mean at least 1 - ε for a function of variance at least δ (BitString.exists_card_le_and_one_sub_le_expect_signVal_piecewise_false) O'Donnell, Exercise 9.27(a). The book asks for 0 < ε < 1 / 2 and O(log (1 / (ε δ)) n / log n) bribes; the bounds here are explicit, hold for 0 < ε ≤ 1, use log (2 / (ε δ)) so that they stay true up to ε = δ = 1, and need n ≥ 2 so that log n > 0.

Joining a coalition that forces false and one that forces true gives a coalition of O(log (2 / (ε δ)) n / log n) voters whose coalitional influence (BitString.coalitionInfluence, see BitString.coalitionInfluenceToward) is at least 1 - ε (BitString.exists_card_le_and_one_sub_le_coalitionInfluence) O'Donnell, Exercise 9.27(b).

Main results #

Usage #

Open Cslib.BitString and write n for Fintype.card ι. An election is a function f : (ι → Bool) → Bool that is Monotone for Mathlib's coordinatewise order with false < true, read as signs through fun x => signVal (f x) (signVal true = -1); the book's vote 1 is false. Bribing J to vote false is fun x => f (J.piecewise (fun _ => false) x). Every theorem takes hf : Monotone f, and all but the one-bribe step take hn : 2 ≤ Fintype.card ι.

The checked client CslibFrontierTests/BooleanAnalysisBribery.lean applies every theorem to the conjunction of two voters threshold 2 2 and the majority of three voters, and checks for each bribed set or coalition that the empty set fails, so the set provided is nonempty.

References #

Duality #

theorem Cslib.BitString.exists_add_le_expect_signVal_piecewise_insert {ι : Type u_1} [Fintype ι] [DecidableEq ι] [Nonempty ι] {f : (ι → Bool) → Bool} (hf : Monotone f) (J : Finset ι) :
∃ (i : ι), (Finset.univ.expect fun (x : ι → Bool) => signVal (f (J.piecewise (fun (x : ι) => false) x))) + (1 - (Finset.univ.expect fun (x : ι → Bool) => signVal (f (J.piecewise (fun (x : ι) => false) x))) ^ 2) * Real.log ↑(Fintype.card ι) / (4 * ↑(Fintype.card ι)) ≤ Finset.univ.expect fun (x : ι → Bool) => signVal (f ((insert i J).piecewise (fun (x : ι) => false) x))

One bribe, from the proof of O'Donnell, Proposition 9.27: for monotone f on n voters and any bribed set J, writing m(J) for the mean of f read as signs after J votes false, some voter i has m(J ∪ {i}) ≥ m(J) + (1 - m(J)²) log n / (4 n). Fixing i raises the mean by the influence of i, and the Kahn–Kalai–Linial theorem gives a voter of influence at least the variance 1 - m(J)² times log n / (4 n).

theorem Cslib.BitString.exists_card_le_and_le_expect_signVal_piecewise_false {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → Bool) → Bool} (hf : Monotone f) (hn : 2 ≤ Fintype.card ι) {a : ℝ} (ha0 : 0 ≤ a) (ha1 : a < 1) (hμ : -a ≤ Finset.univ.expect fun (x : ι → Bool) => signVal (f x)) :
∃ (J : Finset ι), ↑J.card ≤ 8 * a * ↑(Fintype.card ι) / ((1 - a ^ 2) * Real.log ↑(Fintype.card ι)) + 1 ∧ a ≤ Finset.univ.expect fun (x : ι → Bool) => signVal (f (J.piecewise (fun (x : ι) => false) x))

Bribing a monotone election O'Donnell, Proposition 9.27: let f be monotone on n ≥ 2 voters, read as signs, with mean 𝔼 f ≥ -a for some 0 ≤ a < 1. Then some set J of at most 8 a n / ((1 - a²) log n) + 1 = O(n / log n) voters, when bribed to vote false (the sign 1), makes the mean at least a. Bribe a voter of maximum influence, one at a time: while the mean lies in [-a, a) the variance is at least 1 - a², so each bribe raises the mean by at least (1 - a²) log n / (4 n) (exists_add_le_expect_signVal_piecewise_insert).

theorem Cslib.BitString.exists_card_le_and_expect_signVal_piecewise_true_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → Bool) → Bool} (hf : Monotone f) (hn : 2 ≤ Fintype.card ι) {a : ℝ} (ha0 : 0 ≤ a) (ha1 : a < 1) (hμ : (Finset.univ.expect fun (x : ι → Bool) => signVal (f x)) ≤ a) :
∃ (J : Finset ι), ↑J.card ≤ 8 * a * ↑(Fintype.card ι) / ((1 - a ^ 2) * Real.log ↑(Fintype.card ι)) + 1 ∧ (Finset.univ.expect fun (x : ι → Bool) => signVal (f (J.piecewise (fun (x : ι) => true) x))) ≤ -a

Bribing a monotone election the other way O'Donnell, Proposition 9.27: if f is monotone on n ≥ 2 voters with mean 𝔼 f ≤ a for some 0 ≤ a < 1, then some set J of at most 8 a n / ((1 - a²) log n) + 1 voters, when bribed to vote true (the sign -1), makes the mean at most -a. This is exists_card_le_and_le_expect_signVal_piecewise_false for the dual x ↦ ¬f(¬x).

theorem Cslib.BitString.exists_card_le_and_one_sub_le_expect_signVal_piecewise_false {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → Bool) → Bool} (hf : Monotone f) (hn : 2 ≤ Fintype.card ι) {δ ε : ℝ} (hδ : 0 < δ) (hV : δ ≤ Finset.univ.expect fun (x : ι → Bool) => (signVal (f x) - Finset.univ.expect fun (y : ι → Bool) => signVal (f y)) ^ 2) (hε : 0 < ε) (hε1 : ε ≤ 1) :
∃ (J : Finset ι), ↑J.card ≤ 8 * ↑(Fintype.card ι) * Real.log (2 / (ε * δ)) / Real.log ↑(Fintype.card ι) + 2 ∧ 1 - ε ≤ Finset.univ.expect fun (x : ι → Bool) => signVal (f (J.piecewise (fun (x : ι) => false) x))

Bribing a monotone election to near-unanimity O'Donnell, Exercise 9.27(a): let f be monotone on n ≥ 2 voters with variance at least δ > 0, read as signs, and let 0 < ε ≤ 1. Then some set J of at most 8 n log (2 / (ε δ)) / log n + 2 voters, when bribed to vote false, makes the mean at least 1 - ε. Write c = log n / (4 n) and m for the mean. While m < 0, each bribe multiplies 1 + m by at least 1 + c, starting from 1 + m ≥ δ / 2; once m ≥ 0, each bribe multiplies 1 - m by at most 1 - c.

theorem Cslib.BitString.exists_card_le_and_expect_signVal_piecewise_true_le_sub_one {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → Bool) → Bool} (hf : Monotone f) (hn : 2 ≤ Fintype.card ι) {δ ε : ℝ} (hδ : 0 < δ) (hV : δ ≤ Finset.univ.expect fun (x : ι → Bool) => (signVal (f x) - Finset.univ.expect fun (y : ι → Bool) => signVal (f y)) ^ 2) (hε : 0 < ε) (hε1 : ε ≤ 1) :
∃ (J : Finset ι), ↑J.card ≤ 8 * ↑(Fintype.card ι) * Real.log (2 / (ε * δ)) / Real.log ↑(Fintype.card ι) + 2 ∧ (Finset.univ.expect fun (x : ι → Bool) => signVal (f (J.piecewise (fun (x : ι) => true) x))) ≤ ε - 1

Bribing a monotone election to near-unanimity the other way O'Donnell, Exercise 9.27(a): under the hypotheses of exists_card_le_and_one_sub_le_expect_signVal_piecewise_false, a set of at most 8 n log (2 / (ε δ)) / log n + 2 voters bribed to vote true makes the mean at most ε - 1. This is that theorem for the dual x ↦ ¬f(¬x), which has the same variance.

theorem Cslib.BitString.exists_card_le_and_one_sub_le_coalitionInfluence {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → Bool) → Bool} (hf : Monotone f) (hn : 2 ≤ Fintype.card ι) {δ ε : ℝ} (hδ : 0 < δ) (hV : δ ≤ Finset.univ.expect fun (x : ι → Bool) => (signVal (f x) - Finset.univ.expect fun (y : ι → Bool) => signVal (f y)) ^ 2) (hε : 0 < ε) (hε1 : ε ≤ 1) :
∃ (J : Finset ι), ↑J.card ≤ 16 * ↑(Fintype.card ι) * Real.log (2 / (ε * δ)) / Real.log ↑(Fintype.card ι) + 4 ∧ 1 - ε ≤ coalitionInfluence (Probability.PMF.uniformOfFintype (ι → Bool)) J f

A small coalition controls a monotone election [O'Donnell, Exercise 9.27(b)] [OD14]: if f is monotone on n ≥ 2 voters with variance at least δ > 0, read as signs, and 0 < ε ≤ 1, then some coalition J of at most 16 n log (2 / (ε δ)) / log n + 4 voters has coalitional influence at least 1 - ε. It is the union of a coalition that can force false and one that can force true, each with probability at least 1 - ε / 2 (Exercises 9.25(c)–(d) and 9.27(a)).