Documentation

CslibFrontier.Foundations.BooleanAnalysis.TransitiveSymmetric

Transitive-symmetric functions #

A permutation π of the coordinates acts on inputs by (x^π)ᵢ = x_{π(i)} and on functions by f^π(x) = f(x^π). The permutations with f^π = f form the automorphism group Aut(f) of f (BitString.aut) O'Donnell, Exercise 1.30. A Boolean function is transitive-symmetric when for all coordinates i and i' some permutation in Aut(f) carries i to i' O'Donnell, Definition 2.10, that is, when Aut(f) acts transitively on the coordinates O'Donnell, Exercise 2.47. We state it with Mathlib's MulAction.IsPretransitive (aut f) ι, which unfolds to Definition 2.10 by BitString.isPretransitive_aut_iff. Mathlib has no action of Equiv.Perm ι on the functions (ι → Bool) → β whose stabilizer could serve as Aut(f), so aut f is defined directly as a subgroup.

A function of the weight is unchanged by every permutation (BitString.aut_eq_top_of_forall_weight_eq, BooleanFunction.IsSymmetric.aut_eq_top), and a function whose automorphism group contains every permutation is transitive-symmetric (BitString.isPretransitive_aut_of_eq_top). So symmetric functions such as majority are transitive-symmetric (BooleanFunction.IsSymmetric.isPretransitive_aut). Tribes is the book's example of a transitive-symmetric function that is not symmetric.

Relabelling the coordinates relabels influences and Fourier coefficients (BitString.influence_comp_arrowCongr, BitString.fourierCoeff_comp_arrowCongr), so an automorphism π carries the influence of i and the coefficient on S to those of π i and π(S) (BitString.influence_apply_of_mem_aut, BitString.fourierCoeff_map_of_mem_aut). Hence all coordinates of a transitive-symmetric function have the same influence and the same degree-one coefficient (BitString.influence_signVal_eq_of_isPretransitive, BitString.fourierCoeff_singleton_signVal_eq_of_isPretransitive). Since permutations carry any set to any other of the same size, a function of the weight has the same Fourier coefficient on all sets of a given size (BitString.fourierCoeff_eq_of_card_eq). A monotone function on n bits has total influence at most √n (BitString.totalInfluence_le_sqrt_card_of_monotone), so a monotone transitive-symmetric function has every influence at most 1 / √n (BitString.influence_signVal_le_one_div_sqrt_card_of_monotone_of_isPretransitive) O'Donnell, Proposition 2.22.

Usage #

A permutation π : Equiv.Perm ι acts on inputs by x ↦ fun j => x (π j), and π ∈ aut f means f (fun j => x (π j)) = f x for every x (BitString.mem_aut); membership is decidable on a finite cube. State transitive symmetry as the instance MulAction.IsPretransitive (aut f) ι. Supply it with have := hf.isPretransitive_aut for hf : f.IsSymmetric (for example isSymmetric_majority), with BitString.isPretransitive_aut_of_eq_top and BitString.aut_eq_top_of_forall_weight_eq for a function of the weight of any codomain, or with BitString.isPretransitive_aut_iff.2 (by decide) on a small cube. To pass an automorphism of a Boolean f to fun x => signVal (f x), use BitString.aut_le_aut_comp signVal f. Under the instance, BitString.influence_signVal_eq_of_isPretransitive f i i' and BitString.fourierCoeff_singleton_signVal_eq_of_isPretransitive f i i' equate the influences and the degree-one coefficients of any two coordinates. The checked clients in CslibFrontierTests/BooleanAnalysisTransitiveSymmetric.lean relabel dictators, use the transposition of the two bits of a conjunction, bound the influences of majority, and show that Tribes_{2,2} is transitive-symmetric but not symmetric and that a dictator on two bits is not transitive-symmetric.

Main definitions #

Main results #

References #

The automorphism group #

def Cslib.BitString.aut {ι : Type u_1} {β : Type u_2} (f : (ι → Bool) → β) :

The automorphism group Aut(f) of a function on the cube: the permutations π of the coordinates with f (x ∘ π) = f x for every x, that is, f^π = f for the action (x^π)ᵢ = x_{π(i)} O'Donnell, Exercise 1.30.

@[simp]
theorem Cslib.BitString.mem_aut {ι : Type u_1} {β : Type u_2} {f : (ι → Bool) → β} {π : Equiv.Perm ι} :
π ∈ aut f ↔ ∀ (x : ι → Bool), (f fun (j : ι) => x (π j)) = f x

A permutation is an automorphism of f when it leaves f unchanged on every input.

theorem Cslib.BitString.aut_le_aut_comp {ι : Type u_1} {β : Type u_2} {γ : Type u_3} (h : β → γ) (f : (ι → Bool) → β) :
aut f ≤ aut fun (x : ι → Bool) => h (f x)

An automorphism of f is an automorphism of every function of f.

theorem Cslib.BitString.isPretransitive_aut_iff {ι : Type u_1} {β : Type u_2} {f : (ι → Bool) → β} :
MulAction.IsPretransitive (↥(aut f)) ι ↔ ∀ (i i' : ι), ∃ (π : Equiv.Perm ι), π i = i' ∧ ∀ (x : ι → Bool), (f fun (j : ι) => x (π j)) = f x

Transitive symmetry O'Donnell, Definition 2.10: the automorphism group of f acts transitively on the coordinates exactly when for all coordinates i and i' some permutation π with π i = i' satisfies f (x ∘ π) = f x for every x.

theorem Cslib.BitString.isPretransitive_aut_of_eq_top {ι : Type u_1} {β : Type u_2} {f : (ι → Bool) → β} (h : aut f = ⊤) :

A function whose automorphism group contains every permutation is transitive-symmetric.

theorem Cslib.BitString.aut_eq_top_of_forall_weight_eq {ι : Type u_1} {β : Type u_2} [Fintype ι] {f : (ι → Bool) → β} (hf : ∀ (x y : ι → Bool), weight x = weight y → f x = f y) :

Functions of the weight are unchanged by every permutation: if f x depends only on the weight of x, every permutation of the coordinates is an automorphism of f.

@[instance_reducible]
instance Cslib.BitString.instDecidablePredPermMemSubgroupAutOfDecidableEq {ι : Type u_1} {β : Type u_2} [Fintype ι] [DecidableEq ι] [DecidableEq β] (f : (ι → Bool) → β) :
DecidablePred fun (x : Equiv.Perm ι) => x ∈ aut f

Every permutation of the coordinates is an automorphism of a symmetric function.

Symmetric functions are transitive-symmetric.

Invariance of influences and Fourier coefficients #

theorem Cslib.BitString.influence_apply_of_mem_aut {ι : Type u_1} [DecidableEq ι] [Fintype ι] {g : (ι → Bool) → ℝ} {π : Equiv.Perm ι} (hπ : π ∈ aut g) (i : ι) :
influence (π i) g = influence i g

Automorphisms preserve influences: an automorphism π of g carries the influence of i on g to that of π i.

theorem Cslib.BitString.fourierCoeff_map_of_mem_aut {ι : Type u_1} [DecidableEq ι] [Fintype ι] {g : (ι → Bool) → ℝ} {π : Equiv.Perm ι} (hπ : π ∈ aut g) (S : Finset ι) :

Automorphisms preserve Fourier coefficients: an automorphism π of g carries the Fourier coefficient of g on S to its coefficient on π(S), by O'Donnell, Exercise 1.30(a) (BitString.fourierCoeff_comp_arrowCongr).

theorem Cslib.BitString.fourierCoeff_eq_of_card_eq {ι : Type u_1} [DecidableEq ι] [Fintype ι] {f : (ι → Bool) → ℝ} (hf : ∀ (x y : ι → Bool), weight x = weight y → f x = f y) {S S' : Finset ι} (h : S.card = S'.card) :

A function of the weight has the same Fourier coefficient on any two sets of the same size, the observation O'Donnell uses to open Section 5.3 (after Exercise 1.30(a)) O'Donnell, Section 5.3. A permutation matching S with S' and their complements with each other carries one set to the other, and every permutation is an automorphism.

Transitive-symmetric functions #

theorem Cslib.BitString.influence_signVal_eq_of_isPretransitive {ι : Type u_1} [DecidableEq ι] [Fintype ι] (f : (ι → Bool) → Bool) [MulAction.IsPretransitive (↥(aut f)) ι] (i i' : ι) :
(influence i fun (x : ι → Bool) => signVal (f x)) = influence i' fun (x : ι → Bool) => signVal (f x)

All coordinates of a transitive-symmetric function have the same influence.

theorem Cslib.BitString.fourierCoeff_singleton_signVal_eq_of_isPretransitive {ι : Type u_1} [DecidableEq ι] [Fintype ι] (f : (ι → Bool) → Bool) [MulAction.IsPretransitive (↥(aut f)) ι] (i i' : ι) :
fourierCoeff (fun (x : ι → Bool) => signVal (f x)) {i} = fourierCoeff (fun (x : ι → Bool) => signVal (f x)) {i'}

All coordinates of a transitive-symmetric function have the same degree-one coefficient, the step f̂(i) = f̂(i') in O'Donnell, proof of Proposition 2.22.

theorem Cslib.BitString.influence_signVal_le_one_div_sqrt_card_of_monotone_of_isPretransitive {ι : Type u_1} [DecidableEq ι] [Fintype ι] {f : (ι → Bool) → Bool} [MulAction.IsPretransitive (↥(aut f)) ι] (hf : Monotone f) (i : ι) :
(influence i fun (x : ι → Bool) => signVal (f x)) ≤ 1 / √↑(Fintype.card ι)

Monotone transitive-symmetric functions have small influences: a monotone transitive-symmetric Boolean function on n bits, read as signs, has every influence at most 1 / √n O'Donnell, Proposition 2.22.