connection_density
Given a type $G$ with [Group G] and [Fintype G], and a finite set $S : \mathrm{Finset}\ G$, connection_density G S is the rational number in $\mathbb{Q}$ defined by $(\sum_{s \in S} (c\ G\ s : \mathbb{Q})) / ((\mathrm{Fintype.card}\ G : \mathbb{Q}) \cdot (S.\mathrm{card} : \mathbb{Q}))$, evaluating to $0$ when $S$ is empty.
Statement
noncomputable def connection_density (G : Type*) [Group G] [Fintype G] (S : Finset G) : ℚ
- Defined in
- arXiv:2611.26732 Definition 1.1
- Verified
- 23 Nov 2026
- Axioms
- none listed
- Built on 1
- cFor a group $G$ and an element $s \in G$, the local count $c_G(s)$ is the cardinality of the set of elements $g \in G$ such that…
- Used by 5
- connection_density_le_connected_intersection_densityFor every finite group $G$ and every inverse-closed generating connection set $S$, the density of $S$ is at most the connected…
- connected_intersection_densityFor a finite group $G$ (
[Group G] [Fintype G]),connected_intersection_density G : ℚis the connected intersection density… - exists_generating_connection_set_connected_intersection_densityFor every finite group $G$ the maximum defining $\rho_{\mathrm{gen}}(G)$ is attained: some inverse-closed generating connection set $S$…
- intersection_densityFor a finite group G, intersection_density G : ℚ is the unrestricted intersection density ρ(G): the maximum of connection_density G S…
- connected_intersection_density_elementary_abelian_square_times_cyclicLet $p \ne q$ be primes and $a \ge 1$, $m = q^a$, and $G = (C_p \times C_p) \times C_{q^a}$ (as…
Read back from the Lean
A definition connection_density that takes a finite group G (with instances [Group G] and [Fintype G]) and a finite subset S : Finset G, returning the rational number defined as the sum over s ∈ S of c G s (cast to ℚ) divided by the product of the cardinality of G (Fintype.card G) and the cardinality of S (S.card), both cast to ℚ.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The edge intersection density of a connection set $S$ in a finite group $G$. -/ noncomputable def connection_density (G : Type*) [Group G] [Fintype G] (S : Finset G) : ℚ := (∑ s ∈ S, (c G s : ℚ)) / ((Fintype.card G : ℚ) * (S.card : ℚ))