The Tribes function #
The Tribes function Tribes_{w,s} (Cslib.BitString.tribes) on s * w bits is the OR of s
ANDs of w bits each, on disjoint tribes of bits O'Donnell, Definition 2.7,
introduced by Ben-Or and Linial. It is monotone (Cslib.BitString.monotone_tribes) and true with
probability 1 - (1 - 2 ^ (-w)) ^ s (Cslib.BitString.expect_bitVal_tribes)
O'Donnell, Fact 4.10.
O'Donnell takes s largest with this probability at most 1 / 2
O'Donnell, Definition 4.11. This s exists for every w
(Cslib.BitString.tribesSize) and lies in [2 ^ (w - 1), 2 ^ w) for w ≥ 1
(Cslib.BitString.two_pow_sub_one_le_tribesSize, Cslib.BitString.tribesSize_lt_two_pow); these
bounds are ours. For such s we show that the probability is within 2 ^ (-w) of 1 / 2
(Cslib.BitString.abs_expect_bitVal_tribes_sub_half_le); this explicit bound is ours. O'Donnell's
asymptotic statements, that then 2 ^ w = (n / ln n) (1 + o(1)) for n = s w with bias
1 / 2 - O(log n / n) O'Donnell, Proposition 4.12, are not formalized. The
influences of Tribes O'Donnell, Proposition 4.13 are computed exactly, and bounded
by explicit multiples of log n / n, in
CslibFrontier.Foundations.BooleanAnalysis.TribesInfluence,
from the independence of the tribes (Cslib.BitString.expect_prod_tribe); the asymptotic form
(ln n / n) (1 ± o(1)) of that proposition is not formalized.
The same independence gives the Fourier coefficients of Tribes, read as signs. A character splits
over the tribes, by the parts Tⱼ of T in the tribes (Cslib.BitString.tribePart), and each
tribe is 1 - AND_w, where AND_w is the indicator of the all-true point, with coefficients
Cslib.BitString.fourierCoeff_ite_eq. So the coefficient on T is 2 ∏ⱼ cⱼ - [T = ∅], with
cⱼ = 1 - 2 ^ (-w) if T misses the j-th tribe and cⱼ = -2 ^ (-w) (-1) ^ |Tⱼ| otherwise;
this product form is ours. It is
2 (1 - 2 ^ (-w)) ^ s - 1 on ∅, and 2 (-1) ^ (k + |T|) 2 ^ (-k w) (1 - 2 ^ (-w)) ^ (s - k)
on a nonempty T meeting k tribes (Cslib.BitString.fourierCoeff_signVal_tribes_empty,
Cslib.BitString.fourierCoeff_signVal_tribes_of_ne_empty)
O'Donnell, Proposition 4.14.
A coalition Q leaves Tribes undetermined only if some tribe meets Q and is all true outside
Q. A union bound over these tribes bounds the influence of Q by 2 ^ (|Q| - w)
(Cslib.BitString.coalitionInfluence_tribes_le), so Tribes is (q, 2 ^ (q - w))-resilient
(Cslib.BitString.isResilient_tribes); the bound and its proof are ours. It is useful only for
q < w, about log n. Bribing one tribe, about log n voters, forces Tribes to True
O'Donnell, Section 9.6, and the largest coalitional influence toward True of at
most log n bits is 1 / 2 + Θ(log n / n) O'Donnell, Exercise 9.25(g). In our
terms, one whole tribe of w bits has influence (1 - 2 ^ (-w)) ^ (s - 1), about 1 / 2 for the
s above. For s = tribesSize w, this whole-tribe coalition rules out an
O(q log n / n) influence bound at q = w as w tends to infinity, where n = s * w.
This computation and conclusion are ours and are not formalized.
Main definitions #
Cslib.BitString.tribes: the Tribes functionTribes_{w,s}.Cslib.BitString.tribesSize: the number of tribes of widthwmaking Tribes nearly balanced.Cslib.BitString.tribePart: the part of a set of coordinates in one tribe.
Main results #
Cslib.BitString.monotone_tribes: Tribes is monotone.Cslib.BitString.expect_bitVal_tribes: the probability that Tribes is true.Cslib.BitString.expect_prod_tribe: the tribes are independent.Cslib.BitString.card_eq_sum_card_tribePart:#Tequals the sum of#(tribePart T j).Cslib.BitString.one_div_two_le_pow_tribesSize,Cslib.BitString.pow_tribesSize_add_one_lt_one_div_two,Cslib.BitString.two_pow_sub_one_le_tribesSize,Cslib.BitString.tribesSize_lt_two_pow: the number of tribes for which Tribes is nearly balanced.Cslib.BitString.abs_expect_bitVal_tribes_sub_half_le: Tribes is nearly balanced.Cslib.BitString.coalitionInfluence_tribes_le,Cslib.BitString.isResilient_tribes: the influence of coalitions on Tribes.Cslib.BitString.fourierCoeff_signVal_tribes_empty,Cslib.BitString.fourierCoeff_signVal_tribes_of_ne_empty: the Fourier coefficients of Tribes.
Usage #
Open Cslib.BitString. Bit i of tribe j of tribes w s is coordinate
finProdFinEquiv (j, i) of Fin (s * w), and Tribes is read as signs through
fun x => signVal (tribes w s x), whose true is O'Donnell's True, -1. For a set T of
coordinates, tribePart T j is its part in tribe j; compute it with
Cslib.BitString.mem_tribePart, since its body is not exposed. On ∅, rewrite with
Cslib.BitString.fourierCoeff_signVal_tribes_empty w s. On a nonempty T, rewrite with
Cslib.BitString.fourierCoeff_signVal_tribes_of_ne_empty, then supply the number of tribes
T meets, #{j | tribePart T j ≠ ∅}, and #T. The checked clients in
CslibFrontierTests/TribesFourier.lean
compute the coefficients of Tribes_{2,2} on the empty set (1 / 8), on one coordinate
(3 / 8) and on a whole tribe (-3 / 8), each both from these theorems and by brute force.
References #
The function #
Tribes Tribes_{w,s} O'Donnell, Definition 2.7: on s * w bits, the OR
of s ANDs of w bits each, the i-th bit of the j-th tribe being bit
finProdFinEquiv (j, i). The value true is O'Donnell's True, which he writes -1.
The probability of true #
The number of tribes #
The number of tribes of width w in O'Donnell's Tribes_n
O'Donnell, Definition 4.11: the largest s with (1 - 2 ^ (-w)) ^ s ≥ 1 / 2, that
is, with Tribes_{w,s} true with probability at most 1 / 2 (expect_bitVal_tribes). It is the
least s with (1 - 2 ^ (-w)) ^ (s + 1) < 1 / 2, which exists since the base is less than 1.
O'Donnell defines it for w ≥ 1; for w = 0 it is 0.
Tribes_{w, tribesSize w} is true with probability at most 1 / 2
(1 - (1 - 2 ^ (-w)) ^ s ≤ 1 / 2).
tribesSize w is largest: one more tribe makes Tribes true with probability more than
1 / 2.
tribesSize w < 2 ^ w, our bound.
2 ^ (w - 1) ≤ tribesSize w for w ≥ 1, our bound.
Tribes is nearly balanced, our explicit form of
O'Donnell, Proposition 4.12, last statement: if s is largest with
(1 - 2 ^ (-w)) ^ s ≥ 1 / 2, that is, Tribes_{w,s} is true with probability at most 1 / 2
O'Donnell, Definition 4.11, then the probability is within 2 ^ (-w) of 1 / 2.
The bound is ours; O'Donnell states 1 / 2 - O(log n / n) for n = s w.
Coalitions #
The influence of a coalition on Tribes, our union bound: a coalition Q has influence at
most 2 ^ (|Q| - w) on Tribes_{w,s}.
Tribes is resilient against small coalitions, our bound: Tribes_{w,s} is
(q, 2 ^ (q - w))-resilient Chattopadhyay–Zuckerman, Definition 1.7.
This is useful only for q < w. For s = tribesSize w, a whole-tribe coalition rules out an
O(q log n / n) influence bound at q = w as w tends to infinity, where n = s * w.
This asymptotic conclusion is not formalized here
(compare O'Donnell, Section 9.6).
Fourier coefficients #
The part of a set T of coordinates of Tribes_{w,s} lying in the j-th tribe, as the
positions i with finProdFinEquiv (j, i) ∈ T.
The Fourier coefficients of Tribes on nonempty sets
O'Donnell, Proposition 4.14: for T ≠ ∅ meeting k tribes, Tribes_{w,s},
read as signs, has coefficient 2 (-1) ^ (k + |T|) 2 ^ (-k w) (1 - 2 ^ (-w)) ^ (s - k) on T.