Documentation

LeanPool.FiveEighthsTheorem.Basic

The 5/8 theorem #

If G is a nonabelian group, then its Mathlib commuting probability is at most 5/8. For infinite groups this is immediate because commProb is defined to be 0; the substantive finite case is the theorem of Gustafson, What is the probability that two group elements commute? (Amer. Math. Monthly 80, 1973), and the bound is attained (e.g. by the quaternion group of order 8).

The proof is the classical counting argument:

Main results #

All declarations live in the FiveEighths namespace.

noncomputable def FiveEighths.centralFraction (G : Type u_1) [Group G] :

The fraction of elements of a finite group G that lie in its center.

Equations
Instances For
    noncomputable def FiveEighths.centralizerFraction {G : Type u_1} [Group G] (g : G) :

    The fraction of elements of a finite group that commute with a given element g.

    Equations
    Instances For

      If G is nonabelian then G ⧸ Z(G) is not cyclic, so the index of the center cannot be prime.

      The center of a finite nonabelian group has index at least 4: the index is nonzero by finiteness, is not 1 by noncommutativity, and is not 2 or 3 because those are prime.

      The center of a finite nonabelian group contains at most a quarter of its elements.

      The centralizer of a noncentral element is a proper subgroup, so its index is at least 2.

      theorem FiveEighths.centralizerFraction_le_half {G : Type u_1} [Group G] [Finite G] {g : G} (hg : gSubgroup.center G) :

      The centralizer of a noncentral element contains at most half of the elements.

      theorem FiveEighths.commProb_eq_ncard_div_sq (G : Type u_2) [Group G] :
      commProb G = {(g, h) : G × G | g * h = h * g}.ncard / (Nat.card G) ^ 2

      The commuting probability of G counts the commuting pairs of elements.

      @[reducible, inline]
      noncomputable abbrev FiveEighths.typeQCard (G : Type u_2) :

      The cardinality of a type, as a rational number (zero if the type is infinite).

      Equations
      Instances For
        noncomputable def FiveEighths.setQCard {α : Type u_2} (s : Set α) :

        The cardinality of a set, as a rational number (zero if the set is infinite).

        Equations
        Instances For

          The 5/8 theorem: the commuting probability of a nonabelian group is at most 5/8. For infinite groups, this follows from Mathlib's convention that commProb is 0; the finite case is Gustafson's theorem.