Documentation

CslibFrontier.Foundations.BooleanAnalysis.ResilientComposition

Composed resilient functions and iterated majority #

Composing an outer Boolean function g : BitString m → Bool with m block functions h : Fin m → BitString w → Bool (Cslib.BitString.composeBlocks) preserves monotonicity and self-duality, and characterizes coalitional undeterminedness blockwise (isUndetermined_composeBlocks_iff): a coalition Q leaves composeBlocks g h undetermined at x precisely when the active blocks where tribePart Q j leaves h j undetermined leave g undetermined on the block outputs.

When g = Cslib.majority 3 is the 3-bit majority and each block function h j is self-dual, uniform independence across blocks (Cslib.BitString.expect_prod_tribe in Tribes) gives the exact composition identity I_Q(majority 3 ∘ (h₀, h₁, h₂)) = (p₀ + p₁ + p₂ - p₀ * p₁ * p₂) / 2 ≤ (p₀ + p₁ + p₂) / 2 where pⱼ = I_{Qⱼ}(hⱼ) (Cslib.BitString.coalitionInfluence_composeBlocks_maj3). Iterating this d times yields the Ben-Or–Linial iterated 3-majority iterMaj3 d on 3 ^ d bits: it is monotone, self-dual, exactly balanced (1 / 2), and (q, q / 2 ^ d)-resilient for every q (Cslib.BitString.isResilient_iterMaj3), i.e. I_q ≤ q / n ^ (log₂ 3)⁻¹ ≈ q / n ^ 0.63 without tribes's q < log n threshold barrier Chattopadhyay–Zuckerman.

Main definitions #

Main results #

References #

Block composition #

def Cslib.BitString.composeBlocks {m w : ℕ} (g : BitString m → Bool) (h : Fin m → BitString w → Bool) (x : BitString (m * w)) :

Block composition g (h₀(x₀), ..., h_{m-1}(x_{m-1})) on BitString (m * w), where the j-th block takes bits at indices finProdFinEquiv (j, i).

theorem Cslib.BitString.monotone_composeBlocks {m w : ℕ} {g : BitString m → Bool} {h : Fin m → BitString w → Bool} (hg : Monotone g) (hh : ∀ (j : Fin m), Monotone (h j)) :

Block composition preserves monotonicity.

theorem Cslib.BitString.composeBlocks_not_of_selfDual {m w : ℕ} {g : BitString m → Bool} {h : Fin m → BitString w → Bool} (hg : ∀ (v : BitString m), (g fun (j : Fin m) => !v j) = !g v) (hh : ∀ (j : Fin m) (u : BitString w), (h j fun (i : Fin w) => !u i) = !h j u) (x : BitString (m * w)) :
(composeBlocks g h fun (k : Fin (m * w)) => !x k) = !composeBlocks g h x

Block composition preserves self-duality (f (fun i => !x i) = !f x).

theorem Cslib.BitString.isUndetermined_composeBlocks_iff {m w : ℕ} (g : BitString m → Bool) (h : Fin m → BitString w → Bool) (Q : Finset (Fin (m * w))) (x : BitString (m * w)) :
IsUndetermined Q (composeBlocks g h) x ↔ IsUndetermined {j : Fin m | IsUndetermined (tribePart Q j) (h j) fun (i : Fin w) => x (finProdFinEquiv (j, i))} g fun (j : Fin m) => h j fun (i : Fin w) => x (finProdFinEquiv (j, i))

Coalition undeterminedness for composeBlocks g h: Q leaves the composed function undetermined at x if and only if the set of blocks where tribePart Q j leaves h j undetermined leaves g undetermined on the block outputs.

Self-dual functions and 3-majority composition #

theorem Cslib.BitString.expect_not_isUndetermined_and_eq_true {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → Bool) → Bool} (hf : ∀ (x : ι → Bool), (f fun (i : ι) => !x i) = !f x) (Q : Finset ι) :

For a self-dual function, the uniform probabilities of being determined as true or as false outside Q are both (1 - I_Q(f)) / 2.

theorem Cslib.BitString.expect_not_isUndetermined_and_eq_false {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → Bool) → Bool} (hf : ∀ (x : ι → Bool), (f fun (i : ι) => !x i) = !f x) (Q : Finset ι) :

Same as expect_not_isUndetermined_and_eq_true for determined false outcomes.

theorem Cslib.BitString.expect_bitVal_eq_half_of_selfDual {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → Bool) → Bool} (hf : ∀ (x : ι → Bool), (f fun (i : ι) => !x i) = !f x) :
(Finset.univ.expect fun (x : ι → Bool) => bitVal ℝ (f x)) = 1 / 2

Every self-dual function is balanced (𝔼 bitVal = 1 / 2).

theorem Cslib.BitString.coalitionInfluence_composeBlocks_maj3 {w : ℕ} (h : Fin 3 → BitString w → Bool) (hh : ∀ (j : Fin 3) (u : BitString w), (h j fun (i : Fin w) => !u i) = !h j u) (Q : Finset (Fin (3 * w))) :
coalitionInfluence (Probability.PMF.uniformOfFintype (BitString (3 * w))) Q (composeBlocks (majority 3) h) = have p := fun (j : Fin 3) => coalitionInfluence (Probability.PMF.uniformOfFintype (BitString w)) (tribePart Q j) (h j); (p 0 + p 1 + p 2 - p 0 * p 1 * p 2) / 2

Exact 3-majority coalition-influence composition identity: composing Cslib.majority 3 with three self-dual block functions h₀, h₁, h₂ yields coalition influence (p₀ + p₁ + p₂ - p₀ * p₁ * p₂) / 2 ≤ (p₀ + p₁ + p₂) / 2, where pⱼ = I_{Qⱼ}(hⱼ).

Iterated 3-majority (iterMaj3) #

Ben-Or–Linial iterated 3-majority on 3 ^ d bits: at depth 0, a single coordinate bit; at depth d + 1, Cslib.majority 3 composed over three independent copies of iterMaj3 d.

theorem Cslib.BitString.iterMaj3_not (d : ℕ) (x : BitString (3 ^ d)) :
(iterMaj3 d fun (i : Fin (3 ^ d)) => !x i) = !iterMaj3 d x

iterMaj3 d is self-dual.

iterMaj3 d is balanced: 𝔼 bitVal = 1 / 2.

Every coalition Q has uniform influence at most |Q| / 2 ^ d on iterMaj3 d.

Ben-Or–Linial iterated 3-majority resilience: iterMaj3 d on 3 ^ d bits is (q, q / 2 ^ d)-resilient for every q : ℕ.